From e4efdc21482356906e29cd41072ed85e667d7c99 Mon Sep 17 00:00:00 2001 From: Haris Angelidakis Date: Tue, 7 Mar 2023 10:25:07 +0000 Subject: [PATCH] GITBOOK-140: Update internalization format --- .../output-batch-auction-solutions.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/off-chain-services/in-depth-solver-specification/output-batch-auction-solutions.md b/off-chain-services/in-depth-solver-specification/output-batch-auction-solutions.md index bb83ec7..1d7bab7 100644 --- a/off-chain-services/in-depth-solver-specification/output-batch-auction-solutions.md +++ b/off-chain-services/in-depth-solver-specification/output-batch-auction-solutions.md @@ -90,7 +90,7 @@ The "amms" key maps to a dictionary containing all the AMMs that were used in th * `"exec_buy_amount"`: a stringified integer with the amount that the AMM buys. * `"sell_token"`: the token id of the token that the AMM is selling (sending) * `"exec_sell_amount"`: a stringified integer with the amount that the AMM sells. -* `"exec_plan"`: this entry helps to specify the order in which the different AMM interactions are to be executed. It consists of two entries (which can be thought of as coordinates), `"position"` and `"sequence"`, that are non-negative integers. The reason that two entries are used is to more precisely describe potential dependencies among AMM orders. In particular, two AMM orders that have a different `sequence` entry are independent and their relative order of execution does not matter. However, for all AMM orders with the same `sequence` entry, the order specified by the `position` entry must be respected, i.e., all such orders must be executed sequentially, in increasing order of the `position` entry. +* `"exec_plan"`: this entry helps to specify the order in which the different AMM interactions are to be executed. It consists of two entries (which can be thought of as coordinates), `"position"` and `"sequence"`, that are non-negative integers, and a third boolean entry labeled `"internal"`; the `internal` flag is discussed in the section below. The reason that two entries/coordinates are used is to more precisely describe potential dependencies among AMM orders. In particular, two AMM orders that have a different `sequence` entry are independent and their relative order of execution does not matter. However, for all AMM orders with the same `sequence` entry, the order specified by the `position` entry must be respected, i.e., all such orders must be executed sequentially, in increasing order of the `position` entry. An example of a Constant Product AMM execution entry is given below. @@ -107,7 +107,8 @@ An example of a Constant Product AMM execution entry is given belowPrices of the traded tokens