jamesbachini / DEX-Arbitrage

Example arbitrage trading bot
GNU General Public License v3.0
615 stars 350 forks source link

CALL_EXCEPTION when calling estimateDualDexTrade #25

Closed y0unghe closed 1 year ago

y0unghe commented 1 year ago

I am keep getting code: 'CALL_EXCEPTION' when calling method method: 'estimateDualDexTrade(address,address,address,address,uint256)',

It seems IUniswapV2Router getAmountsOut keeps fail. Do I need some ETH as gas in the contract?

jamesbachini commented 1 year ago

You would need some Eth in the wallet in .env file but the contract doesn't need Eth for gas. Check the token addresses and checksums