TakeOrdersConfigV2
Config for a list of orders to take sequentially as part of a takeOrders
call.
struct TakeOrdersConfigV2 {
uint256 minimumInput;
uint256 maximumInput;
uint256 maximumIORatio;
TakeOrderConfigV2[] orders;
bytes data;
}
Properties
| Name | Type | Description |
|---|---|---|
minimumInput | uint256 | Minimum input from the perspective of the order taker. |
maximumInput | uint256 | Maximum input from the perspective of the order taker. |
maximumIORatio | uint256 | Maximum IO ratio as calculated by the order being taken. The input is from the perspective of the order so higher ratio means worse deal for the order taker. |
orders | TakeOrderConfigV2[] | Ordered list of orders that will be taken until the limit is hit. Takers are expected to prioritise orders that appear to be offering better deals i.e. lower IO ratios. This prioritisation and sorting MUST happen offchain, e.g. via. some simulator. |
data | bytes | If nonzero length, triggers onTakeOrders on the caller of takeOrders with this data. This allows the caller to perform arbitrary onchain actions between receiving their input tokens, before having to send their output tokens. |