Author: M^0 Labs
State Variables
EARNER_RATE_MODEL
The name of parameter in TTG that defines the earner rate model contract.
bytes32 internal constant EARNER_RATE_MODEL = "earner_rate_model";
EARNERS_LIST
The parameter name in TTG that defines the earners list.
bytes32 internal constant EARNERS_LIST = "earners";
EARNERS_LIST_IGNORED
The parameter name in TTG that defines whether to ignore the earners list or not.
bytes32 internal constant EARNERS_LIST_IGNORED = "earners_list_ignored";
MINT_DELAY
The parameter name in TTG that defines the time to wait for mint request to be processed.
bytes32 internal constant MINT_DELAY = "mint_delay";
MINT_RATIO
The parameter name in TTG that defines the mint ratio.
bytes32 internal constant MINT_RATIO = "mint_ratio";
MINT_TTL
The parameter name in TTG that defines the time while mint request can still be processed.
bytes32 internal constant MINT_TTL = "mint_ttl";
MINTER_FREEZE_TIME
The parameter name in TTG that defines the time to freeze minter.
bytes32 internal constant MINTER_FREEZE_TIME = "minter_freeze_time";
MINTER_RATE_MODEL
The parameter name in TTG that defines the minter rate model contract.
bytes32 internal constant MINTER_RATE_MODEL = "minter_rate_model";
MINTERS_LIST
The parameter name in TTG that defines the minters list.
bytes32 internal constant MINTERS_LIST = "minters";
PENALTY_RATE
The parameter name in TTG that defines the penalty rate.
bytes32 internal constant PENALTY_RATE = "penalty_rate";
UPDATE_COLLATERAL_INTERVAL
The parameter name in TTG that defines the required interval to update collateral.
bytes32 internal constant UPDATE_COLLATERAL_INTERVAL = "update_collateral_interval";
UPDATE_COLLATERAL_VALIDATOR_THRESHOLD
The parameter name that defines number of signatures required for successful collateral update.
bytes32 internal constant UPDATE_COLLATERAL_VALIDATOR_THRESHOLD = "update_collateral_threshold";
VALIDATORS_LIST
The parameter name in TTG that defines the validators list.
bytes32 internal constant VALIDATORS_LIST = "validators";
Functions
getEarnerRateModel
Gets the earner rate model contract address.
function getEarnerRateModel(address registrar_) internal view returns (address);
getMintDelay
Gets the mint delay.
function getMintDelay(address registrar_) internal view returns (uint256);
getMinterFreezeTime
Gets the minter freeze time.
function getMinterFreezeTime(address registrar_) internal view returns (uint256);
getMinterRateModel
Gets the minter rate model contract address.
function getMinterRateModel(address registrar_) internal view returns (address);
getMintTTL
Gets the mint TTL.
function getMintTTL(address registrar_) internal view returns (uint256);
getMintRatio
Gets the mint ratio.
function getMintRatio(address registrar_) internal view returns (uint256);
getUpdateCollateralInterval
Gets the update collateral interval.
function getUpdateCollateralInterval(address registrar_) internal view returns (uint256);
getUpdateCollateralValidatorThreshold
Gets the update collateral validator threshold.
function getUpdateCollateralValidatorThreshold(address registrar_) internal view returns (uint256);
isApprovedEarner
Checks if the given earner is approved.
function isApprovedEarner(address registrar_, address earner_) internal view returns (bool);
isEarnersListIgnored
Checks if the earners_list_ignored
exists.
function isEarnersListIgnored(address registrar_) internal view returns (bool);
isApprovedMinter
Checks if the given minter is approved.
function isApprovedMinter(address registrar_, address minter_) internal view returns (bool);
isApprovedValidator
Checks if the given validator is approved.
function isApprovedValidator(address registrar_, address validator_) internal view returns (bool);
getPenaltyRate
Gets the penalty rate.
function getPenaltyRate(address registrar_) internal view returns (uint256);
getVault
Gets the vault contract address.
function getVault(address registrar_) internal view returns (address);
toAddress
Converts given bytes32 to address.
function toAddress(bytes32 input_) internal pure returns (address);
_contains
Checks if the given list contains the given account.
function _contains(address registrar_, bytes32 listName_, address account_) private view returns (bool);
_get
Gets the value of the given key.
function _get(address registrar_, bytes32 key_) private view returns (bytes32);