Uniswap / v2-core

🦄 🦄 Core smart contracts of Uniswap V2
https://uniswap.org/docs
GNU General Public License v3.0
2.89k stars 3.11k forks source link

getAmountsOut returns amount which is way less than the actual amount showing in UniSwap app #212

Open 0AX0A opened 3 months ago

0AX0A commented 3 months ago

we are using getAmountsOut function to get the estimated amount of token to be swapped , once we pass 8.7 eth , the amount of specific token it returns as raw value is something around 7.9 eth and we got sandwiched.

What can be the possible issue here ?

image (6)