IEarnerRateModel
Inherits: IRateModel
Author: M^0 Labs
Functions
RATE_CONFIDENCE_INTERVAL
The interval over which there's confidence cash flow to earners will not exceed cash flows from minters.
RATE_MULTIPLIER
The percent (in basis points) of the earner rate that will be effectively used.
ONE
100% in basis points.
mToken
The M Token contract address.
minterGateway
The Minter Gateway contract address.
ttgRegistrar
The TTG Registrar contract address.
maxRate
The max rate in basis points.
getSafeEarnerRate
Returns the safe earner rate.
Parameters
totalActiveOwedM
uint240
The total active owed M.
totalEarningSupply
uint240
The total earning supply of M Token.
minterRate
uint32
The minter rate.
Returns
<none>
uint32
The safe earner rate.
Errors
ZeroMToken
Emitted when M Token contract address is zero.
ZeroMinterGateway
Emitted when Minter Gateway contract address is zero.
ZeroTTGRegistrar
Emitted when TTG Registrar contract address is zero.