MToken.updateIndex

MToken.updateIndex()MToken.updateIndex()

  • Calculates and updates earnerIndexearnerIndex to their current values

    • Calculates and updates earnerIndexearnerIndex: earnerIndexnow=fn(earnerIndexearnerIndexLastUpdatedTimestamp,rate,nowāˆ’earnerIndexLastUpdatedTimestamp)earnerIndex_{now} =fn( earnerIndex_{earnerIndexLastUpdatedTimestamp}, rate, now - earnerIndexLastUpdatedTimestamp)

    • Sets latestRate=earnerInterestRateModel.getRate()latestRate = earnerInterestRateModel.getRate()

    • Sets earnerIndexLastUpdatedlTimestamp=nowearnerIndexLastUpdatedlTimestamp = now.

Last updated

Copyright 2024 M^0 Foundation