For the complete documentation index, see llms.txt. This page is also available as Markdown.

LimitOrderExecution

Git Source

Title: LimitOrderExecution

Instructions on how to execute a limit order.

struct LimitOrderExecution {
bytes32 orderHash;
address owner;
address buyToken;
address sellToken;
uint256 minBuyAmount;
uint256 sellAmount;
uint256 buyTokenFees;
AllowanceParams allowanceParams;
}

Properties

Name
Type
Description

orderHash

bytes32

The hash of the order that this swap represents.

owner

address

buyToken

address

Address of the token that the user is buying

sellToken

address

Address of the token that the user is selling

minBuyAmount

uint256

The minimum amount of buyToken that the user expects to receive

sellAmount

uint256

The amount of sellToken that the user will sell

buyTokenFees

uint256

The amount of buyToken fees that will be paid for the swap.

allowanceParams

AllowanceParams

The allowance parameters for the order. If empty, it means that at the time of the offchain validation there was already enough Permit2 allowance onchain to execute this order, so new allowance is not necessary.

Last updated

Was this helpful?