IAsyncSwapAMM
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
| Name | Type | Description |
|---|---|---|
order | AsyncOrder | The async order to be filled. |
userParams | bytes | Additional 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
| Name | Type | Description |
|---|---|---|
orders | AsyncOrder[] | An array of async orders to be executed. |
userParams | bytes | Additional 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
| Name | Type | Description |
|---|---|---|
user | address | |
executor | address |