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

SmartOrderExecution

Git Source

Title: SmartOrderExecution

Instructions on how to execute a smart order.

struct SmartOrderExecution {
bytes32 orderHash;
address target;
address callDataTarget;
bytes callData;
address buyToken;
address sellToken;
uint256 buyAmount;
uint256 minSellAmount;
}

Properties

Name
Type
Description

orderHash

bytes32

The hash of the order that this swap represents.

target

address

Where the funds will be sent to.

callDataTarget

address

The address to call. Usually a pool or a router address.

callData

bytes

The calldata to call the target it with.

buyToken

address

Address of the token that the smart order is buying.

sellToken

address

Address of the token that the smart order is selling.

buyAmount

uint256

The amount of buyToken that will be sent to target.

minSellAmount

uint256

The minimum amount of sellToken that Turbine expects to receive.

Last updated

Was this helpful?