Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spam fails on getReserves() call #59

Open
mikirov opened this issue Apr 2, 2024 · 0 comments
Open

Spam fails on getReserves() call #59

mikirov opened this issue Apr 2, 2024 · 0 comments

Comments

@mikirov
Copy link

mikirov commented Apr 2, 2024

When trying to call yarn script.spam --mempool or ./bin/run spam -l deployment.json after successful deployment
I receive the following error in both cases:

/Users/shimonchick/Repos/devnet/mev-flood/core/node_modules/@ethersproject/logger/src.ts/index.ts:269
        const error: any = new Error(message);
                           ^
Error: call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="getReserves()", data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.7.0)
    at Logger.makeError (/Users/shimonchick/Repos/devnet/mev-flood/core/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
    at Logger.throwError (/Users/shimonchick/Repos/devnet/mev-flood/core/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
    at Interface.decodeFunctionResult (/Users/shimonchick/Repos/devnet/mev-flood/core/node_modules/@ethersproject/abi/src.ts/interface.ts:427:23)
    at Object.<anonymous> (/Users/shimonchick/Repos/devnet/mev-flood/core/node_modules/@ethersproject/contracts/src.ts/index.ts:400:44)
    at step (/Users/shimonchick/Repos/devnet/mev-flood/core/node_modules/@ethersproject/contracts/lib/index.js:48:23)
    at Object.next (/Users/shimonchick/Repos/devnet/mev-flood/core/node_modules/@ethersproject/contracts/lib/index.js:29:53)
    at fulfilled (/Users/shimonchick/Repos/devnet/mev-flood/core/node_modules/@ethersproject/contracts/lib/index.js:20:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  reason: null,
  code: 'CALL_EXCEPTION',
  method: 'getReserves()',
  data: '0x',
  errorArgs: null,
  errorName: null,
  errorSignature: null,
  address: '0x46Beb76223ca5065a7cc62069E2267E9eF49D326',
  args: [],
  transaction: {
    data: '0x0902f1ac',
    to: '0x46Beb76223ca5065a7cc62069E2267E9eF49D326'
  }
}

I traced the error to the daiWethB contract. Additional suggestions are greatly appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant