MToken.updateIndex()MToken.updateIndex() MToken.updateIndex()
Calculates and updates earnerIndexearnerIndexearnerIndex to their current values
Calculates and updates earnerIndexearnerIndexearnerIndex: earnerIndexnow=fn(earnerIndexearnerIndexLastUpdatedTimestamp,rate,now−earnerIndexLastUpdatedTimestamp)earnerIndex_{now} =fn( earnerIndex_{earnerIndexLastUpdatedTimestamp}, rate, now - earnerIndexLastUpdatedTimestamp)earnerIndexnow=fn(earnerIndexearnerIndexLastUpdatedTimestamp,rate,now−earnerIndexLastUpdatedTimestamp)
Sets latestRate=earnerInterestRateModel.getRate()latestRate = earnerInterestRateModel.getRate()latestRate=earnerInterestRateModel.getRate()
Sets earnerIndexLastUpdatedlTimestamp=nowearnerIndexLastUpdatedlTimestamp = nowearnerIndexLastUpdatedlTimestamp=now.
Last updated 8 months ago
M^0 Project
Legal
Copyright 2025 M^0 Foundation