Skip to content

Update pool-exits.md #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/reference/joins-and-exits/pool-exits.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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]`