interface GTERouter

constructor(address payable weth_, address launchpad_, address clobFactory_, address uniV2Router_, address permit2_);

Fallback

receive() external payable;

Reads

function clobFactory() external view returns (address);
function launchpad() external view returns (address);
function permit2() external view returns (address);
function uniV2Router() external view returns (address);
function weth() external view returns (address);

Writes

function clobCancel(
    address clob,
    struct ICLOB.CancelArgs args
) external;

function clobDeposit(
    address token,
    uint256 amount,
    bool fromRouter
) external;

function clobPostLimitOrder(
    address clob,
    struct ICLOB.PostLimitOrderArgs args
) external;

function clobWithdraw(
    address token,
    uint256 amount
) external;

function executeClobPostFillOrder(
    address clob,
    struct ICLOB.PostFillOrderArgs args
) external;

function executeRoute(
    address tokenIn,
    uint256 amountIn,
    uint256 amountOutMin,
    uint256 deadline,
    bytes[] hops,
    enum ICLOB.Settlement settlement
) external payable;

function executeUniV2SwapExactTokensForTokens(
    uint256 amountIn,
    uint256 amountOutMin,
    address[] path
) external;

function launchpadBuy(
    address launchToken,
    uint256 amountOutBase,
    address quoteToken,
    uint256 worstAmountInQuote
) external payable returns (
    uint256 baseBought,
    uint256 quoteSpent
);

function launchpadBuyPermit2(
    address launchToken,
    uint256 amountOutBase,
    address quoteToken,
    uint256 worstAmountInQuote,
    struct IAllowanceTransfer.PermitSingle permitSingle,
    bytes signature
) external returns (
    uint256 baseBought,
    uint256 quoteSpent
);

function launchpadSell(
    address launchToken,
    uint256 amountInBase,
    uint256 worstAmountOutQuote,
    bool unwrapEth
) external returns (
    uint256 baseSpent,
    uint256 quoteBought
);

function launchpadSellPermit2(
    address token,
    uint256 amountInBase,
    uint256 worstAmountOutQuote,
    struct IAllowanceTransfer.PermitSingle permitSingle,
    bytes signature
) external returns (
    uint256 baseSpent,
    uint256 quoteBought
);

Errors

error DeadlineExceeded();
error EthRefundFailed();
error InvalidCLOBAddress();
error InvalidSettlementForWrap();
error InvalidTokenRoute();
error InvalidWrapAmount();
error Reentrancy();
error SlippageToleranceExceeded();
error UnsupportedSelector();
error ValueSentWithoutWrap();