IWrappedNativeAsset
Inherits: IERC20
An interface for contracts that wrap native assets in ERC-20 form, such as WETH.
A generic name is used instead of "WETH" to accommodate chains with different native assets.
Functions
deposit
Deposits native assets to receive ERC-20 wrapped assets.
function deposit() external payable;
withdraw
Withdraws ERC-20 wrapped assets to obtain native assets.
function withdraw(uint256 amount) external;
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 | The amount of ERC-20 wrapped assets to withdraw. |