IAsyncSwapAMM
Inherits: IAsyncSwapOrder
Title: Async Swap AMM Interface
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 | data contains address of the filler. |
withdraw
function withdraw(PoolKey memory key, bool zeroForOne, uint256 amount, address user) external;
batch
function batch(
AsyncOrder[] memory buys,
AsyncOrder[] memory sells,
bytes[] calldata buysData,
bytes[] calldata sellsData
) external;
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 |