-
Notifications
You must be signed in to change notification settings - Fork 620
Docs: handling liquidity Delta discrepancies #952
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
Merged
saucepoint
merged 7 commits into
Uniswap:main
from
PaulElisha:docs-handle-amount-discrepancies
Jun 12, 2025
Merged
Docs: handling liquidity Delta discrepancies #952
saucepoint
merged 7 commits into
Uniswap:main
from
PaulElisha:docs-handle-amount-discrepancies
Jun 12, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@PaulElisha is attempting to deploy a commit to the Uniswap Team on Vercel. A member of the Team first needs to authorize it. |
cc: @saucepoint |
saucepoint
reviewed
Jun 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few things -- we should
- Title the section as "Handling Deltas for Liquidity Modifications"
- Let's explain why LiquidityAmounts != liquidity delta -- its because the price changed
- Let's make it very clear that developers should enforce slippage -- the deltas returned by pool manager are within an acceptable tolerance
cc: @saucepoint check it out. |
saucepoint
approved these changes
Jun 12, 2025
smblee
added a commit
to smblee/uniswap-docs
that referenced
this pull request
Jul 22, 2025
…cusaurus_v3 * og/main: (90 commits) Add v4 security documentation with SEAL 911 emergency hotline (Uniswap#1019) Fix path error on remappings (Uniswap#1001) Update 03-swap.mdx (Uniswap#1002) You are wraping "key.currency1" into an ERC20 , but it is already a E… (Uniswap#1003) fix: typos in docs/contracts/v1/guides/04-custom-linking.md (Uniswap#1004) Fix broken background link in pool data guide (Uniswap#1007) fix: Update deployments.mdx for Arbitrum sepolia (Uniswap#1008) Update deployments.mdx (Uniswap#1009) Update AVAX-Deployments.md (Uniswap#1010) docs/v3/guides: Update examples repo link (Uniswap#1011) replace dead references (Uniswap#1013) v4 sdk overview doc (Uniswap#1005) fix: yarn build subgraph redirect (Uniswap#1012) docs: v4-sdk: minting/fetching/adding/removing position and collecting fee example (Uniswap#992) Added advanced guide: fetch pool data & pool creation (Uniswap#997) Add v4-subgraph-example guide. Rename and format subgraph-example. Update external links to thegraph explorer and v3-subgraph GitHub (Uniswap#965) docs: add v4 quoting & swapping guides (Uniswap#977) Docs: handling liquidity amount discrepancies (Uniswap#952) doc on the types of fees (Uniswap#1000) fix spelling issues (Uniswap#998) ...
smblee
added a commit
to smblee/uniswap-docs
that referenced
this pull request
Jul 22, 2025
…redesign * bryan-12-04-upgrade_to_docusaurus_v3: (99 commits) Add v4 security documentation with SEAL 911 emergency hotline (Uniswap#1019) Fix path error on remappings (Uniswap#1001) Update 03-swap.mdx (Uniswap#1002) You are wraping "key.currency1" into an ERC20 , but it is already a E… (Uniswap#1003) fix: typos in docs/contracts/v1/guides/04-custom-linking.md (Uniswap#1004) Fix broken background link in pool data guide (Uniswap#1007) fix: Update deployments.mdx for Arbitrum sepolia (Uniswap#1008) Update deployments.mdx (Uniswap#1009) Update AVAX-Deployments.md (Uniswap#1010) docs/v3/guides: Update examples repo link (Uniswap#1011) replace dead references (Uniswap#1013) v4 sdk overview doc (Uniswap#1005) fix: yarn build subgraph redirect (Uniswap#1012) docs: v4-sdk: minting/fetching/adding/removing position and collecting fee example (Uniswap#992) Added advanced guide: fetch pool data & pool creation (Uniswap#997) Add v4-subgraph-example guide. Rename and format subgraph-example. Update external links to thegraph explorer and v3-subgraph GitHub (Uniswap#965) docs: add v4 quoting & swapping guides (Uniswap#977) Docs: handling liquidity amount discrepancies (Uniswap#952) doc on the types of fees (Uniswap#1000) fix spelling issues (Uniswap#998) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR addresses the known rounding discrepancies between:
Pre-calculated amounts (LiquidityAmounts.getAmountsForLiquidity())
Actual deltas (poolManager.modifyLiquidity())
It includes:
Documentation updates clarifying best practices.