How do you handle loans and loan repayments?

I borrowed 5000 USDC from AAVE. Do I simply set this as a deposit?
Then I repaid the 5000 USDC. What do I set this as?

Hi AK,

No tagging necessary for borrowing or repaying :slight_smile:

Receiving a loan can be left as a regular Deposit and repaying a loan can be left as a regular Withdrawal.

If you have transferred any collateral then you might need to tag that transaction as ‘sent/received from pool’.

This article explains it in more detail:
https://help.koinly.io/en/articles/4928658-loans-repayments-collateral-cdp

Best regards,
Petur

How do we factor fees into this setup? Deposits & withdrawals don’t seem to allow this to be added

+1 to Sealbiscuit. It also seems that for some blockchains (ie. ICX), the fees don’t get imported by the API. Especially if there are a lot of transactions, it would be a giant headache to go back and try to manually input every transaction cost/fee.