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 6 months ago
M^0 Project
Legal
Copyright 2024 M^0 Foundation