TakeOrdersConfig

Git Source

Config for a list of orders to take sequentially as part of a takeOrders call.

struct TakeOrdersConfig {
    address output;
    address input;
    uint256 minimumInput;
    uint256 maximumInput;
    uint256 maximumIORatio;
    TakeOrderConfig[] orders;
}

Properties

NameTypeDescription
outputaddressOutput token from the perspective of the order taker.
inputaddressInput token from the perspective of the order taker.
minimumInputuint256Minimum input from the perspective of the order taker.
maximumInputuint256Maximum input from the perspective of the order taker.
maximumIORatiouint256Maximum 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.
ordersTakeOrderConfig[]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.