Describe the problem:
I pretty consistlently see pattern, that for lending or for liquidity pools profits aren’t calculated correctly
Example 1. Metamask
amount of 800 was sent to a pool
smount of 880 was received from that pool, when closed, the profit of 80 wasn’t calculated
Example 2. Exodus
Amount of 5.73x was send to lending
Amount of 5.77x was received from lending
My expectation is that 40 PYUSD is displayed as profit
Which exchange/wallet is this regarding?
I can see the same issue for multiple wallets. For example for metamask or for exodus
How did you import data into this wallet?
I added wallet integration, then synced transaction
What have you tried to fix this so far?
1 way I tried to do it is to mark the first deposit transaction to the lending as a full loss and 2 transaction is as profit
For example I put to lending 1000 USDC - I mark that transaction as a loss
The second transaction with releasing 1100 USDC - I mark as a profit
But I don’t like such approach, it will be much nicer to get that 100 as a profit



