Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IAsyncSwapAMM

Git Source

Inherits: IAsyncSwapOrder

Author: Async Labs

This interface defines the functions for the Async CSMM (Constant Sum Market Maker) contract.

Functions

executeOrder

Fill an async order in an Async Swap AMM.

function executeOrder(AsyncOrder calldata order, bytes calldata userParams) external;

Parameters

NameTypeDescription
orderAsyncOrderThe async order to be filled.
userParamsbytesAdditional data for the user.

executeOrders

Fills async orders in batching mode, allowing multiple orders to be executed in a single transaction.

function executeOrders(AsyncOrder[] calldata orders, bytes calldata userParams) external;

Parameters

NameTypeDescription
ordersAsyncOrder[]An array of async orders to be executed.
userParamsbytesAdditional data for the user, allowing user to specify an executor.

Structs

UserParams

Struct representing the user parameters for executing an async order.

struct UserParams {
  address user;
  address executor;
}

Properties

NameTypeDescription
useraddress
executoraddress