Skip to main content

Questions tagged [sqrtpricelimitx96]

0 votes
1 answer
61 views

Like the title of the post says it, how do I set up the initial sqrtPriceX96 when creating an Uniswap v3 pool, in solidity? Let's call token0 ABC. ABC has 18 decimals. token1 is USDC (so 6 decimals). ...
dNyrM's user avatar
  • 974
0 votes
0 answers
73 views

could you help me figure out why the calculation of price using slot0 sqrtPriceX96 from UniswapV3 pool doesn't work for one of the tokens? This code works correctly for several other tokens. Just ...
Digital's user avatar
  • 103
0 votes
1 answer
244 views

In Uniswap V3, getting different prices of 1 WETH to USDC while swapping and adding liquidity, potentially because of fees and other contributing factors. Swap Add Liquidity Programmatically, I'm ...
SYED ASAD KAZMI's user avatar
0 votes
1 answer
70 views

import requests import json url_v3 = "https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3" pools_query_v3 = """ { pools(orderBy: txCount, orderDirection: desc) { ...
Fadai Mammadov's user avatar
0 votes
1 answer
715 views

I am working with Uniswap v3 and need to calculate the sqrtPriceX96 value that is exactly 5% (or any other percentage) above or below the current pool price. I understand that each tick in Uniswap v3 ...
MShakeG's user avatar
  • 2,015
4 votes
1 answer
1k views

The sqrtPriceLimitX96 is just a price limit which cannot be exceeded by the trade. At the same time, the amountOutMinimum appears to do the same thing in that you can achieve maximum price by taking: ...
Nat's user avatar
  • 309