WETH wrapper logic methods
All methods can only be called by the
vault owner
.wrapNative: Deposits native network currency sent in an external call to
weth
.wrapNativeFromVaultBalance: Deposits native network currency located on the
vault
contract intoweth
. ThrowsWETHwrapper_InsufficientBalance
error ifamount > address(vault).balance
.unwrapNative: Converts
weth
located on thevault
address to native network currency. ThrowsWETHwrapper_InsufficientBalance
error if there are insufficientweth
tokens on thevault
contract. The converted balance remains on thevault
address.
Last updated