Skip to main content

New answers tagged

0 votes

Using Uniswap V3 to swap 2 ERC20 tokens on Amoy Testnet

ey everyone, I'm really frustrated right now. I've been trying to test my smart contract, which uses Uniswap V3, on various testnets like Sepolia, Mumbai, Amoy, and even Goerli. But Uniswap V3 doesn't ...
Adriano M.Silva's user avatar
0 votes

I received ETH meta coinbase says its fake sender says its not?

It is worth noting that anyone can issue tokens, and whether any token is real depends on whether someone in the market recognizes it. The simple judgment of whether the market recognizes it is that ...
ivan's user avatar
  • 171
0 votes

Foundry library dependency mismatch

If Uniswap periphery and core are the only libraries in your project that require Openzeppelin's contracts as a dependency, then you can try the following approach: You can have your lib/openzeppelin-...
Mila A's user avatar
  • 1,484
1 vote

Uniswapv3 IQuoter revert

There is nothing wrong with the code itself, when run in the correct context. I tested against Solidity 0.8.25, and it seems to be returning a valid value. As @gary mentioned, the issue is perhaps in ...
makbeta's user avatar
  • 111
1 vote

Foundry library dependency mismatch

Instead of manually copying the files, you can install the required version of the OpenZeppelin library, by executing this command: forge install openzeppelin/[email protected] --no-commit ...
SYED ASAD KAZMI's user avatar
0 votes

Issue Deploying liquidity on Sepolia Testnet

No, pancakeswap dex doesn't support liquidity on testnet https://pancakeswap.finance/liquidity/positions?chain=sepolia
jnj's user avatar
  • 101
0 votes

Layer2: Revert Execution Error when Calling exactInputSingle in Uniswap V3

It can be few issues like I said there https://stackoverflow.com/questions/78132041/uniswap-not-working-on-sepolia-network-getting-error/78927811#78927811 in my answer So, it can be complicated issue, ...
akitotoken's user avatar
0 votes

Create Deterministic address without create2

As you have not provided enough details. Assuming that you want to get the address of a contract before deploying it via CREATE. Using ethers: const { ethers } = require("ethers"); const ...
Zartaj Afser's user avatar
  • 4,945
2 votes

Why are some UniswapV2 Pair addresses non deterministic

It was a problem caused by the comparison mechanism. token0 should be the token between tokenA and tokenB with the smallest address. A fix is using big.Int comparison: func GetV2PairAddress(tokenA, ...
Riccardo Perego's user avatar
1 vote

Uniswap Swapping

The "not enough liquidity" error on Uniswap generally means that there isn't sufficient liquidity in the pool for the token pair you're trying to swap
Ansar Qureshi's user avatar
0 votes

Purpose of Timestamp Assignment in UniswapV3's Observation Growth

Yes it's all related to gas costs. The code in the github repo has extra comments that explain it: https://github.com/Uniswap/v3-core/blob/main/contracts/libraries/Oracle.sol#L116-L117 // ...
0xSanson's user avatar
  • 3,709
1 vote
Accepted

How do you get price in UniswapV3?

in uniswap v3 you can get the price from sqrtX96 price and tick from the pool smart contract. check this blog for the help https://blog.uniswap.org/uniswap-v3-math-primer
Ansar Qureshi's user avatar

Top 50 recent answers are included