Skip to main content

PCVEquityMinter

A FeiTimedMinter that mints based on a percentage of PCV equity

Functions

constructor

function constructor(
address _core,
address _target,
uint256 _incentive,
uint256 _frequency,
contract ICollateralizationOracle _collateralizationOracle,
uint256 _aprBasisPoints,
uint256 _maxAPRBasisPoints,
uint256 _feiMintingLimitPerSecond
) public

constructor for PCVEquityMinter @param _core the Core address to reference @param _target the target to receive minted FEI @param _incentive the incentive amount for calling buy paid in FEI @param _frequency the frequency buybacks happen @param _collateralizationOracle the collateralization oracle used for PCV equity calculations @param _aprBasisPoints the APR paid out from pcv equity per year expressed in basis points

Parameters

NameTypeDescription
_coreaddress
_targetaddress
_incentiveuint256
_frequencyuint256
_collateralizationOraclecontract ICollateralizationOracle
_aprBasisPointsuint256
_maxAPRBasisPointsuint256
_feiMintingLimitPerSeconduint256

mint

function mint() public

triggers a minting of FEI based on the PCV equity

mintAmount

function mintAmount() public returns (uint256)

setCollateralizationOracle

function setCollateralizationOracle(
contract ICollateralizationOracle newCollateralizationOracle
) external

set the collateralization oracle

Parameters

NameTypeDescription
newCollateralizationOraclecontract ICollateralizationOracle

setAPRBasisPoints

function setAPRBasisPoints(
uint256 newAprBasisPoints
) external

sets the new APR for determining buyback size from PCV equity

Parameters

NameTypeDescription
newAprBasisPointsuint256

_setAPRBasisPoints

function _setAPRBasisPoints(
uint256 newAprBasisPoints
) internal

Parameters

NameTypeDescription
newAprBasisPointsuint256

_setCollateralizationOracle

function _setCollateralizationOracle(
contract ICollateralizationOracle newCollateralizationOracle
) internal

Parameters

NameTypeDescription
newCollateralizationOraclecontract ICollateralizationOracle

_afterMint

function _afterMint() internal