New answers tagged uniswap
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 ...
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 ...
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-...
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 ...
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
...
0
votes
Issue Deploying liquidity on Sepolia Testnet
No, pancakeswap dex doesn't support liquidity on testnet
https://pancakeswap.finance/liquidity/positions?chain=sepolia
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, ...
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 ...
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, ...
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
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
// ...
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
Top 50 recent answers are included
Related Tags
uniswap × 1223solidity × 393
uniswapv3 × 161
decentralized-exchange × 97
pancakeswap × 96
erc-20 × 93
ethers.js × 90
web3js × 78
liquidity-provider × 78
swaps × 66
contract-development × 62
tokens × 62
defi × 61
uniswapv2 × 56
etherscan × 55
transactions × 54
web3.py × 47
remix × 46
javascript × 44
blockchain × 41
ether × 41
hardhat × 41
python × 32
sushiswap × 32
metamask × 23