12

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 C it is more or less the same function that is being called in order to perform the necessary logic of matching buyers and sellers. This is only an issue (such ...


12

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-source, decentralized exchange like EtherEx will avoid MTGox shenanigans. It exists on testnet currently, as it says: geth --testnet --rpc --rpccorsdomain http://...


10

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 doesn't have to make sense if everyone does it. Burning tokens which are not backed up by any kind of liquidity is useless. Shitcoins cannot offer much in the way ...


7

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 development. However, the Uniswap contracts - at least in v2, I'm assuming also for v3 - do have a mechanism to take a fee from each trade. In the Whitepaper, section ...


7

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 headline of "We burned x% of tokens" with the implied, but not actually true implication: smaller supply -> higher price It makes the "...


5

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, they allow you to vote on some things related to the future of Uniswap. They are listed at Coinmarketcap (currently #8) and may be traded at some Exchanges. The ...


4

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 will not be processed. If their servers goes down, the full system stops. You cannot trade tokens not white-listed by IDEX team. Etc, etc... Exactly the same way ...


3

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 create LP tokens (Liquidity Pool tokens) and send them to the stakers in exchange of their standard tokens. If the contract is verified in etherscan.io, you can ...


3

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 getAmountsOut(1.0, [WETH, USDT]) multiply the amounts you got in 1) and 2), note you have to convert them to decimals before doing the step 3


3

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 UniswapV2Factory contract to get the address of the pair's contract; or... Go to Uniswap, enter the two tokens into the usual interface, then visit the "View Pair ...


3

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 on a bonding price curve. So the trading price simply changes between trades, reflecting which asset of the pair is bought more and which sold. There is also no &...


3

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

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 to your question but may help you get there. After looking into https://info.mdex.com I spotted that they use a similar approach to Uniswap's sub-graph. They ...


3

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 _mintFee(uint112 _reserve0, uint112 _reserve1) private returns (bool feeOn) { address feeTo = IShuttleFactory(factory).feeTo(); feeOn = feeTo != ...


3

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 were to, as you say in your example, deposit 1 USDT and 1 ETH into a ETH/USDT pool, you would effectively be stating that you value 1 ETH to be worth 1 USDT. ...


3

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 you have smart contract development experience then you'll gain the best understanding by looking at their tests in their github repo. The basics of the ...


2

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 in any of existing implementation, and you may need to start mining on your node in order to make this work. Also, there is no simple way to force particular ...


2

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

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. For example, the owners of the exchange cannot take control of user funds for their own purposes. Usually these smart contracts have trustless backdoor for ...


2

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) Run their own node in your blockchain (they certainly don't want to trust your or somebody else's nodes even if they trust the blockchain) 3) Evaluate your ...


2

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 interfaces and libraries. uniswap-v2-periphery: additional smart contracts to interact with the Core ones. They simplify the process of doing swaps or adding/...


2

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 percentage every time a token is traded: Suppose somebody buys your token on Uniswap. Then your token receives from a Uniswap a message to be transferred. The token can ...


2

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 constant. Rewards for Top 10 Liquidity Pools Looking at the current Top 10 liquidity pools (LPs) in terms of liquidity volume, the total liquidity is $2B, with ...


2

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 anything Cardano-related? Uniswap is a smart contract on the Ethereum blockchain. It has no knowledge that Cardano exists. (See the first question in their FAQ: ...


2

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 include your transaction in a block. The gas fees have been very high lately simply because a lot of people are using Ethereum blockchain and there is only a ...


2

Pancake Swap uses the same formula as Uniswap, but they have a 0.2% fee instead of 0.3% fee, which affects the calculation.


2

Dev Address - Some percentage of cake minted is sent to the dev address. For every 100 cake, 10 is sent to dev address. The dev address will then burn it. Update pool fn - Straight forward, it is used to update the number of cake to be emitted/allocated for each pool. Updating the staking pool - Changing LP token details. Reward debt - Whatever the user ...


2

There's no predefined order for transactions in a block. The only requirement is for transactions from the same address to be sorted by the transaction's nonce but transactions from different addresses can be in any order. In Ethereum mainnet miners will sort by gas price because they will get a larger reward. But it is not always the case, search for "...


2

i am trying to make a flash loan too. i saw some codes on how to buy on kyber and sell on uniswap https://github.com/jklepatch/eattheblocks/tree/master/profitable-flashloans/24-buy-kyber-sell-uniswap you can check it out.. you can email me so we talk more about it forsonfranklin @gmail


2

I've notived at least 2 different ways of doing it. Binance will send and keep a small Eth balance in the deposit address. They will use that Eth to send the tokens from the deposit wallet to the exchange hot wallet. Kraken uses contracts as deposits accounts instead of EOA. There is no Eth balance in those deposit contracts. Edit: The hot wallet calls a ...


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