You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do debt * (1+interest_rate)**t where t is time passed in chosen time units since last update (blocks, minutes, etc), and interest_rate is the per-time-unit rate set by the borrower
Applying the interest
Update the recorded debt and record the current block.timestamp as lastUpdateTimestamp
A Trove debt getter function returns recorded debt, pending interest, and up-to-date interest (i.e. including pending interest)
Mint the BOLD, and send it to the destination contract (e.g. the yield router?)
Interest is calculated and applied when:
Borrower touches their Trove
Permissionless batch function appyInterestToTroves is called with a list of Troves passed as a param
SP deposits are touched. The SP functions take a single Trove address (/NFT ID), and calc and apply its interest
The text was updated successfully, but these errors were encountered:
Applying interest rates to a Trove’s debt
Calculating pending interest
debt * (1+interest_rate)**t
wheret
is time passed in chosen time units since last update (blocks, minutes, etc), and interest_rate is the per-time-unit rate set by the borrowerApplying the interest
A Trove debt getter function returns recorded debt, pending interest, and up-to-date interest (i.e. including pending interest)
Interest is calculated and applied when:
appyInterestToTroves
is called with a list of Troves passed as a paramThe text was updated successfully, but these errors were encountered: