Uniswap / v2-periphery

🎚 Peripheral smart contracts for interacting with Uniswap V2
https://uniswap.org/docs
GNU General Public License v3.0
1.12k stars 1.68k forks source link

BUG: getAmountsOut not works on BaseChain for V2 Router #178

Closed TangMonk closed 7 months ago

TangMonk commented 7 months ago

Is 0xD6e0Bc285be97C75861910f4d2cFD4AC61DD629d for V2 Router?

When I call getAmountsOut it return error:

Error: Returned error: execution reverted
image

But I can call getPair on V2 Factory:

image
hensha256 commented 7 months ago

You're using the wrong router :) the correct one is: 0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6

TangMonk commented 7 months ago

You're using the wrong router :) the correct one is: 0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6

I meant the V2 router, But you gave V2 Factory 😂

hensha256 commented 7 months ago

oops sorry! let me look closer

TangMonk commented 7 months ago

oops sorry! let me look closer

Thank you, Waiting for you reply 😄😄😄

hensha256 commented 7 months ago

https://basescan.org/address/0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24

TangMonk commented 7 months ago

https://basescan.org/address/0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24*

Thank you very much! 😄😄😄

TangMonk commented 7 months ago

@hensha256 But seems Quoter is not avalible on Base in Uniswap Deployments Doc