jamesbachini / DEX-Arbitrage

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

Error: call revert exception #40

Closed Devilla closed 11 months ago

Devilla commented 11 months ago

Issue

Tried using estimateTriDexTrade(address,address,address,address,address,address,uint256) method to scale the bot as per the turorial but getting this error while running the trade script with base assests.

Error: call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="estimateTriDexTrade(address,address,address,address,address,address,uint256)", data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.7.0)

 reason: null,
  code: 'CALL_EXCEPTION',
  method: 'estimateTriDexTrade(address,address,address,address,address,address,uint256)',
  data: '0x',
  errorArgs: null,
  errorName: null,
  errorSignature: null,

Reference

https://github.com/Devilla/DEX-Arbitrage-Bot/blob/dev/contracts/Arb.sol

jamesbachini commented 11 months ago

The tx is failing. Not much to go on as to why. Maybe using Uni v2 functions on a v3 router or something like that?