12 votes
Accepted

Why is it so expensive to trade on Uniswap with MetaMask? ($50 fee)

The answer is that uniswap is a set of Smart Contract running on the Ethereum platform and thus requires gas in order to execute any functions. Meaning that when you swap token A for token B or token ...
12 votes
Accepted

Can ethereum really make a safe decentralized exchange?

EDIT: Uniswap has proven to be a safe, decentralized exchange and has been operating since November 2018. Also see What is it that's really decentralized in DEX-es? ORIGINAL ANSWER Yes, an open-...
  • 79.7k
10 votes
Accepted

Is burning tokens effective without buy-back?

I believe you're searching for logic in a place where it does not exist. Burning tokens before token "launch" is actually a shitcoin trend which makes zero sense and in general something ...
7 votes
Accepted

How does uniswap creator take profit?

How does uniswap creator take profit? Uniswap itself made $11 million in their Series A funding round. (See here.) I believe they currently use this as their source of funds for operating and ...
7 votes

Is burning tokens effective without buy-back?

It's an effective form of marketing. From a mathematical point of view burning tokens on deployment is the same as never creating those tokens at all, but from a marketing perspective: It creates the ...
  • 170
6 votes

Get Uniswap Exchange Rate of any Token with Web3

There is a more simple solution to pull the price straight from Blockchain the steps are as follow: Using the router contract call getAmountsOut(1.0, [token, WETH]) Using the router contract call ...
6 votes
Accepted

What is Project Wyvern Protocol?

Their documentation is at their website https://wyvernprotocol.com/. In order to understand the fundamentals of Wyvern Protocol you'll need a deep understanding of blockchain and smart contracts. If ...
  • 323
5 votes

How much liquidity to provide to Uniswap?

Whoever provides the liquidity has the option to take his share of the liquidity out of the pool, at any time they want. Liquidity is never "sold off" as such, since Uniswap price is based ...
5 votes
Accepted

Are Uniswap tokens LP tokens?

LP Token is just one name for the tokens you get, when you provide liquidity to a pool/pair, they may have other names, depending on where you read about them. Uniswap tokens are something different, ...
  • 360
4 votes
Accepted

What parts of the IDEX decentralized exchange is centralized and decentralized?

IDEX is not decentralized at all, it's fully centralized. There's no way to use the system without IDEX team allow you to do so. If they don't want to process your transactions, your transactions ...
4 votes

what is math for uniswap calculates the amountout and amountin why 997 and 1000

As Uniswap's fees are 0.3%, the constants 997 and 1000 are corresponding nominators and denominators to help calculate this. 3 / 1000 = 0.003 = 0.3%
3 votes
Accepted

Get Uniswap Exchange Rate of any Token with Web3

You'll first need the address of the contract for the pair whose price(s) you want to access. Two ways to do this: Find the addresses of the two tokens separately, and feed them into the ...
3 votes
Accepted

Why isn't Polka Dot listed for trading on Uniswap?

Uniswap only lists tokens created on Ethereum such as ERC-20 tokens. Polkadot is not an ERC20 token. It runs on its own blockchain. :)
3 votes
Accepted

Implementing AMM DEX similar to Uniswap/SushiSwap

A DEX essentially allows you to swap tokens and create liquidity pools, which means that you don't create (mint) new tokens in general. Only if the DEX has the possibility of staking, then you may ...
3 votes

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

As you mentioned it seems they have a particular way of doing things, and I am not too familiar with Mdex, but I have worked with Uniswap's sub-graph implementation. This isn't necessarily a solution ...
  • 231
3 votes
Accepted

How is uniswap/sushiswap distributing their fees?

Well, after some research I can answer my question. I was indeed right, treasury fee is 1/6 (16.6%) of the total fee. Precisely, the code for this formula is in the core repository: code unction ...
  • 325
3 votes
Accepted

What actually happens if you provide incorrect ratio of liquidity in Uniswap-like exchanges?

You will lose money. Here's why - Since most liquidity pools do not have external oracles to tell them the price ratio between two assets, they rely on participants providing the correct ratio. If you ...
2 votes
Accepted

Why do we have to "deposit" into a decentralized exchange?

The deposit puts the control of tokens to the smart contract so that the smart contract can fill the orders. Smart contract allows tokens to be used only for this purpose - matching and filling orders....
2 votes

is it possible to get events from transactions that are in the `txpool`?

This is possible in theory, once transaction is included into pending block, you may try to query its logs via web3.eth.getPastLogs ({from: 'pending', to: 'pending'}), though I'm not sure this works ...
2 votes

is it possible to get events from transactions that are in the `txpool`?

No, It is Immpossible. An event is a kind of result of a transaction, like a calculated variable value. So, you can only guess what will happen based on the input data.
2 votes
Accepted

Can an Erc-20 token that I create on my Quorum be integrated with any cryptocurrency exchange (for example Coinbase)?

In theory, yes. But the chances for that to happen are next to nothing. For an exchange to accept your coin they would have to: 1) Trust your blockchain that it's fair, valid and uncompromisable 2) ...
2 votes

Is there any way of creating ERC-1155 or ERC-721 tokens always earn transaction fees?

It is easy to create an NFT that transfers a fixed fee to you at every transfer of this NFT. Just add transfer (of ETH, or an ERC-20/1155) to it. It is nearly impossible to get a transaction ...
  • 1,424
2 votes
Accepted

How Do Liquidity Pool Economics Work?

As explained in the r/1inch post here, in my example from Step 5 above, as the staked liquidity approaches $1.5B, the APY would decrease due to the increased supply, assuming the trade volume remains ...
2 votes

What is the equivalent of ERC-20 tokens on the Cardano blockchain?

I think this question will be closed as off-topic as it's a question about Cardano. (Please ask on a Cardano forum.) Just to clear one thing up: Why doesn't Uniswap (a decentralized exchange) list ...
2 votes

What programming languages was Uniswap's open-source code written in?

Uniswap protocol is developed in Solidity, and you can find two main building blocks: uniswap-v2-core: Core smart contracts, essentially with the Factory, Pair and ERC20, together with a number of ...
2 votes

Decentralized exchange that lets you cash out Ether for fiat money?

First, if you want to exchange crypto for fiat it's not possible to do this in a decentralized way. If your concern is KYC then some options are more private than others. There is always the option of ...
2 votes

Why is it so expensive to trade with Uniswap?

There are three fees that apply when you make a trade on Uniswap. I don't know which fee you are referring to so I will break them all down. Gas fee. This is the fee that you pay so that miners will ...
  • 3,295
2 votes

Retrieve price data from PancakeSwap [BSC]

Pancake Swap uses the same formula as Uniswap, but they have a 0.2% fee instead of 0.3% fee, which affects the calculation.
  • 3,295
2 votes
Accepted

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

Uniswap V2 oracle This will give you the average price of all the swaps that were made for an interval of blocks that you specify (the last 50 blocks, for instance). Positive Manipulation resistant. ...
  • 3,295
2 votes
Accepted

How does Uniswap allow a user to specify which tokens the user wants to swap in this low level function?

The values for token0 and token1 are provided by the factory contract at the time of contract deployment. AFAIK, there is a separate contract for Each Pair of tokens deployed by using the Factory ...

Only top scored, non community-wiki answers of a minimum length are eligible