When I borrow DAI with ETH as collateral say 100 DAI,
and after some time I repay full amount, say 100.000435245 with interest. -> I got the amount from getAccountSnapshot("my address")
Even after the repay with above amount my borrowed amount still shows up, in getAccountSnapshot("my address") with much lesser amount say 0.0000035343478
I think the problem is because the time interval between call creation and transaction execution as interest is calculated based on every block. How can I over come it?
When I borrow DAI with ETH as collateral say 100 DAI, and after some time I repay full amount, say 100.000435245 with interest. -> I got the amount from getAccountSnapshot("my address")
Even after the repay with above amount my borrowed amount still shows up, in getAccountSnapshot("my address") with much lesser amount say 0.0000035343478
I think the problem is because the time interval between call creation and transaction execution as interest is calculated based on every block. How can I over come it?