I know Koinly states loans should be categorized as Deposits and repayments as Withdrawals but I think this is incorrect.
For example, if I borrowed 1 BTC and sat on it for 6 months and then repaid the 1 BTC after it went up $20k, why am I being hit with a 20k capital gain? I didn’t gain anything.
Labelling the loan as a deposit assumes I own the coin, and therefore when I withdraw (repay loan) I’m hit with a capital gain/loss.
Which exchange/wallet is this regarding?
How did you import data into this wallet?
All import history was done via CSV
What have you tried to fix this so far?
Labelling Loans as from Pool, and Repayments to Pool. How would this impact things?
Having Loan Received set as ‘Airdrop’ or ‘Fork’ @ 0 Cost base (Settings: Treat airdrops/forks as income Disabled) and Having Loan Repayment tagged as ‘Realized P&L’ seems to do the trick with regards to calculating correct capital gains for margin trading imported via manual CSV.
Same question but for stable coins? Do I need to add manual fiat → stablecoins for “borrow” and stablecoins → fiat for repay or is that handled automatically by Koinly?
e.g. is this enough?
Collateralized 40 SOL (Sent to Pool)
Borrowed 1000 USDC
Some days/months later
Repay 1000 USDC
Add manual transaction for 0.5 SOL “Loan Interest” inside the Pool
Should nullify eachother correctly and produce correct capital gains unless I’m mistaken.
My initial example is incorrect as the Deposit doesn’t trigger a gain nor does the ‘Lost’.
Tagging the Loan as Airdrop @ 0 would trigger capital gain once the loan assets are traded; and when disposed of as ‘Cost’, should also trigger a capital gain/loss on the way out.
I tried switching the deposit from borrow to trade with fiat to stablecoin and there’s no difference in tax disposal. I just thought that I may get taxed upon received if it’s not from fiat. But then I read Tax treatment on deposits.
Tax treatment
By default Koinly treats all deposits as investments or purchases at market price (at the time of the transaction). If your deposit has some special tax consideration ex. it is received as Income then you can tag it as such.