Skip to main content
7 events
when toggle format what by license comment
Sep 9, 2023 at 18:37 vote accept Biruk Damte
Sep 9, 2023 at 18:23 answer added Maka timeline score: 0
Sep 9, 2023 at 18:09 comment added Biruk Damte This is the different i get..see the screenshot... the right one is app.sushiswap and the left one is www.sushiswap... my result is the same with the right one snipboard.io/zgXAxJ.jpg
Sep 9, 2023 at 17:40 comment added Maka No it doesn't consider gas cost, just 0.3% swapfee. It's hard to say without seeing how you get to that result, why it is different. Maybe not every input is what you think it is. I would copy the getAmountOut function and call getReserves() on the pools in the path and step through it manually, to find out what is going on.
Sep 9, 2023 at 17:24 comment added Biruk Damte with app.sushiswap the result is exactly the same. Can u please tell me why it is not same with www.sushiswap ? and does getAmountsOut consider the gas cost?
Sep 9, 2023 at 17:17 comment added Maka getAmountsOut should return the same as UI, can find examples of that from me in their discord. UI adds some padding to slippage but getAmount(s)Out can line line up 100%. So you should share more details of how you are getting to the result. Should also check your result on app.sushi.com instead of www.sushi.com to avoid some difference from tines.
Sep 9, 2023 at 17:07 history asked Biruk Damte CC BY-SA 4.0