10

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 ...


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

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 ...


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

Let X = ETH Let Y = TokenA price impact for buying Y amount of tokens: price impact on buying = (Yamount*0.97) / current Yamount in pool price impact for selling Y amount of tokens: Let u = Y amount of tokens to be sold Let er = current ETH exchange rate in reference with TokenA er = X - { (XY) / (Y+0.97u) } price impact on selling = 0.97er / current ...


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

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 ...


2

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 &...


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

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

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 ...


2

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 ...


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

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: ...


1

To clarify a little bit -- Uniswap (the app) has an associated governance token, UNI. This token is used to vote on proposals, among other things. LP (liquidity provider) tokens are different than UNI. These LP tokens are created when you add liquidity to the Uniswap protocol. See above description. Uniswap pools require you to deposit two assets. If you ...


1

Depends on the exchange, but I doubt a trade is a new contract in any dex (decentralized exchange). A trade is typically a call to a certain function in a contract. That function executes the trade by calling some background contract functionality to calculate ratios and so on. If you wish to trade token A for token B, the trade looks typically something ...


1

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. The manipulator would have to make bad and expensive swaps for most blocks of the chosen interval. If you choose a long interval, that would be very expensive ...


1

Before Uniswap had DAO, it was controlled by the team that built the software. Uniswap existed but the DAO did not exist. Later, the ownership is moved to the DAO, so that the DAO can set the control parameters for Uniswap smart contract. I am not sure if the control change has actually happened yet and all the keys are still controlled by the dev team.


1

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 ...


1

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


1

Update: I had an invalid ABI imported. Please make sure that your ABI code is wrapped within [].


1

Transaction fee is composed calculated as follows: gas amount * gas price = fee. The gas price is something you decide when you send the transaction - basically it says how much you are willing to pay to get your transaction processed. The fees are very high currently because many people are willing to pay a big gas price to get their transaction processed (...


1

I dont know about the smart contract itself. ForkDelta is a fork of EtherDelta. The web interface is hosted at: https://forkdelta.github.io/ the Github repo is here: https://github.com/forkdelta although, I think this is just a fork of an interface for the smart contract, not a fork of the smart contract itself but it might give you somewhere to look.


1

A dex protocol is made up of smart contracts. So the 'standard wallet' would need suitable UI to interact with the underlying functionality of the smart contracts for the dex protocol to be integrated into the wallet. There are many examples of dex protocols out there in the wildness, have a look at ether delta: https://github.com/etherdelta/smart_contract/...


1

Ask user to approve the exchange contract. Or personally I added authorized contracts into my multiownable token contract that means that admins approve contracts that could approve to itselves to transfer anybody's tokens. And of course, I add this function into token contract. But this method is much less secure and I think many users could be afraid to ...


1

It sounds like Web3.js is sufficient for this. Create keys using Web3.js, sign transactions/messages with Web3.js, then connect to a node provider (likely Infura, but could be a local node as well) to send the transactions


1

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 ...


1

Ideally you would want to make as few calls to the blockchain as possible, as it is slow and would not make for a very active orderbook. The general rule of thumb for Ethereum (for now) is that the fewer transactions/calls you can make, the better. With that said, one of the best ways to do this would be to build out your own block explorer, and talk to ...


1

You are wrong. :) Gastoken takes advantage of Ethereum's native gas refund mechanism, so while it cannot fully pay for a transaction, it can definitely be used to lower the costs of transacting.


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