Questions tagged [liquidity-provider]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 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 ...
0
votes
0answers
21 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 ...
0
votes
0answers
8 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 ...
0
votes
0answers
28 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 ...
0
votes
1answer
22 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 ...
1
vote
1answer
102 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 ...
1
vote
1answer
39 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 ...
0
votes
1answer
48 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 ...
0
votes
0answers
4 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 ...
0
votes
0answers
14 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
1
vote
0answers
14 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 ...
1
vote
1answer
37 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 ...
0
votes
0answers
26 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 ...
0
votes
0answers
39 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 ...
0
votes
0answers
15 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 ...
0
votes
1answer
60 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 ...
0
votes
0answers
22 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 ...
0
votes
1answer
44 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 ...
1
vote
0answers
19 views

How would a bank run instance be handled by a DEX?

How would a DEX like Uniswap handle a hyptothetical situation where every LP in a pool tries to withdraw at the same time? At any instance, taking into consideration the trading activities in a ...
0
votes
0answers
21 views

Stack too deep when compiling inline assembly (Uniswap LP) [duplicate]

I am trying to use solidity to automate creation of liquidity pools on Uniswap V3. I grabbed the code from here After compiling, I get this error: "CompilerError: Stack too deep when compiling ...
0
votes
0answers
11 views

What does the Defi Tokemak project do exactly?

With all these new defi projects coming out, I'm a bit loss on what these new things do, like: https://www.tokemak.xyz -- What is the purpose of the defi project? What does it solve exactly?
0
votes
0answers
44 views

New BEP-20 Liquidity Pool Issue - Left Over Tokens after burn

I am new to liquidity so I think I made a mistake that I can't afford being a new "legitimate" startup company with a real purpose. I minted 1,000,000,000,000,000 and burned 550,000,000,000,...
0
votes
1answer
127 views

What are the theories and methods of calculating the risk free value of lp tokens

I read from Olympus DAO discord that the risk free value of lp tokens can be calculated roughly by this formula: sqrt(n_0*n_1), where n_0, and n_1 are the numbers of the two tokens respectively. I'm ...
1
vote
1answer
179 views

Pancakeswap - Price Impact too high

I deployed my own coin and tried to set the initial token value on Pancakeswap. After setting the initial value I tried to exchange my BnB's to MY_TOKEN and got a notification, that my price impact is ...
1
vote
1answer
282 views

Uniswap V3: Create LP (ETH-ERC20 pair) using solidity

I am trying to create a Liquidity Pool using solidity with ETH and my custom ERC20 token. I’ve been struggling with this mainly because the example for V3 is a ERC20 to ERC20 pair. Does Uniswap ...
0
votes
0answers
37 views

Rug-pulled Token - Can someone show me where the minter function is in the smart contract?

About the rugpull: Token: Shibabox https://etherscan.io/address/0xe435e0d96cfa4bdee44a40f67a00c39770a44d55#code Liquidity was 95% locked and the contract passed tokensniffer.com with flying colors. ...
0
votes
1answer
38 views

Can impermanent loss protect you against a price crash?

I was tinkering with this impermanent loss calculator and noticed that if the price of an asset drops while you are using it to provide liquidity, that seems to buffer you against losses because you ...
1
vote
2answers
20 views

Will ETH 2.0 affect the rate of return from providing liquidity?

A relatively simple question, but I am sure I'm missing details about the ETH 2.0 planned upgrades. Is there any reason to think that liquidity pool fees and the resulting APR/Y as a liquidity ...
0
votes
1answer
29 views

How do I put a json array of addresses and amounts in a contract and send to liquidity when fees sent :)

I have a need. Users participated in airdrop, sending tokens to over 50000 wallets constitute quite a fee. So we developed a medium for them to pay their gas fees themselves, and the rush was too much ...
0
votes
1answer
17 views

Does a bridge always necessitates creating an intermediate token?

When one creating a so-called bridge in order to exchange a coin on one blockchain to a coin on a different blockchain, how does it work? Does it always necessitate creating an intermediate token - LT ...
0
votes
0answers
5 views

Does a bridge always necessitates creating an intermediate token? [duplicate]

When one creating a so-called bridge in order to exchange a coin on one blockchain to a coin on a different blockchain, how does it work? Does it always necessitate creating an intermediate token - LT ...
0
votes
0answers
59 views

Can I reset the initial set price for erc20 token on uniswap?

I am relatively new to cryptocurrency and wanted to try listing an erc20 token. I listed my erc20 token on Uniswap and set its initial price while adding the first liquidity. Later, I wanted to change ...
0
votes
0answers
54 views

Where do bot front bot runners get initial liquidity?

In order to pull off front running attacks or arbitrage, a person who runs a bot has to have enough liquidity, doesn't he? For instance, to beat a transaction of 100 ETH he'll have to do this amount ...
0
votes
1answer
526 views

How to determine if some LP tokens related to my token or not?

I want to build an ERC20 token and I want to add staking functionality for liquidity providers. If someone decided to make a liquidity pool with my tokens and then stake it to my contract to earn ...
1
vote
1answer
167 views

Solidity - Is this the correct way to add liquidity to uniswap with exact amount at current price?

I am writing some smart contract code that needs to add liquidity to a Uniswap V2 pair. I have already performed some validation checks at the start of my transaction function to ensure that the ...
0
votes
0answers
92 views

If I try to sell tokens from a smart contract, it is failing with insufficient output amount

I am trying to do an autosell function like safemoon has, but I am getting always "insufficient output amount" Steps to reproduce: Deploy my token Add liquidity v2 in uniswap with 1 T ...
0
votes
0answers
29 views

Where to find the routerAddress, pairAddress, routerForkAddress, pairForkAddress? I am trying to make a clone of the UniswapV2

const BonusToken = artifacts.require('BonusToken.sol'); const LiquidityMigrator = artifacts.require('LiquidityMigrator.sol'); const Migrations = artifacts.require('Migrations'); module.exports = ...
0
votes
0answers
30 views

Optimization problem: Adding liquidity to a token for a first time

I’m struggling to find what exactly I should do with my tokens. My token has 10 million supply, and I have about 6k to provide as liquidity and there will be about 20-60 people buying initially. What ...
0
votes
1answer
268 views

Add liquidity by code is failing

I have the following code: contract Test is ERC20, Ownable { address constant routerAddress = 0x10ED43C718714eb63d5aA57B78B54704E256024E; constructor(uint initialSupply) ERC20("Test&...
0
votes
1answer
32 views

Harvest yield farming - how do some assets have 10k+ APY?

Currently there are some assets on harvest.finance with crazy apy rates. How is this possible? Are these scams?
0
votes
1answer
75 views

I accidently send unrequited Token to Pancakeswap Pool. My Tokens liquidity stolen

I am an owner of bep20 token and locked the liquidity with mudra locker. I accidentally send token from outside to pancakeswap pair address and 2k dolar WBNB transferred to an unknown wallet. My ...
0
votes
2answers
345 views

Send lp tokens to burn address

is there any repo or links where i can learn how to burn lp tokens. If someone added liquidity i want the contract itself to burn the lp tokens instead of sending it to user.
0
votes
1answer
48 views

How to increase reward for LP holders

I am building a contract from scratch and I was wondering if is possible to do one of the following situations: Use part of the taxes to reward the lp holders, for instance lets say I have 3% tax and ...
0
votes
0answers
15 views

Lock the pair so that trading could only be done in one direction

What should I change in this code to implement lock trading in 1 direction only? https://github.com/Sakeswap/sakeswap-protocol/blob/master/contracts/sakeswap/SakeSwapPair.sol
0
votes
1answer
128 views

Way to tackle arbitrage bots

I deployed a token ABC and created a liquidity pool in pancakeswap with pair ABC/BNB. But arbitraged bots attacked and stole a large sum of money. How to stop this and why is this occurring? I think ...
0
votes
2answers
265 views

Can a contract add liquidity to an Uniswap pair as owner?

I am not so familiar with Uniswap but I was wondering if a contract could add liquidity to a pair and be the owner. This is to prevent the developer from removing the liquidity. Thanks.
1
vote
1answer
205 views

PancakeSwap charges a fee to mint LP according to their code?

I am looking at the PancakeSwap contract for LP's and I noticed they charge a fee for creating LP's. No where in their documentation does it say there is a fee for depositing liquidity. What is ...
1
vote
1answer
61 views

Why is the ratio of liquidity pools adjusting itself? Is it possible to create a pool with a stable ratio?

I want to ask if there is any mathematical or technical reason for the mechanism of adjusting liquidity pools by changing the amount of assets. Can we not only adjust the ratio for the swappers (users ...
0
votes
2answers
218 views

What is the difference between sending tokens to liquidity pool and to contract address?

Let's assume I create a token XYZ with a total supply of 1 million unit. I send 500 000 tokens to the token address - e.g: 0xD5A7448b2289d24432F4F2F714458efA8a996359. I add 100 000 tokens to the ...
0
votes
0answers
185 views

Creating new uniswap v3 pool - ideal Min/Max price

When creating a new Uniswap v3 pool, I'm confused about what the "Set Price Range (Min/Max)" is about. Let's say I run an increasing-price ICO, starting with the rate of 1000 tokens per ETH, ...