IVaultFundraiseAdmin
Interface for the VaultFundraise Admin functions.
Functions
cancelRaise
Cancels the fundraise vault, only when the vault is Open
Only the admin can cancel the vault
function cancelRaise() external;
closeRaise
Closes the fundraise vault, only when the vault is Open
Only the admin can close the vault
function closeRaise() external;
withdraw
Transfers all funds to the fund receiver, only when the vault is Closed
Only the admin can withdraw funds
function withdraw() external returns (address[] memory tokens, uint256[] memory withdrawnAmounts);
Returns
tokens
address[]
The addresses of the tokens withdrawn
withdrawnAmounts
uint256[]
The amounts of the tokens withdrawn
withdraw
Transfers all funds to the fund receiver, only when the vault is Closed
Only the admin can withdraw funds
function withdraw(address token) external;
Parameters
token
address
The address of the token to withdraw
updateUsdcContractAddress
Admin updates the USDC contract address
function updateUsdcContractAddress(address newUsdcContractAddress) external;
Parameters
newUsdcContractAddress
address
The address of the new USDC contract
Events
FundraiseInitialized
Emitted when the fundraise is initialized
event FundraiseInitialized(VaultFundraiseStorage.Setup setup);
Parameters
setup
VaultFundraiseStorage.Setup
The initial setup of the fundraise
TokensWithdrawn
Emitted when tokens are withdrawn from the vault by the fund receiver
event TokensWithdrawn(address indexed receiver, address[] indexed tokens, uint256[] amounts);
Parameters
receiver
address
The address of the fund receiver
tokens
address[]
The addresses of the tokens withdrawn
amounts
uint256[]
The amounts of the tokens withdrawn
UsdcContractAddressUpdated
Emitted when the USDC contract address is updated
event UsdcContractAddressUpdated(address indexed prevUSDC, address indexed newUSDC);
Parameters
prevUSDC
address
The address of the previous USDC contract
newUSDC
address
The address of the new USDC contract
VaultCanceled
Emitted when the vault is canceled
event VaultCanceled();
VaultClosed
Emitted when the vault is closed
event VaultClosed();