From 9592386932e7d36d2128872e230839c5255ba1a5 Mon Sep 17 00:00:00 2001 From: Odysseus <101671322+OdysseusTheKing@users.noreply.github.com> Date: Thu, 16 Nov 2023 01:22:35 -0800 Subject: [PATCH] Update pool-exits.md Fixed Encoding section for Proportional and Custom Exits. --- docs/reference/joins-and-exits/pool-exits.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/reference/joins-and-exits/pool-exits.md b/docs/reference/joins-and-exits/pool-exits.md index 46725136..3c0e9f50 100644 --- a/docs/reference/joins-and-exits/pool-exits.md +++ b/docs/reference/joins-and-exits/pool-exits.md @@ -109,10 +109,10 @@ enum ExitKind { - **Single Asset Exit** (`EXACT_BPT_IN_FOR_ONE_TOKEN_OUT`) - User sends a precise quantity of BPT, and receives an estimated but unknown (computed at run time) quantity of a single token. -- **Proportional Exit** (`EXACT_BPT_IN_FOR_TOKENS_OUT`) - - User sends a precise quantity of BPT, and receives an estimated but unknown (computed at run time) quantities of all tokens. -- **Custom Exit** (`BPT_IN_FOR_EXACT_TOKENS_OUT`) - - User sends an estimated but unknown (computed at run time) quantity of BPT, and receives precise quantities of specified tokens. +- **Proportional Exit** (`BPT_IN_FOR_EXACT_TOKENS_OUT`) + - User sends a precise quantity of BPT, and receives an estimated but unknown (computed at run time) quantities of specified tokens. +- **Custom Exit** (`EXACT_BPT_IN_FOR_TOKENS_OUT`) + - User sends an estimated but unknown (computed at run time) quantity of BPT, and receives precise quantities of all tokens. #### Encoding @@ -123,11 +123,11 @@ enum ExitKind { - `[EXACT_BPT_IN_FOR_ONE_TOKEN_OUT, bptAmountIn, exitTokenIndex]` - Proportional Exit - userData ABI - - `['uint256', 'uint256']` + - `['uint256', 'uint256[]', 'uint256']` - userData - - `[EXACT_BPT_IN_FOR_TOKENS_OUT, bptAmountIn]` + - `[BPT_IN_FOR_EXACT_TOKENS_OUT, amountsOut, maxBPTAmountIn]` - Custom Exit - userData ABI - - `['uint256', 'uint256[]', 'uint256']` + - `['uint256', 'uint256']` - userData - - `[BPT_IN_FOR_EXACT_TOKENS_OUT, amountsOut, maxBPTAmountIn]` + - `[EXACT_BPT_IN_FOR_TOKENS_OUT, bptAmountIn]`