How to manage koinly for correct profit calculation

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

Hi @dfyz.s

You should tag your transactions as explained in Staking and farming tokens.

Also check out the Auto-compounding pools section regarding the reward on the Pool Out transaction.

Thank you, I manage to do it with autocompaunding pools
I have one more related query

For pendle, I can’t track profits
Do you have some samples describing on how to do that when staking stables. I can’t even understand too much transactions, whech are present in koinly

Let me try to give some screenshots
These what i have in pendle

On Koinly for the same dates

@Aria_Koinly
Can you pls take a look?

This seems to be a liquidity transaction where the tokens are not recognized by Koinly, so you will need manual adjustments. This is explained in Liquidity Providing (LPing) - Liquidity in/out.