compound-finance / compound-protocol

The Compound On-Chain Protocol
https://compound.finance/developers
BSD 3-Clause "New" or "Revised" License
1.89k stars 1.21k forks source link

Max Repay amount discrepancy #172

Open KeerthanaRamalingam opened 3 years ago

KeerthanaRamalingam commented 3 years ago

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?

midhuntp commented 2 years ago

@KeerthanaRamalingam Is this issue resolved ?