Copyright 2024 M^0 Foundation
Inherits: IContinuousIndexing, IERC20Extended
Author: M^0 Labs
Mints tokens.
Parameters
Name | Type | Description |
---|---|---|
Burns tokens.
Parameters
Name | Type | Description |
---|---|---|
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
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
Returns
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
Returns
Emitted when account starts being an M earner.
Parameters
Emitted when account stops being an M earner.
Parameters
Emitted when there is insufficient balance to decrement from account
.
Parameters
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.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|