Questions tagged [liquidity-provider]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
13 views

How to determine whether a pending tx is a result of a swap in Uniswap?

Let's say I'm quering mempool, that is, pending transactions. How can I then filter out those that are the result of swaps made via Uniswap of certain liquidity pools? Let's say there're 10 liquidity ...
user avatar
0 votes
1 answer
14 views

How can I use UniswapV2 to create my own LP tokens?

I'm new to DeFi and liquidity farming. I'm just trying to build a simple LP farming application for testing and I'm trying to generate some of my own LP tokens to be used as my reward tokens. I'd like ...
user avatar
0 votes
1 answer
16 views

How do I write smart contracts that are LP tokens?

I'm very new to blockchain and DeFi, and I'd like to ask a questions regarding LP tokens. If I wanted to list 4 LP tokens, with farm reward proportions of: 80/60/40/20, how do I go about writing them? ...
user avatar
0 votes
0 answers
9 views

Liquidity Pool Addresses

I am looking to run some analytics on different liquidity pools in Curve, Uniswap and AAVE and for that I need their addresses. Is there any way I can get the list of pools and their contract ...
user avatar
0 votes
0 answers
14 views

HOW TO SAVELY PROVIDE LIQUIDITY ON UNISWAP?

I created a token and wanted to provide a liquidity with all the tokens I have, but it seems like I need a lot of ethereum, does anyone know how to safely do it?
user avatar
0 votes
0 answers
46 views

I get this error --We were not able to estimate gas. There might be an error in the contract and this transaction may fail,

when I try to transfer ownership, I get higher gas fees like 0.35bnb, and this message Transaction decoding is not available for chain ID 56, can any help? the contract has been added some liquidity ...
user avatar
0 votes
0 answers
75 views

[SOLVED]Uniswap addLiquidityETH failing with hardhat

I'm trying to fork the UniswapV2 contracts. I've already deployed on Mumbai testnet the core and periphery contracts, these are the addresses: Core: 0xeBF7c7d1b9704516d7e0660BE568945D0bBb1aAc Router: ...
user avatar
0 votes
2 answers
24 views

Liquidity locking and ETH loose

When you provide liquidity to a liquidity pool, you add 2 different tokens and you get LP Token (liquidity pool tokens). You can recover your 2 tokens amount when you give back your LP Tokens, ...
user avatar
  • 636
0 votes
1 answer
292 views

Add Liquidity failed: Internal JSON-RPC error

I am trying to add liquidity to pancake swap and keep getting the following error: Add Liquidity failed: Internal JSON-RPC error. Has anyone experienced this before, and if so can you help? We are ...
user avatar
0 votes
0 answers
35 views

Uniswap v3 liquidity events contract

I'm a researcher trying to scrape data pertaining to UniSwap v3 liquidity events (add/remove liquidity to the pool). Do all add/remove liquidity events have to go through the Uniswap V3: Positions NFT ...
user avatar
0 votes
0 answers
38 views

Cant add liquidity in uniswapv2router

Im trying to add liquidity on ropsten to my uniswap pair. I get to the point where I need to send eth for addLiquidityETH(). I put 1 eth amount. Im using this contract and calling the addLiquidityETH ...
user avatar
0 votes
0 answers
36 views

Add more token to your liquidity pool on Uniswap without adding ETH

If you start with a small supply of your token to Uniswap and over time want to add more tokens to the supply without adding ETH, is this possible? I know you could distribute to token holders say as ...
user avatar
0 votes
0 answers
51 views

My liquidity of my own contract got stolen

By this transaction https://bscscan.com/tx/0x1fd7e78163453a31245055fe7d3ad212fb23ef69b0c69e1316fe50a383d3a98e I try to understand how my tokens get out without my authorization and by far selling into ...
user avatar
0 votes
0 answers
17 views

Redo infinite approval?

If I have a function that adds liquidity to a Curve pool each time that it's called, and it gives infinite approval the first time, do I have to write a condition to go around the infinite approval on ...
user avatar
  • 307
0 votes
0 answers
8 views

Can liquidity provider profit from price fluctuation?

Imagine pair WBTC and BTC Obviously the price ratio will be 1 forever. No impermanent loss. Say someone buy 1 BTC. Now the price ratio is So amoung of WBTC went up. Amount of BTC went down. Let's for ...
user avatar
0 votes
0 answers
34 views

ICO vs IDO Launchpads

I have done the following observation: Currently IDOs, managed by a platform, are proposing a replacement for traditional self-managed ICOs. IDOs provide handy functionalities out of the box, as ...
user avatar
0 votes
0 answers
18 views

What is Liquidity Pool, and what it is used?

What are the liquidity pools, and pool tokens? What is the benefit for a liquidity provider also want to understand what is a validator and Delegators?
user avatar
1 vote
0 answers
42 views

How does "MasterChef (V2/3)" work in terms of rewards? What does it reward to a provider?

Talking about Sushiswap, Uniswap and similar projects: Suppose, I've deposited tokenA and tokenB into a liquidity pool and received "TokenAB LP" tokens. When I send my "TokenAB LP" ...
user avatar
0 votes
0 answers
19 views

What's "allocation point" in Yield Farming?

In Sushiswap and, perhaps, Uniswap, as well as in the number of others DEX-es inherited from those, in Yield Farming there's the notion of "allocation point". What's it for? How does it work?...
user avatar
0 votes
0 answers
233 views

How to modify my sniper bot (or front-run bot) to bring the profit?

The sniper bot will scan the mempool and find addliquidity method and then buy the token. The sniper bot can work but it always loss money because the following reason: Maybe the token have the very ...
user avatar
0 votes
1 answer
97 views

How's Liquidity Pool ID obtained from?

When programming Yield Farming, particularly in JS, MasterChefV3 requires an ID of liquidity pool, in order to make a deposit(...) into it. Where or how does one get a liquidity pool ID? it's not ...
user avatar
1 vote
0 answers
24 views

How to calculate annual percentage yield on an AMM?

A related question has been asked here but a satisfactory answer has not been provided. I understand that APY for x*y=k AMMs is a function of average volume(V), liquidity provided by LP(l), fee(f) and ...
user avatar
  • 230
0 votes
0 answers
58 views

How to do Yield Farming in web3.js? (uniswap, sushiswap)

I'm trying to understand how to do Yield Farming in UniswapV3 SushiSwap. There's MasterChef(3) there which is used for Yield Farming, it's got function deposit(...), .add(), withdraw(...) among ...
user avatar
0 votes
1 answer
236 views

mintNewPosition function of LiquidityExamples contract (Uniswap docs - V3) get reverted when trying to add liquidity

I am trying to interact with Uniswap V3 contracts. More specifically, I am trying to add liquidity to DAI - USDC pool. I am doing this locally by forking the Mainnet using ganache. This is my contract ...
user avatar
0 votes
0 answers
22 views

How to maintain token integrity when trading in different networks

Assume you are issuing a token in different networks: how do you maintain supply integrity (minting, burning...) across different networks over the time so they reflect your tokenomics? How to ...
user avatar
1 vote
1 answer
73 views

Must there be a "addLiquidityETH" txn for each token that is launched on PancakeSwap?

I'm trying to automatically detect when liquidity is added for a token. For that I scan through pending transactions. However, I've noticed that for some launches there seems to be no addLiquidityETH ...
user avatar
  • 11
0 votes
0 answers
31 views

How to find out the current amount of tokens of a LP?

imagine I have 100 tokens of the following LP: https://ftmscan.com/address/0xbdc7dfb7b88183e87f003ca6b5a2f81202343478 How I can now determine how many of token0 and token1 my 100 tokens of the LP are ...
user avatar
  • 101
0 votes
1 answer
63 views

How can I manually transfer Liquidity to a contract?

I'm doing a payment splitter that automatically splits the received money to some wallets. In the future, I want this money to go to the liquidity of a token. If I transfer directly to the token ...
user avatar
0 votes
0 answers
49 views

Why can I not get transaction with method add liquidity?

Recently, I try to make bot for learning goal. I know that projects use anti bot system, however I have interesting how to hide transaction with method (add liquidity) from pending mempool? I know ...
user avatar
  • 5
1 vote
0 answers
24 views

Find biggest liquidity pool of token for swap on Pancakeswap

I am coding a bot can buy - sell token in Pancakeswap. I already found a way to do it. But problem is 1 token has many liquidity pool, and I don't know which is the biggest. Example: token Address: ...
user avatar
0 votes
0 answers
24 views

Help with uniswap liquidity pool (erc-20 token)

Let's say I have an ERC-20 token in which the constructor mints 1 trillion (1000000000000) to my metamask upon deployment. I want people to be able to buy this token, so I create a liquidity pool on ...
user avatar
  • 21
0 votes
0 answers
31 views

Could someone tell me why Uniswap rejects this smart contract when I try to make a liquidity pool?

See verified contract on Rinkeby testnet here: https://rinkeby.etherscan.io/address/0x61133d3114d9539d987bfdadf18d87db8efa65ef When I try to create a liquidity pool on uniswap, the transaction never ...
user avatar
  • 21
0 votes
0 answers
23 views

how do i provide liquidity to a stable coin?

the coin is fiat backed stablecoin I have the fiat amount to back the coin supply. but what i don't understand is how an off-chain asset will provide value to an on-chain asset as far as i've ...
user avatar
0 votes
0 answers
99 views

Can't add liquidity pool for my ERC-20 token on uniswap

I created an ERC-20 token, tested it in truffle and remix, and deployed it to the Rinkeby testnet. I went to uniswap and connected my metamask (after verifying the contract on etherscan and adding my ...
user avatar
  • 21
0 votes
0 answers
99 views

Locking Liquidity and renounce: still able to withdraw after lock period?

Someone can help me to understand how Locking Liquidity works? I want to know how Unicrypt or Trustswap lock our tokens: If I create a token, add the liquidity, lock it with unicrypt, renounce the ...
user avatar
  • 141
0 votes
0 answers
80 views

Cannot remove Liquidity - BSC contract

I used a pre-made contract and after launching it, I cannot remove the liquidity from the Owner account. Some people bought. Would like to know why is it. Basically, it says that the Owner acc only ...
user avatar
0 votes
1 answer
27 views

How to match DeFi transaction to vaults

I'm building a defi dashboard. I need to value a DeFi wallet. I can value individual tokens that trade on a dex, and even LP receipts. But I'm having trouble with protocols like Adamant Finance, which ...
user avatar
1 vote
1 answer
137 views

How are Uniswap fees distributed equally factoring in both proportion and duration pooled?

A similar question has already been asked, however a satisfactory answer has not yet been provided. The Uniswap V2 Pools docs states: If the provider is minting a new pool, the number of liquidity ...
user avatar
  • 230
1 vote
1 answer
88 views

uniswap constant formula seems confusing

let's say Liquidity on ETH/DAI pair is 5 ETH and 18652 DAI. At the time of this writing, I figured out how many DAI is 5ETH and 18652 was the number. So 1eth costs costs 3730DAI Now, let's say user ...
user avatar
0 votes
1 answer
214 views

Error: The called function should be payable if you send value and the value you send should be less than your current balance

This is my constructor. I cant figure out why this error is ocurring as the constructor is identical to another deployed contract. It is related to the .createpair call. If i comment this out then it ...
user avatar
  • 123
0 votes
0 answers
7 views

Are liquidity pool prices consistent in the same token pairs, between fee-designated pools in Uniswap v3?

In Uniswap v3, you can have up to three fee-designated pools (0.05%, 0.30% or 1.00%) per token pair. Do the token prices remain exactly the same across these pools or are there discrepancies across ...
user avatar
  • 177
0 votes
0 answers
60 views

Is there an API to get info on the liquidity pools on QuickSwap?

How to get the following info of the LP farms Total Deposits, Total Rewards, Pool rates, Rewards + APY
user avatar
1 vote
0 answers
15 views

Loosing 1 Token when supplying for UniSwap v3 Liquidity

I am trying to add liquidity pool with my Custom erc.20 token, and ETH If I add 10,000 Tokens - for some reason the UniSwap UI shows 9,999 tokens Wondering if anyone here has noticed this in their LPs ...
user avatar
  • 11
2 votes
1 answer
227 views

Get all Swap Transactions from Pool Contract

I am trying to monitor my investment in a QuickSwap liquidity pool. So far, everything works fine tracking my LP-Token Value and calculating the impermanent loss etc. However, I would like to track ...
user avatar
  • 31
0 votes
0 answers
27 views

token issuing and liquidity pools basics

I'm starting my journey to learn smart contract development. Want to clear out the basics of new token issuing in a decentralized environment. When creating a new erc20 token "XYZ" and a ...
user avatar
  • 1
0 votes
0 answers
95 views

liquidity and issues swap token to bnb

Dears, I am doing some tests with a clone of the earlybird contract, but i got stuck when swapping from bnb to ebird4 and from ebird4 to bnb. after the deploy I add a liquity of 1bnb and then I ...
user avatar
  • 1
0 votes
0 answers
33 views

Can multiple ERC20 tokens with different contract addresses in theory be pooled together in one larger main pool?

So for this example, let's say there are 3 tokens, each with a fixed supply of 1000 tokens (3000 total) and each with different contract addresses. Can these three tokens, in theory, be pooled ...
user avatar
0 votes
1 answer
101 views

Help to find missing tokens

Actually, it's become a little complex. I am missing around 2 million-plus tokens now. Here are the actions I have done. Purchased GenshinShibInu tokens for $129 using Binance Smart Chain Wallet in ...
user avatar
0 votes
0 answers
26 views

How do wrapped ERC-20 tokens acquire flexibility across DeFi?

If someone wants to create a new wrapped token (say wBAL) that's pegged to BAL, the value is derived from BAL but while using wBAL across DeFi, does it also derive its market for BAL, or is there a ...
user avatar
  • 11
0 votes
1 answer
57 views

How to Sort total liquidity by top liquidity available?

Hi I am making a DEX and I am stuck with a problem, I want to Sort total liquidity by top liquidity available for a token paired with BNB or native token. I am using 0x API but there is nothing to do ...
user avatar
  • 72