I have transactions where I borrow and moments later repay different amounts to and from Dydx. These are simply treated as Deposits and Withdrawals to my wallet. These are being given a cost basis when I repay and a gain or loss which can’t be right.
borrow: https://etherscan.io/tx/0xf6b3c793917045aee38c522214da0e8da1f02e11ea85d07ce7740385d5697e85
Repay: https://etherscan.io/tx/0x3acbf273ddca9c6936452458f093e3e2eb55aaeb568fd692f15a273a31cacdcb