WETHRouter

Git Source

State Variables

FUSDC

IERC20 immutable FUSDC;

WETH

IWETH10 immutable WETH;

SEAWATER

ISeawaterAMM immutable SEAWATER;

Functions

constructor

constructor(IERC20 _fusdc, IWETH10 _weth, ISeawaterAMM _amm);

swapIn32502CA71

function swapIn32502CA71(address _token, uint256 _amount, uint256 _minOut) external payable returns (int256, int256);

swapOut5E08A399

function swapOut5E08A399(address _token, uint256 _amount, uint256 _minOut) external payable returns (int256, int256);

_swap2ExactInWeth

function _swap2ExactInWeth(address _token, uint256 _amount, uint256 _minOut)
    internal
    returns (uint256 amountA, uint256 amountB);

_swap2ExactOutWeth

function _swap2ExactOutWeth(address _token, uint256 _amount, uint256 _minOut)
    internal
    returns (uint256 amountA, uint256 amountB);

swap2ExactInED91BB1D

function swap2ExactInED91BB1D(address _tokenA, address _tokenB, uint256 _amount, uint256 _minOut)
    external
    payable
    returns (uint256, uint256);