
Moonwell · Reads onchain state
Reads how much of its asset a Moonwell mToken redeems for. exchangeRateStored is the market's rate as of its last accrual, as the contract's raw mantissa and as the amount of the asset one whole mToken is worth. The rate only rises as borrowers pay interest, so it is the supply side's growth in a single number. Reach for it to value a held mToken in its asset, or to gate a redemption on the rate having reached a level.