> For the complete documentation index, see [llms.txt](https://alchemix-finance.gitbook.io/v2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alchemix-finance.gitbook.io/v2/wethgatewaycover/iwethgateway.md).

# Interface

The following is a consolidated interface for the `WETHGateway`.

```
pragma solidity ^0.8.11;

interface IWETHGateway {

    receive() external payable;

    function refreshAllowance(address alchemist) external;

    function depositUnderlying(

        address alchemist,

        address yieldToken,

        uint256 amount,

        address recipient,

        uint256 minimumAmountOut

    ) external payable;

    function withdrawUnderlying(

        address alchemist,

        address yieldToken,

        uint256 shares,

        address recipient,

        uint256 minimumAmountOut

    ) external;

}
```
