SingleDepositorVault
Last updated
Last updated
Inherits: ISingleDepositorVault, FeeVault
A vault that allows a single depositor to deposit and withdraw assets and allows a fee recipient and the protocol to charge fees. The vault owner retains full custody of assets at all times and can take arbitrary actions through the execute function. For convenience, ERC20 assets can also be withdrawn using the withdraw function and deposited using the deposit function
Fee logic is inherited from the fee vault and support for guardians is inherited from the BaseVault
constructor() FeeVault();
Deposit assets into the vault
function deposit(TokenAmount[] calldata tokenAmounts) external requiresAuth;
Parameters
tokenAmounts
TokenAmount[]
The assets to deposit
Withdraw assets from the vault
function withdraw(TokenAmount[] calldata tokenAmounts) external requiresAuth;
Parameters
tokenAmounts
TokenAmount[]
The assets to withdraw
Execute operations on the vault as a trusted entity
function execute(OperationPayable[] calldata operations) external requiresAuth;
Parameters
operations
OperationPayable[]
The operations to execute