New answers tagged decentralized-exchange
0
votes
Calling multiple contract methods in nodejs returns error
I'm not sure, but it seems like you have stuck transaction, and you need to overwrite it.
Check this to get an idea how to do that with metamask wallet. You can also check this overwriting method on ...
2
votes
Why MINIMUM_LIQUIDITY is used in DEX like Uniswap?
The answer is given in the Uniswap v2 whitepaper:
Uniswap v2 initially mints shares equal to the geometric mean of the
amounts deposited [..] it is possible for the value of a liquidity
pool share to ...
0
votes
what is math for uniswap calculates the amountout and amountin why 997 and 1000
before swap A * B = K where A = reserveIn B = reserveOut
after swap A' * B' = K where only k is a constant value
getAmountOut
A' = A + 0.997 * amountIn # here 0.3% is deducted
B' = B - amountOut
...
Top 50 recent answers are included
Related Tags
decentralized-exchange × 182uniswap × 57
solidity × 37
tokens × 21
exchanges × 21
pancakeswap × 19
erc-20 × 18
liquidity-provider × 14
contract-development × 12
defi × 12
web3js × 10
0x × 10
decentralization × 8
fees × 7
price × 7
swaps × 7
amm × 7
dapps × 6
go-ethereum × 5
transactions × 5
exchange-api × 5
blockchain × 4
gas × 4
ethereum-wallet-dapp × 4
etherscan × 4