Skip to main content

FeiSkimmer

Functions

constructor

function constructor(
address _core,
contract IPCVDeposit _source,
uint256 _threshold
) public

FEI Skimmer

Parameters

NameTypeDescription
_coreaddressFei Core for reference
_sourcecontract IPCVDepositthe target to skim from
_thresholduint256the threshold of FEI to be maintained by source

skimEligible

function skimEligible() external returns (bool)

Return Values

NameTypeDescription
[0]booltrue if FEI balance of source exceeds threshold

skim

function skim() external

skim FEI above the threshold from the source. Pausable. Requires skimEligible()

setThreshold

function setThreshold(
uint256 newThreshold
) external

set the threshold for FEI skims. Only Governor or Admin

Parameters

NameTypeDescription
newThresholduint256the new value above which FEI is skimmed.

Events

ThresholdUpdate

event ThresholdUpdate(
uint256 newThreshold
)

Parameters

NameTypeDescription
newThresholduint256