New answers tagged

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 ...
user avatar
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 ...
user avatar
  • 429
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 ...
user avatar

Top 50 recent answers are included