Vault logic methods
depositNative
: transfers the network's native currency to thevault
address and can be called by any address. Emits theDepositNative
event.depositERC20
: transfers tokens to thevault
address fromdepositor
. It can only be called by thevault
owner and requires thedepositor
allowance
. Emits theDepositERC20
event.withdrawNative
: withdraws native currency from thevault
balance to a specified receiver address. It can only be called by thevault
owner and emits theWithdrawNative
event.withdrawERC20
: withdraws tokens from thevault
balance to a specifiedreceiver
address. It can only be called by thevault
owner and emits theWithdrawERC20
event.
Last updated