Skip to main content

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

NameTypeDescription
_coreaddress
_targetaddress
_incentiveuint256
_frequencyuint256
_initialMintAmountuint256

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

NameTypeDescription
newTargetaddress

setFrequency

function setFrequency(
uint256 newFrequency
) external

set the mint frequency

Parameters

NameTypeDescription
newFrequencyuint256

setMintAmount

function setMintAmount(
uint256 newMintAmount
) external

Parameters

NameTypeDescription
newMintAmountuint256

_setTarget

function _setTarget(
address newTarget
) internal

Parameters

NameTypeDescription
newTargetaddress

_setMintAmount

function _setMintAmount(
uint256 newMintAmount
) internal

Parameters

NameTypeDescription
newMintAmountuint256

_mintFei

function _mintFei(
address to,
uint256 amountIn
) internal

Parameters

NameTypeDescription
toaddress
amountInuint256

_afterMint

function _afterMint() internal