Contracts Reference
RelayPoolNativeGateway
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
error EthTransferFailed()
error OnlyWethCanSendEth()
error RemainingEth()
error SlippageExceeded()
contract IWETH WETH
constructor(address wethAddress) public
| Name | Type | Description |
|---|---|---|
| wethAddress | address | Address of the Wrapped Native token contract |
function deposit(address pool, address receiver, uint256 minSharesOut) external payable returns (uint256 shares)
| Name | Type | Description |
|---|---|---|
| pool | address | The address of the ERC4626 pool to deposit into |
| receiver | address | The address that will receive the pool shares |
| minSharesOut | uint256 | Minimum amount of shares to receive (slippage protection) |
| Name | Type | Description |
|---|---|---|
| shares | uint256 | The amount of pool shares minted to the receiver |
function mint(address pool, address receiver, uint256 minSharesOut) external payable returns (uint256 shares)
| Name | Type | Description |
|---|---|---|
| pool | address | The address of the ERC4626 pool to mint shares from |
| receiver | address | The address that will receive the pool shares |
| minSharesOut | uint256 | Minimum amount of shares to receive (slippage protection) |
| Name | Type | Description |
|---|---|---|
| shares | uint256 | The amount of pool shares minted to the receiver |
function withdraw(address pool, uint256 assets, address receiver, uint256 maxSharesIn) external virtual returns (uint256 shares)
| Name | Type | Description |
|---|---|---|
| pool | address | The address of the ERC4626 pool to withdraw from |
| assets | uint256 | Amount of native ETH to withdraw |
| receiver | address | The address that will receive the native ETH |
| maxSharesIn | uint256 | Maximum amount of shares to burn (slippage protection) |
| Name | Type | Description |
|---|---|---|
| shares | uint256 | The amount of pool shares burned |
function redeem(address pool, uint256 shares, address receiver, uint256 minAssetsOut) external virtual returns (uint256 assets)
| Name | Type | Description |
|---|---|---|
| pool | address | The address of the ERC4626 pool to redeem from |
| shares | uint256 | Amount of pool shares to redeem |
| receiver | address | The address that will receive the native ETH |
| minAssetsOut | uint256 | Minimum amount of ETH to receive (slippage protection) |
| Name | Type | Description |
|---|---|---|
| assets | uint256 | The amount of native ETH sent to receiver |
function safeTransferETH(address to, uint256 value) internal
| Name | Type | Description |
|---|---|---|
| to | address | Recipient of the ETH transfer |
| value | uint256 | Amount of ETH to transfer |
receive() external payable
Was this page helpful?