0

in the compound whitepaper there is a section on how to calculate accured interest rate. It is calculated with historical index of the borrowing interest rate.

This is the how they calculate it:

compoundWhitePaper

How can I "translate" this into solidity?

Thanks a lot!

1 Answer 1

0

you can see the code that they write.the url si https://github.com/compound-finance/compound-money-market/blob/master/contracts/MoneyMarket.sol. the fuction name is 'calculateInterestIndex'.

hope this helps.

1
  • i am wrong.you show whitepaper is new compound code's. we need to see the new code.
    – Conwy
    Dec 9, 2022 at 2:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.