Vault logic methods

  • depositNative: transfers the network's native currency to the vault address and can be called by any address. Emits the DepositNative event.

  • depositERC20: transfers tokens to the vault address from depositor. It can only be called by the vault owner and requires the depositor allowance. Emits the DepositERC20 event.

  • withdrawNative: withdraws native currency from the vault balance to a specified receiver address. It can only be called by the vault owner and emits the WithdrawNative event.

  • withdrawERC20: withdraws tokens from the vault balance to a specified receiver address. It can only be called by the vault owner and emits the WithdrawERC20 event.

Last updated