flashbots / flashbots/mev-flood

Spam fails on ```getReserves()``` call

Open
#59 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
124
Forks
25
PR merge metrics
No merged PRs in 30d

Description

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. (/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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.