IMaverickV2RewardVault
Functions
withdraw
This function allows the owner of the reward vault to withdraw a specified amount of staking tokens to a recipient address. If non-owner calls this function, it will revert.
function withdraw(address recipient, uint256 amount) external;
Parameters
Name
Type
Description
recipient
address
The address to which the withdrawn staking tokens will be sent.
amount
uint256
The amount of staking tokens to withdraw.
owner
This function retrieves the address of the owner of the reward vault contract.
function owner() external view returns (address);
stakingToken
This function retrieves the address of the ERC20 token used for staking within the reward vault.
function stakingToken() external view returns (IERC20);
Errors
RewardVaultUnauthorizedAccount
error RewardVaultUnauthorizedAccount(address caller, address owner);
Last updated