Questions tagged [uniswapv3]
The uniswapv3 tag has no usage guidance.
23
questions
0
votes
0
answers
9
views
Error indexing handleIncreaseLiquidity on a local graph-node on Token#get:decimals with message: "Value is not a BigInt"
Hi, I' m tring to deploy this subgraph to a local graph node that is connected to a local ethereum node on the goerli network.
The OS is xubuntu v21.10 .
The node is hyperledger besu v22.1.2.
The ...
1
vote
0
answers
14
views
Uniswap V3 NonfungiblePositionManager mint() using truffle/hardhat reverts without reason string
I want to initialize a new liquidity pool and add initial liquidity using uniswap V3-periphery library, using truffle/hardhat as the dev environment. I set hardhat to fork mainnet using infura.
Here ...
0
votes
0
answers
8
views
How to query for total non-active Liquidity locked between two specified ticks in UniswapV3
On uniswapV3, is there a query to get liquidity data within specific tick ranges for a specified pair.
Say I want to know liquidity for DAI/ETH locked between the price range 72660 to 72720 regardless ...
0
votes
0
answers
16
views
How to calculate amountOutMin parameter in the UniswapV3 swapRouter.exactInputSingle() function using an onchain oracle?
Can someone tell me how to calculate the amountOutMin parameter in the swapRouter.exactInputSingle() function using an onchain oracle? I've got a working uniswapV3 oracle that can retrieve the price ...
1
vote
0
answers
24
views
How to Flash-Swap on UniswapV3
i need some help .I have already deployed the "pair flash" contract with hardhat , on uniswapV3 , now i need to know the function to call . Thanks !
https://docs.uniswap.org/protocol/guides/...
0
votes
0
answers
30
views
How to initialize a pool in uniswap v3?
function _initializePool(address tokenA, address tokenB, uint24 fee) external returns(address pool){
uint160 sqrtPriceX96 = uint160(Babylonian.sqrt(price) * 2 ** 96);
pool = ...
0
votes
0
answers
15
views
HOW TO SAVELY PROVIDE LIQUIDITY ON UNISWAP?
I created a token and wanted to provide a liquidity with all the tokens I have, but it seems like I need a lot of ethereum, does anyone know how to safely do it?
0
votes
1
answer
30
views
ETH not showing in Coinbase Wallet after using Uniswap
I used Uniswap to "swap" Boost Coin (was paid in this for assisting with the project) to ETH. To clarify, this was using the browser on Coinbase Wallet app, not regular coinable. When I look ...
0
votes
1
answer
56
views
UniswapV3 price calculated using sqrtPriceX96 is wrong
I'm calculating a UniswapV3 pool's token0 price in Node.js. Using UniswapV3 SDK gives correct result, but manual calculation isn't.
From the docs -
sqrtPriceX96 = sqrt(price) * 2 ** 96
# divide both ...
0
votes
1
answer
132
views
Uniswap V3: Fetching spot prices documentation seems incomplete
I'm working on V3 of Uniswap for the first time, and am trying to get the current price of a pool.
I'm using this tutorial page https://docs.uniswap.org/sdk/guides/fetching-prices, which certainly ...
1
vote
0
answers
24
views
Uniswap v3 current tokens quantity in invested LP
is there an API to know the current amount of reserves in the invested concentrated liquidity pool in Uniswap v3
0
votes
0
answers
53
views
Uniswap V3 Oracle library: consult always crashes. Trying to get reliable oracle of Ethereum price in USDC
import "https://raw.githubusercontent.com/Uniswap/v3-periphery/main/contracts/libraries/OracleLibrary.sol";
function poolAddress() public view returns (address) {
return ...
0
votes
0
answers
42
views
Uniswap v3 liquidity events contract
I'm a researcher trying to scrape data pertaining to UniSwap v3 liquidity events (add/remove liquidity to the pool).
Do all add/remove liquidity events have to go through the Uniswap V3: Positions NFT ...
0
votes
0
answers
78
views
Invalid Arrayify Value when querying Uniswap v3 Quoter contract
Does anyone know why my code for passing an array of pool addresses into the QuoterV2 quoteExactInput function is returning an 'invalid arrayify value' error?
async function main() {
var amt = ...
1
vote
0
answers
54
views
What's the equivalent of `swapExactETHForTokens` in Uniswap V3?
In Uniswap V2 router, there's this swapExactETHForTokens to swap ETH directly to other token.
I didn't find similar function in V3 router. Does this mean this is not supported anymore? Thanks!
0
votes
1
answer
41
views
route.midPrice.toSignificant() - Calculate Price for Swap Tokens - Not matching Price
I try to swap coins on QuickSwap for this i use the quickswap-sdk and the ethers
In the following exapmle i want to swap 0.05 Matic to Sand
I am this to get the amount of tokens i want to swap:
const ...
0
votes
0
answers
116
views
Is there any Uniswap quote function for on-chain calls?
I want to expect how much input tokens should be spent to get exact amount of output token on Uniswap V3.
Uniswap V2 has router.getAmountsIn() to expect it.
V3 supports quote interface but it is ...
1
vote
0
answers
57
views
Testing Uniswap V3 FlashSwap reverts with TF error code
I'm testing a simple example of flash swap v3 on a mainnet fork using Ganache and Truffle.
All tests passed successfully except the "swap" function executed on the UniswapV3Pool.
Before ...
2
votes
1
answer
95
views
How to send Uniswap V3: Positions NFT to another wallet using Node.js
I have the private key for the wallet. How can I send Uniswap V3: Positions NFT (UNI-V3-POS) from this wallet to another wallet using Node.js and ethers.js for example?
Token contract address: ...
0
votes
0
answers
166
views
Uniswap V3 SDK Pool.token0Price()
First of all I am only about a week into front-end programming for dApps, any patience with me would be appreciated.
I am trying to get the ETH/DAI and DAI/ETH price from Uniswap Liquidity Pool and ...
0
votes
0
answers
28
views
How are Uniswap v3 multiple pools working?
I recently get interested in Uniswap v3.
I found there are multiple pools for a token pair and it is working with different fees.
But I'm wonder How it is actually working.
I found some related code ...
0
votes
0
answers
16
views
UniswapV3 Pool Liquidity
function liquidity() external view returns (uint128)
Which side of the asset pair is referenced here, or is that value in ETH?
How do I scale it properly?
0
votes
0
answers
97
views
Is there any way for a multisig to rebalance a narrow Uniswap V3 liquidity position?
Let’s say I and other members of my DAO want to collectively own a 120-tick wide liquidity position in Uniswap V3. We’ve agreed to rebalance once / day to keep the position centered around the current ...