Questions tagged [liquidity-provider]

The tag has no usage guidance.

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

Does removing liquidity from a staked pancakeswap lp unstake it?

If I remove all the liquidity from a PancakeSwap V3 LP, I know it also collect the fees earned. But if that LP is staked in a farm, will removing the liquidity automatically unstake it and harvest the ...
sharip's user avatar
  • 1
0 votes
1 answer
36 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
1 vote
0 answers
20 views

Weighted token distribution

How do you determine the weight of token distribution to liquidity providers (aka how many tokens they get) based on how much liquidity they bring into the protocol? Is there a pre-stablished ...
dNyrM's user avatar
  • 894
0 votes
0 answers
110 views

How do I get the amount of asset i have on the pool?

I' am trying to retrieve the amount of token i have on my liquidity pool but i don't know how should i do it i've been trying to use the NonFungiblePositionManager but i can't use the token amount ...
Paucar's user avatar
  • 11
1 vote
0 answers
387 views

How to programmatically auto-add liquidity on transaction (ERC20, BEP20), (Uniswap Pancakeswap), (V2, V3)

I've perused the liquidity docs on the relevant DEXes Uniswap and Pancakeswap, as well as on Github. I've found no good tutorials outlining how to add liquidity by code. It's like trying to complete a ...
Ashraile's user avatar
  • 123
0 votes
1 answer
86 views

How to calculate the cost of deploying a new liquidity pair on uniswap [duplicate]

how can I calculate the cost of deploying a new liquidity pair on uniswap? Ty
Mustshank's user avatar
0 votes
0 answers
55 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
0 votes
1 answer
552 views

"Uniswap: Insufficient liquidity for this trade." when adding liquidity through contract

I am trying to create an Uniswap v2 liquidity pool for my token with custom tax fees (0x0AeE891A17e570Eba92A9138dB45DA2ecFAd7082) on Sepolia. To create the pool and add liquidity the function ...
root's user avatar
  • 11
0 votes
1 answer
1k views

How can i remove liquidity from a token

I'm learning how to create erc20 tokens, and after adding liquidity to my token for test, I Renounced ownership and now my eth is stuck in Uniswap. Is there a way to remove the liquidity even as I'm ...
Dave's user avatar
  • 1
1 vote
1 answer
318 views

Liquidity provisioning with yield-bearing tokens

I want to add liquidity to a pool with a yield-bearing token, such as stETH/ETH. Where does the yield of this token go to? Does it just go to the smart contract and gets owned by the smart contract, ...
João Areias's user avatar
0 votes
0 answers
335 views

Adding Liquidity Pair in PanCakeSwap V2 Testnet BSC for Burn/Tax Token against tBNB. Not Enabling Right Price Panel

I want to add Liquidity Pair for my Own Token against BNB. but the Price or Right Panel is not Enabling. My Token has Tax and Burn Features. I am using PCS V2 Testnet. I also Tested in V3(it didn't ...
ClastronGamer's user avatar
0 votes
1 answer
32 views

How was this liquidity token locked? I can't find any references to the lockNFT function online?

See here https://etherscan.io/tx/0x0e19b17b75dccb9e088c8f00ce8b1d2f4e505e376ee859f9d1d902fb6f36d9bd Function: lockNFT(uint256 tokenId) MethodID: 0x2b7170d0 [0]: ...
johnnyApplePRNG's user avatar
1 vote
0 answers
20 views

How does Curve's economic model sustain itself despite such low trading fees?

I've been providing LP on Curve's stETH/ETH pool for some time now, but I'm finding the trading fee rewards to be somewhat disappointing. This led me to wonder about the long-term sustainability of ...
Hinoon's user avatar
  • 11
0 votes
0 answers
97 views

Need Guidance on Handling a Paused Token pair in Uniswap : extract ETH from pair

I currently have a token pair (Token A and ETH) listed on Uniswap DEX. However, Token A's smart contract has been paused by its issuer, rendering this token immovable at the moment. Now, I'm aiming to ...
Jorney's user avatar
  • 1
0 votes
1 answer
61 views

What are some good strategies to launch a token in a DEX?

I have a project that has a token and I want to launch it in a DEX. How can I incentivise users to provide liquidity to the pool so the pool is backed by a fair amount of WETH? Do you know of some ...
Falcon Stakepool's user avatar
1 vote
0 answers
34 views

How to fetch Lido current Staking APR

I am building a project in which I need Lido current APR to show in the frontend. Is there any API from them that can provide me their current APR? I am not able to find such API in their docs.
Rishabh Raghwendra's user avatar
0 votes
1 answer
894 views

Why can't I remove liquidity from my Uniswap v2 Pool?

Token contract: 0x8b11461af2f7bc36ac3bbaff273b08485abe3bba Pair contract: 0x01007f8c2e88626932e30fed121e6090be7015a3 I tried to remove my added liquidity through uniswap however, MetaMask doesn't pop ...
Freddy2399's user avatar
0 votes
0 answers
2k views

Uniswap V3 Pool Token with Sell Taxes

Working on a new Token contract using a V3 Uniswap pool for Liquidity. The ERC20 token has the traditional taxes (reflection, buy,sell etc.) It seems that it's not possible to have a token with tax on ...
mrbmz's user avatar
  • 11
2 votes
2 answers
375 views

How can I retrieve 0.6 BNB stuck in a Flash Loan contract on Binance Smart Chain?

I'm interested in Flash Loans and watched a youtube video https://www.youtube.com/watch?v=qy6GZpI9QWI and used the supplied code (coming up at the end) and although it didn't work for me, I have 0.6 ...
Bryce's user avatar
  • 21
2 votes
0 answers
79 views

Can’t remove liquidity on uniswap [closed]

I’m having issue removing my lp from uniswap 0xbeF4fB0BE483c74667aB6Fb5f3C1fCdc7b4eC073 Please help check the contract out
dwanloaded tv's user avatar
2 votes
2 answers
424 views

How to calculate all-time global fees, earned by a Uniswap v3 pool?

Is it possible to calculate all-time global fees, earned by a Uniswap v3 liquidity pool? Using Uniswap v3 pool contract I can retrieve feeGrowthGlobal0X128 & feeGrowthGlobal1X128, which represent ...
Arctic45's user avatar
  • 121
1 vote
0 answers
196 views

Workaround for Removing Liquidity

I deployed an ERC20 contract, accidentally added liquidity straight to Uniswap router instead of through a function, and have no mechanism inside the Solidity contract to fix my mistake. My one ...
whodatdog123's user avatar
2 votes
1 answer
539 views

Uniswap Range Order Tick Range Question

Overview I am trying to provide single sided range liquidity on the USDC/WETH pool. I find myself having to lower the tick range in order to mint. As I understand per the docs that the higher priced ...
Nat's user avatar
  • 279
0 votes
2 answers
132 views

New DEX LP Honeypot question

I've come across a new DEX that claims to address the impermanent loss issue in a novel way. I've researched honeypots and it seems like a honeypot is usually done in the way of a token contract with ...
DKPete175's user avatar
1 vote
1 answer
478 views

Uniswap v3: what determines the if a tick is initialized?

Is a tick initialized if it just contains any liquidity? If someone deposits into an uninitialized tick, are they going to initialize it? When are ticks un-initialized?
kfx's user avatar
  • 1,516
1 vote
1 answer
358 views

Manipulating Uniswap V2's pair totalSupply via flash loan

Let's assume that I'm writing a UniswapV2 LP token price oracle. Would it be a bad idea to rely on the LP token totalSupply for my calculation? Would it be possible to manipulate its value through a ...
Ahmed Ihsan Tawfeeq's user avatar
1 vote
1 answer
1k views

Why does Uniswap V3 use ticks [-887272,887272] to represent the price range [0,∞]?

When providing liquidity to an already-created Uniswap V3 pool, you are offered the option to provide liquidity across the price range [0,∞] (effectively performing as a Uniswap V2 LP position). My ...
Ahmed Ihsan Tawfeeq's user avatar
7 votes
2 answers
2k views

How to get the value of a position on Uniswap V3 NFT?

I'm trying to get the amount of each token currently held in a liquidity pool position on Uniswap V3 (in Pyhton) based on the token ID of the NFT. I was able to get info about the position by calling :...
Jesús Castrejón's user avatar
5 votes
4 answers
595 views

Why concentrated liquidity is capital efficient?

This is from Uniswapv3 white paper: In other words, earlier versions were designed to provide liquidity across the entire price range (0, ∞). This is simple to implement and allows liquidity to be ...
Yilmaz's user avatar
  • 1,580
0 votes
1 answer
144 views

How can I use Pancake Swaps liquidity for my DEX?

I created a pancakeswap forked DEX with its smart contracts and the pancakeswap SDK. I can create pools, add liquidity & put limit orders although I want to use Pancakeswaps liquidity on my DEX. ...
Shahroz Khan's user avatar
0 votes
2 answers
368 views

how to make a contract compatible with different ERC-20 Decimals

I'm making a tutorial about how to create an AMM ( Automated Market Maker ), but I have a problem with the decimals. Both tokens have different decimals, and when I want to transfer them, the ...
George Lopez's user avatar
0 votes
1 answer
55 views

what is return value `uint liquidity` in IUniswapV2Router addLiquidity?

this is from IUniswapV2Router01.sol: function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, ...
Yilmaz's user avatar
  • 1,580
0 votes
1 answer
228 views

How to lock liquidity tokens on Pancakeswap or Uniswap

Tell me how to Lock liquidity on Pancakeswap or Uniswap ?
Kathi Clarson's user avatar
2 votes
2 answers
364 views

An unlocked wallet is holding 100% of the lp

How to remove the inscription An unlocked wallet is holding 100% of the lp on poocoin?
Ashton Vannorden's user avatar
1 vote
1 answer
603 views

Liquidity distribution on UniswapV3

There are two things I do not understand about UniswapV3 liquidity which are not explicitly addressed in the whitepaper. Why is there a link/dependency between the amounts of tokens X,Y and the range ...
D10001's user avatar
  • 23
0 votes
1 answer
190 views

What happens if someone buys all the tokenA in a uniswap concentrated pool?

In concentrated pools, Liquidity Providers can define a price range. Let's LP provides 1 million tokenA (maybe usdt) and 2 millions of tokenB. price of tokenB is 0.5 dollars. If Liquidity Provider ...
Yilmaz's user avatar
  • 1,580
0 votes
1 answer
82 views

Current Price on Uniswap LP doesn't match Deposit Requirement

I set the current price per apple as 4 grapes, so when I deposit 2 apples, wouldn't have to deposit 8 grapes. Why when I enter 2 apples it automatically enters ~4.22 as the recommended deposit for ...
Mabel Oza's user avatar
0 votes
1 answer
415 views

UniswapV3 analytics showing different TVL to subgraph query

Uniswap's official analytics page shows the USDC/ETH 0.05% pool as having TVL = $210.20m When I query the same pool on The Graph I get TVL at $333m example query: {pool(id : "...
D10001's user avatar
  • 23
0 votes
1 answer
420 views

Set tokenA as token0 for UniswapV2 liquidity pair contract

Hello guys I need some help! Could someone explain me how to set the token order (token0 / token1) of a liquidity pair? I’m using UniswapsV2 - Factory contract. Currently when i create a pool with ...
DarthJedi's user avatar
  • 101
0 votes
1 answer
2k views

Cannot remove liquidity ETH

I made and deployed below CA 'nah' https://etherscan.io/token/0x4cffb2ff47d662be8d0919f97e8c08436b2afa26 I added liquidity and renounced, but forgot to use the Enable Trading function. Now I cannot ...
Rob's user avatar
  • 1
1 vote
0 answers
43 views

Can I make a bridge without liquidity?

I started developing what it meant to be a bridge to learn and settle down my Solidity knowledge. I thought it could be done by one person and from what I understood I just needed smart contracts to ...
Javier Guzmán's user avatar
0 votes
0 answers
138 views

how to get the liquidity pool token amount by web3j with the contract hash

i want to get the token amount in the liquidity pool, is there any api to do it by web3j? thx very much. it is the amount in this picture
m32's user avatar
  • 1
0 votes
1 answer
497 views

Add liquidity problem

I want to list my token on pancakeswap. I want add liquidity pool 40.000.000.000.000.000 GNP and 20 bnb But I can't because when I want to create pool it sends error to me Add liquidity failed ...
Chris's user avatar
  • 1
0 votes
1 answer
47 views

Find breakdown of quotes & fees

good day! I'm exploring the 0x API documentation but wasn't able to find the clear reference, but I'm wondering how can we know the fees breakdown especially related different/multiple liquidity ...
Elli Anto's user avatar
2 votes
1 answer
83 views

Minting new position vs create new pool UniswapV3?

What is the difference between minting new position and creating new pool in adding liquidity?
Long's user avatar
  • 41
1 vote
0 answers
41 views

Significant difference of liquidity pool data in different sources

For an example: APE/ETH 0.3% pool There are different data of TVL in https://info.uniswap.org/#/pools/0xac4b3dacb91461209ae9d41ec517c2b9cb1b7daf and https://etherscan.io/address/...
acaska's user avatar
  • 11
1 vote
1 answer
837 views

1 ETH bounty: removing liquidity one-sided through migrating LP to Uniswap v3

1 ETH bounty for the person who gives me the deciding clue to solve this riddle. The situation is as follows: I deployed a ERC-20-Token, added liquidity to Uniswap v2, then called functions to change ...
lifelonglearning's user avatar
4 votes
1 answer
4k views

Calculating price impact on Uniswap V3

I need to calculate the price impact on Uniswap V3 to further compute the bid-ask spreads. What would be the mathematical formula and which data do I need? Thank you in advance for the help I'll keep ...
Sushiman's user avatar
4 votes
3 answers
2k views

Why MINIMUM_LIQUIDITY is used in DEX like Uniswap?

What is the MINIMUM_LIQUIDITY value used for? Why did they chose this numerical value? uint256 public constant MINIMUM_LIQUIDITY = 10**3; Why should it be burned? The mint function in the ...
nulltogeek's user avatar
0 votes
1 answer
25 views

How collateral is distributed to token side (L or S) in perpetual pool?

I am trying to implement a distribution of collateral deposited in the pool but I am not getting how it should be distributed in the perpetual pool.
Samresh Kumar Jha's user avatar