Skip to content

Add a document about rounding#334

Open
EndymionJkb wants to merge 2 commits into
v3-outlinefrom
add-rounding-docs
Open

Add a document about rounding#334
EndymionJkb wants to merge 2 commits into
v3-outlinefrom
add-rounding-docs

Conversation

@EndymionJkb
Copy link
Copy Markdown
Collaborator

Describe the rounding conventions of V3, and how, in contrast to V2, the Vault now controls scaling, rates, and the rounding direction.

Closes #168

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-v3 Ready Ready Preview, Comment May 26, 2026 8:13pm

Request Review

Copy link
Copy Markdown
Member

@joaobrunoah joaobrunoah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! One small comment only

|-----------|----------|
| Swap, given an exact amount in | the amount out is rounded **down**: you receive the same or slightly less |
| Swap, given an exact amount out | the amount in is rounded **up**: you pay the same or slightly more |
| Add liquidity, receiving BPT | the BPT minted is rounded **down** |
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| Add liquidity, receiving BPT | the BPT minted is rounded **down** |
| Add liquidity given exact amounts in, receiving BPT | the BPT minted is rounded **down** |

Both add liquidity operations receive BPTs, so I'd say that you need to specify amounts in to round BPT minted down.

Same applies to remove liquidity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add rounding page

2 participants