Skip to main content

DelayedPCVMover

Functions

constructor

function constructor(
address _core,
uint256 _deadline,
contract RatioPCVControllerV2 _controller,
contract IPCVDeposit _deposit,
address _target,
uint256 _basisPoints
) public

DelayedPCVMover constructor

Parameters

NameTypeDescription
_coreaddressFei Core for reference
_deadlineuint256to wait before PCV movement
_controllercontract RatioPCVControllerV2used for moving funds
_depositcontract IPCVDepositused to withdraw funds from
_targetaddressto send funds to
_basisPointsuint256used to know what ratio of funds to move

withdrawRatio

function withdrawRatio() public

PCV movement by calling withdrawRatio on the PCVController. This will enforce the deadline check, and renounce to the PCV_CONTROLLER_ROLE role after a successful call.