Interest per Epoch
As the APY represents the interest per annum, it is readable for humans. However, the distributed ledger has an internal clock counted in epochs and it is needed to translate APY into interest rate per epoch:
Epoch time
et - epoch time, set at 5 minutes on the Radix network
Borrow interest per epoch
Deposit interest per epoch
It is worth noting that the APY calculation is enabled by using the pow() function from the Scrypto Math package.
Last updated