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
Name | Type | Description |
---|---|---|
|
| The total active owed M. |
|
| The total earning supply of M Token. |
|
| The minter rate. |
Returns
Name | Type | Description |
---|---|---|
|
| 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.