MaverickV2RewardVault

Inherits: IMaverickV2RewardVault

Vault contract with owner-only withdraw function. Used by the Reward contract to segregate staking funds from incentive rewards funds.

State Variables

owner

This function retrieves the address of the owner of the reward vault contract.

address public immutable owner;

stakingToken

This function retrieves the address of the ERC20 token used for staking within the reward vault.

IERC20 public immutable stakingToken;

Functions

constructor

constructor(IERC20 _stakingToken);

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) public;

Parameters

NameTypeDescription

recipient

address

The address to which the withdrawn staking tokens will be sent.

amount

uint256

The amount of staking tokens to withdraw.

Last updated