Inherits: IContinuousIndexing, IERC20Extended
Author: M^0 Labs
Mints tokens.
Parameters
account
address
The address of account to mint to.
amount
uint256
The amount of M Token to mint.
Burns tokens.
Parameters
account
address
The address of account to burn from.
amount
uint256
The amount of M Token to burn.
Starts earning for caller if allowed by TTG.
Stops earning for caller.
Stops earning for account
.
MUST revert if account
is an approved earner in TTG Registrar.
Parameters
account
address
The account to stop earning for.
The address of the Minter Gateway contract.
The address of the TTG Registrar contract.
The address of TTG approved earner rate model.
The current value of earner rate in basis points.
The principal of an earner M token balance.
Parameters
account
address
The account to get the principal balance of.
Returns
<none>
uint240
The principal balance of the account.
The principal of the total earning supply of M Token.
The total earning supply of M Token.
The total non-earning supply of M Token.
Checks if account is an earner.
Parameters
account
address
The account to check.
Returns
<none>
bool
True if account is an earner, false otherwise.
Emitted when account starts being an M earner.
Parameters
account
address
The account that started earning.
Emitted when account stops being an M earner.
Parameters
account
address
The account that stopped earning.
Emitted when there is insufficient balance to decrement from account
.
Parameters
account
address
The account with insufficient balance.
rawBalance
uint256
The raw balance of the account.
amount
uint256
The amount to decrement the rawBalance
by.
Emitted when calling stopEarning
for an account approved as earner by TTG.
Emitted when calling startEarning
for an account not approved as earner by TTG.
Emitted when calling mint
, burn
not by Minter Gateway.
Emitted when principal of total supply (earning and non-earning) will overflow a type(uint112).max
.
Emitted in constructor if Minter Gateway is 0x0.
Emitted in constructor if TTG Registrar is 0x0.