Skip to main content

ERC20Dripper

Functions

constructor

function constructor(
address _core,
address _target,
uint256 _frequency,
uint256 _amountToDrip,
address _token
) public

ERC20 PCV Dripper constructor

Parameters

NameTypeDescription
_coreaddressFei Core for reference
_targetaddressaddress to drip to
_frequencyuint256frequency of dripping
_amountToDripuint256amount to drip on each drip
_tokenaddressamount to drip on each drip

drip

function drip() external

drip ERC20 tokens to target

withdraw

function withdraw(
address to,
uint256 amountUnderlying
) external

withdraw tokens from the PCV allocation

Parameters

NameTypeDescription
toaddressthe address to send PCV to
amountUnderlyinguint256of tokens withdrawn

deposit

function deposit() external

no-op

balance

function balance() public returns (uint256)

returns total balance of PCV in the Deposit

balanceReportedIn

function balanceReportedIn() public returns (address)

display the related token of the balance reported

Events

Dripped

event Dripped(
uint256 amount
)

event emitted when tokens are dripped

Parameters

NameTypeDescription
amountuint256