Questions tagged [liquidity-provider]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
10 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
40 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
92 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
  • 1
0 votes
1 answer
217 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
102 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
152 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
24 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
17 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
27 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
27 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
21 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
2 answers
595 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
979 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
232 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
67 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
232 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
99 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
238 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
  • 247
0 votes
2 answers
68 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
0 votes
0 answers
44 views

Swapping token for Eth

since I cannot find a legit site to lookup liquidity for a smart contract this is my only option. Like there isn’t a single site that you go on, paste a smart contract option and it gives you all the ...
kaliqubes's user avatar
0 votes
1 answer
203 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,316
1 vote
1 answer
228 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
584 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
0 votes
0 answers
11 views

Selling my new token, how?

I have created my new ERC-20 token SCI on Gnosis chain, unlimited quantity of SCI can be minted as needed. I want to sell it e.g. for xDai. An adequate price would be 1 SCI for 10 XDAI. Any other way ...
porton's user avatar
  • 1,714
2 votes
1 answer
1k 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 on a liquidity pool position on uniswap v3 (on pyhton) based on the token ID of the NFT. I was abble to get info about the position calling : ...
Jesús Castrejón's user avatar
0 votes
0 answers
26 views

Does using borrowed capital make a Uniswap liquidity position hedged from impermanent loss

According to the following article, using borrowed capital can make a Uniswap position delta neutral. https://lambert-guillaume.medium.com/how-to-deploy-delta-neutral-liquidity-in-uniswap-or-why-euler-...
Menma's user avatar
  • 1
5 votes
3 answers
341 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,492
0 votes
1 answer
98 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
136 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
40 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,492
0 votes
1 answer
189 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
356 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
0 votes
0 answers
50 views

Wrap LP tokens + Rewards Yield in One Token

My question is whether there's any contracts out there currently that will allow you to wrap LP tokens + Reward (incentives) yield in the same token contract. Essentially, we have an LP token + ...
Cryptoman's user avatar
1 vote
1 answer
437 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
108 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,492
0 votes
1 answer
64 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
298 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
304 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
21 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
118 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
405 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
0 answers
70 views

Trying to use LiquidityAmounts.sol and its methods but not being able to compile

So basically I wanted to use the LiquidityAmounts.sol library from Uniswap in my Hardhat project so that I'd be able to interact with a deployed pool and calculate liquidity/amounts when making calls ...
VDS-Atomic's user avatar
0 votes
1 answer
45 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
72 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
  • 31
1 vote
0 answers
38 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
590 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
3 votes
1 answer
3k 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
1k 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 ...
Acllierveezra's user avatar
0 votes
1 answer
24 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