Skip to main content

Questions tagged [liquidity]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

Can't remove liquidity from Uniswap V2 LP. Worked before i renounce ownership

after having a test about doing a token for our stream with a friends and despite the fact the liquidity was locked and i renounced the smartcontract there was no appeal for the project. I would like ...
Lauren's user avatar
  • 1
0 votes
0 answers
20 views

Cannot remove liquidity from Uniswap on Base Chain

I would like to seek assistance for this please. I think the LP for my token broke after renouncing the contract. No one was able to trade after the renounce. will give 0.05 eth to anyone who can help ...
Base Chain's user avatar
0 votes
0 answers
12 views

What can be the name of tokens which traps investors in a high APY staking program? (by offering them a high APY)

I called it myself a STAKING TRAP, because i didn't find any term for this type of scam. now maybe you ask yourself what i mean exactly by a STAKING TRAP? it is RUG PULL method by offering victims a ...
Morty's user avatar
  • 3
0 votes
0 answers
37 views

Uniswap v3 Mainnet vs Sepolia EvmError: Revert

I'm struggling to solve EvmError: Revert, while calling createAndInitializePoolIfNecessary function on Uniswap v3 NonfungiblePositionManager contract. I have wrote function that contains this code: ...
Neftyr's user avatar
  • 3
0 votes
0 answers
8 views

Need Assistance Resolving ds-math-underflow Error in Liquidity Pool Transaction

I'm currently facing an issue while trying to lock my share of the liquidity pool on the blockchain. Despite successful tests in a Hardhat environment, the transaction is reverted when executed on the ...
Yazan Ali's user avatar
0 votes
0 answers
16 views

Issues Adding Liquidity on Mainnet with a Custom ERC20 Token (It Works Using Hardhat!)

I've developed an ERC20 token using Solidity and have successfully tested its liquidity functions on Hardhat. The process completes successfully in the Hardhat environment, but when I attempt the same ...
Yazan Ali's user avatar
0 votes
0 answers
20 views

How to buy newly launch tokens from bsccan, that have insufficient liquidity?

When the contract address and supply of a token is created and got listed on bsccan before any other exchange the creator of the token tends to provide no liquidity for the token, which makes in ...
Awais's user avatar
  • 1
0 votes
0 answers
18 views

Downscaling liquidity tax according to ETH reserves for fair distribution without presale

So I wanted to try and solve the problems that arise when releasing a token with very low liquidity. Presaling should absolutely be avoided since holders always dump at the start. Assume 50 to 100% of ...
Ashraile's user avatar
  • 125
0 votes
0 answers
55 views

Can't add liquidity to my token

I created a token and now I need to add liquidity to it. Here is a code of my contract: // SPDX-License-Identifier: MIT pragma solidity 0.8.20; abstract contract Context { function _msgSender() ...
Regular User's user avatar
0 votes
1 answer
42 views

Difference between Liquidity in Uniswap V2 und V3 when deploying a contract

When I deploy a contract and add liquidity to my V2 pool on Uniswap, I usually add amount of TokenA and an amount of ETH which then determines the price (amount of tokens / amount of ETH). When people ...
SolidityNewbie's user avatar
0 votes
1 answer
57 views

How to compare liquidity between different DEX pools?

I'm interested in comparing how liquid DEX pools are, for example in order to find the pool that would have the least price impact when swapping from ETH to stablecoins. Looking at the token balances ...
kfx's user avatar
  • 1,650
0 votes
0 answers
36 views

addLiquidityETH reverts even after token approval

I am trying to deploy liquidity on a testnet using this code. However, it reverts with no explanation given other than that error. According to the UniswapV2 docs, I am using the correct router (...
Bobby Bee's user avatar
1 vote
1 answer
21 views

LP contract doesn't approve

I created this contract to simulate a liquidity pool and I'm testing it with the Remix IDE. I can say it works fine, except for the function to swap tokens for ether, which is bothering me. The user ...
Integral's user avatar
  • 115
0 votes
1 answer
52 views

Having trouble adding liquidity to Pancakeswap

I've added tokens to pancakeswap before, and it was easy, but now it doesnt work anymore... perhaps I am doing something really dumb, but I can't seem to figure it out and could use a little help. I ...
Adjam's user avatar
  • 137
0 votes
0 answers
7 views

How to handle liquidity pool transfers and fees?

Suppose I have a token on the Ethereum network. From what I understand, with each buy and sell a part of the transaction is maintained by the contract that adds it to the LP (liquidity pool). However, ...
Integral's user avatar
  • 115
1 vote
1 answer
440 views

What would happen if you allocated 100% of a token's supply to a DEX liquidity pool?

So we all know what happens when there is no liquidity at all; it's impossible to buy or sell a token with no liquidity. But what would happen in the reverse scenario; if 100% of a token's supply was ...
Ashraile's user avatar
  • 125
0 votes
0 answers
149 views

How to calculate how a certain transaction impacts a token price?

How to Calculate Token Price Impact of Large Trades in Decentralized Finance (DeFi) Environments I am developing a tool to analyze the impact of large trades on token prices within a Decentralized ...
Mohammad Safi's user avatar
1 vote
0 answers
123 views

Trying to create a liquidity pool on local network using uniswap's contract's

I am trying to create a liquidity pool on my local network. Here is what I have done so far: I deploy a WETH token I deploy the uniswap factory I deploy the uniswap router using the factory address ...
guiflam's user avatar
  • 11
0 votes
0 answers
42 views

Unable to Add Liquidity using uni swap V2 front end clone

I’m having error from the Uniswapv2 clone that I cloned following the below website instructions: https://www.covalenthq.com/docs/unified-api/guides/how-to-clone-uniswapv2-frontend/ The problem I’m ...
bature's user avatar
  • 1
0 votes
1 answer
57 views

I have a few questions about my token

Recently I have created a meme token based on the Gotta Lock In meme. When I deployed it to PancakeSwap, I deposited 19.000.000 $LOCKIN alongside with ~15$ of BNB into the liquidity pool. However once ...
Bùi Bảo Hoàng's user avatar
0 votes
0 answers
66 views

Put liquidity on liquidity pool using uniswap-python

I have a trouble at interacting with the uniswap liquidity pool using uniswap-python.this is my code: from web3 import Web3 from uniswap import Uniswap from web3.middleware import geth_poa_middleware ...
mohsen razavi's user avatar
0 votes
1 answer
65 views

Liquidity transfer from A user to B user

How can I make option for user transfering his liquidity pool value (withdraw it) to user B? Maybe it’s uniswap router, transfering LP tokens from wallet or what?
Hahan't's user avatar
  • 103
0 votes
2 answers
297 views

What is the difference between Uniswap V3 and Uniswap V2

can you help me to understand the main difference between Uniswap V3 and Uniswap V2 in terms of technology and liquidity. Also, is it legal to copy the Uniswap contract. I see lots of project just ...
Phill Jonny's user avatar
0 votes
1 answer
395 views

How to find amount of pooled tokens in Uniswap v3 pool

Given a Uniswap v3 pool: how can I find (using the Uniswap v3 pool contract) the amount of WETH and other coins that are in the pool? I know in Uniswap v2, you can just call the getReserves function. ...
01jayss's user avatar
  • 101
1 vote
2 answers
211 views

What happens when we directly send tokens to Uniswap pair?

This is about Uni V2 pools. So usually we call the function addLiquidity to add liquidity, but the function decides how many tokens should be added depending on the reserves. What if we directly send ...
Solidity Nerd's user avatar
1 vote
1 answer
76 views

removeLiquidity function in a smart contract, getting execution reverted due to ds-math-sub-underflow

i'm trying to create a smart contract which removes user's lp share from the pool doing these steps: calculates the current user's balance of LP tokens for a particular pair removes their liquidity ...
Ivan's user avatar
  • 149
0 votes
1 answer
256 views

I deployed a contract USING Remix IDE and Metamask and i cant ADD liquidity

i deployed a contract on BSCHAIN (its EVM machine i hope you dont mind)and i cant ADD LP practically does nothing,verification passed compilation as well i think might be an error in the code i wrote ...
Albu Razvan's user avatar
0 votes
0 answers
51 views

preventSwapBefore token contracts

I'm looking for a way to determine to determine tokens' contract private state variables such as _preventSwapBefore, or _reduceTaxAt, etc... Theese variables or often in token's contract, but in ...
Newly Sama's user avatar
0 votes
0 answers
54 views

Tips for creating a liquidity pool in Pancake Swap

dear friends I need the advice of my dear professional friends on this site in several areas, please advise and guide me in all areas. The first part is, what is the best strategy for financing a ...
Ali's user avatar
  • 63
0 votes
1 answer
97 views

UniswapV2 addLiquidityETH revert ds-math-sub-underflow

I tried this code for many contracts, and sending ETH and approving were done well, but on the addliquidityETH section, I get an error: reverted with 'ds-math-sub-underflow'. I can't understand why. ...
upme24's user avatar
  • 1
0 votes
0 answers
38 views

Minimal proxy contract, can make pair but can’t add liquidity

I have a cloneFactory which produces ERC20 compliant clones based on a master template. I’m able to deploy my clones and even create pairs for the clones. But when I want to add liquidity (...
Cloudronaut's user avatar
0 votes
2 answers
524 views

supplying liquidity + sniping own coin in same bundle

https://etherscan.io/tx/0x0d21d70e031089ab3e5b8083a84f122d5e995033c666dd7ce7cff982b5ba7c77 it looks like this transaction has Supply liquidity and swap Eth for its token all in one bundle. can anyone ...
anon's user avatar
  • 25
0 votes
0 answers
20 views

Inwestycja w liquidity mining

Good morning, Can anyone attest or have invested on the website ehcwa.top? I don't know if this is a real site or a scammers site though. Thank you in advance for your help and reply
Bartek Goc's user avatar
0 votes
1 answer
326 views

What is the usual gas fee by deploying innicial liquidity to my eth token?

Wanted to know what gas fees I need to expect when adding initial liquidity to my eth token. I removed liquidity for about 11 dollar gas. Now I want to add a new tokenpair and set with it a new price ...
Hippie's user avatar
  • 1
0 votes
1 answer
1k views

Unable to Add Liquidity in Uniswap

I tried adding liquidity in Uniswap, however when after I approve the spending and press supply, the add supply button just load one time and then stop. Nothing happens after this. It seems that I ...
Fewdehcat's user avatar
1 vote
2 answers
38 views

Do banks store the money when we buy stablecoins? Then how is it decentralized?

I need someone to verify if my understanding is correct. When we buy ETH, we swap it in a pool with Stablecoin. To trade, it requires a pair of ETH/USD. What gives a Stablecoin its value? In the ...
Xirexor's user avatar
  • 137
1 vote
1 answer
689 views

How to get correct liquidity amount on UniswapV3 for each token(pair) via web3.js?

I'm trying to create a bot that will send me new LPS notifications on Uniswap V3 and in the future more dexes. I want to contain in the message specific data like amount of token and ETH in the pool, ...
RasmonT's user avatar
  • 131
0 votes
0 answers
61 views

getting error when trying to add liquidity

So I tried to add liquidity in Rocketswap for the Basechain, in the contract I used the router adress of Rocketswap. But I get this error, I have a feeling it has to do with the Transfer_from function....
ocean's user avatar
  • 1
1 vote
0 answers
451 views

Uniswap V3 Pool initialization

As I was doing research on Uniswap V3 pool esp. about adding liquidity to such a pool, I found the initialization takes some non-trivial sqrtPriceX96 that is coming from nowhere. When a pool is ...
Maxareo's user avatar
  • 673