Questions tagged [dex]

The tag has no usage guidance.

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

Fetch price data: on-chain oracle vs smart contract function

I want to get the latest and most accurate price data from Uniswap and found out that I can either call the getAmountsOut() function which gives me the amount of tokens I will get in return of a given ...
0
votes
1answer
220 views

Retrieve price data from PancakeSwap [BSC]

Does PancakeSwap use the same constant product formula as Uniswap (x * y = k)? Because then I should be able to calculate a token pair exchange rate by just dividing the amount of token1 reserves by ...
1
vote
1answer
74 views

Retrieve Mdex.com exchange rates for token pair [Huobi Eco Chain] [closed]

After long Telegram conversations I have found out that MdexSwap uses a secret formula to calculate their token exchange rates on their swap platform. Unlike Uniswap they also don't really have an API,...
0
votes
1answer
29 views

Smart contract with infinity loop fetching DEX prices

I am trying to create an arbitrage bot which swaps between 2 decentralised exchanges. Lots of tutorials say that I need a Javascript or Python program that continuously runs and fetches prices from ...
1
vote
1answer
340 views

Get Uniswap Exchange Rate of any Token with Web3

I need to get the exchange rate for every token on Uniswap with Web3 like Uniswap itself which they then display on their web interface on app.uniswap.org like this: So when I enter to swap the ...
0
votes
1answer
71 views

How much liquidity to provide to Uniswap?

So you deployed your brand new ERC20 token to Uniswap. I understand you need to provide liquidity for your token pair in Uniswap so people can start buying your token. Now, what I'm trying to wrap my ...
0
votes
0answers
24 views

Transactions between ERC-20 Token and DEX on Etherscan

Below is a screenshot of transactions at an address I take to be the ERC-20 token SAND (Sandbox). Is this right? that the link below the image is the singular address where this ERC-20 token issues ...
0
votes
0answers
48 views

Could there be multiple asset pools In a DAMM liquidity pool?

In a DAMM (dynamic automated market making) DEX (decentralized exchange) the ration between two assets, e.g. DAI/ETH does not have to be 50/50 anymore, like it used to be in a AMM, (automated market ...
0
votes
1answer
72 views

copy etherdelta code [closed]

For a test project, I need to write the etherdelta's contract. but "function EtherDelta (address admin_, address feeAccount_, address accountLevelsAddr_, uint feeMake_, uint feeTake_, uint feeRebate_) ...
0
votes
2answers
415 views

Can one fork a decentralized exchange smart contract since the code is out in the open?

Since ethdelta and idex are decentralized exchanges, meaning there is no "central" server. The smart contract code is in the ethereum blockchain. Can one just copy this smart contract and launch a ...