Hey all, I am running a query for a wallet’s total debt borrowed and total debt repaid to see its liabilities over time. For some reason, there is a debt of 20k ETH that doesn’t appear to have been repaid. However, it does not look like the wallet still has the debt.
If the debt is no longer there but the wallet didn’t repay it, the most likely explanation is that someone else paid the debt – usually that would be via liquidation, but it is also possible for another wallet to repay debt on behalf of a wallet. That can be useful if the indebted address is out of gas, for example, or for services on top of Compound that manage users’ positions on their behalf.
It’s possible that an application (like InstaDapp, DefiSaver, etc) could have called the repayBorrowBehalf function, lowering the account’s debt from another address / smart contract