Could you please show an example of how to retrieve the amount of accrued interest on a loan? The SDK itself doesn’t appear to expose this directly.
For instance, let’s say my USDC borrow position shows 1,325 USDC. I know I originally borrowed 1,000 USDC—how do I determine that the extra 325 USDC is the accrued interest?
An example using the Aave SDK’s npm package would be much appreciated.
Could you please show an example of how to retrieve the amount of accrued interest on a loan? The SDK itself doesn’t appear to expose this directly.
For instance, let’s say my USDC borrow position shows 1,325 USDC. I know I originally borrowed 1,000 USDC—how do I determine that the extra 325 USDC is the accrued interest?
An example using the Aave SDK’s npm package would be much appreciated.