IVaultFundraiseUser
Interface for the VaultFundraise User functions.
Functions
deposit
Deposits USDC to the vault, only when the vault is Open
function deposit(address usdc, uint128 amount) external;
Parameters
usdc
address
The USDC address to deposit for the fundraise
amount
uint128
The amount of the USDC token to deposit
claimRefund
Claims refund, only when the vault is Canceled
function claimRefund(address usdc) external returns (uint128 amount);
Parameters
usdc
address
The USDC address to claim refund for, used as payment token for the fundraise
Returns
amount
uint128
The amount of the USDC token claimed
Events
DepositReceived
Emitted when a deposit is received by the vault
event DepositReceived(address indexed depositor, address indexed token, uint128 amount);
Parameters
depositor
address
The address of the depositor
token
address
The address of the token received
amount
uint128
The amount of the token received
RefundClaimed
Emitted when a refund is claimed by the depositor
event RefundClaimed(address indexed claimer, address indexed token, uint128 amount);
Parameters
claimer
address
The address of the claimer
token
address
The address of the token claimed
amount
uint128
The amount of the token claimed