FeiTimedMinter
a contract which mints FEI to a target address on a timed cadence
Functions
constructor
function constructor(
address _core,
address _target,
uint256 _incentive,
uint256 _frequency,
uint256 _initialMintAmount
) public
constructor for FeiTimedMinter @param _core the Core address to reference @param _target the target for minted FEI @param _incentive the incentive amount for calling mint paid in FEI @param _frequency the frequency minting happens @param _initialMintAmount the initial FEI amount to mint
Parameters
Name | Type | Description |
---|---|---|
_core | address | |
_target | address | |
_incentive | uint256 | |
_frequency | uint256 | |
_initialMintAmount | uint256 |
mint
function mint() public
triggers a minting of FEI
timed and incentivized
mintAmount
function mintAmount() public returns (uint256)
setTarget
function setTarget(
address newTarget
) external
set the new FEI target
Parameters
Name | Type | Description |
---|---|---|
newTarget | address |
setFrequency
function setFrequency(
uint256 newFrequency
) external
set the mint frequency
Parameters
Name | Type | Description |
---|---|---|
newFrequency | uint256 |
setMintAmount
function setMintAmount(
uint256 newMintAmount
) external
Parameters
Name | Type | Description |
---|---|---|
newMintAmount | uint256 |
_setTarget
function _setTarget(
address newTarget
) internal
Parameters
Name | Type | Description |
---|---|---|
newTarget | address |
_setMintAmount
function _setMintAmount(
uint256 newMintAmount
) internal
Parameters
Name | Type | Description |
---|---|---|
newMintAmount | uint256 |
_mintFei
function _mintFei(
address to,
uint256 amountIn
) internal
Parameters
Name | Type | Description |
---|---|---|
to | address | |
amountIn | uint256 |
_afterMint
function _afterMint() internal