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

Invalid Big number error when find opportunity (dodo branch) #52

Open
h4ckm1n-dev opened this issue Feb 11, 2022 · 0 comments
Open

Invalid Big number error when find opportunity (dodo branch) #52

h4ckm1n-dev opened this issue Feb 11, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@h4ckm1n-dev
Copy link

/home/h4ckm1n/Documents/GitHub/poly-flashloan-bot/node_modules/@ethersproject/logger/src.ts/index.ts:225
const error: any = new Error(message);
^
Error: invalid BigNumber value (argument="value", value=[500], code=INVALID_ARGUMENT, version=bignumber/5.5.0)
at Logger.makeError (/home/h4ckm1n/Documents/GitHub/poly-flashloan-bot/node_modules/@ethersproject/logger/src.ts/index.ts:225:28)
at Logger.throwError (/home/h4ckm1n/Documents/GitHub/poly-flashloan-bot/node_modules/@ethersproject/logger/src.ts/index.ts:237:20)
at Logger.throwArgumentError (/home/h4ckm1n/Documents/GitHub/poly-flashloan-bot/node_modules/@ethersproject/logger/src.ts/index.ts:241:21)
at Function.BigNumber.from (/home/h4ckm1n/Documents/GitHub/poly-flashloan-bot/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts:291:23)
at NumberCoder.encode (/home/h4ckm1n/Documents/GitHub/poly-flashloan-bot/node_modules/@ethersproject/abi/src.ts/coders/number.ts:25:27)
at /home/h4ckm1n/Documents/GitHub/poly-flashloan-bot/node_modules/@ethersproject/abi/src.ts/coders/array.ts:71:19
at Array.forEach ()
at pack (/home/h4ckm1n/Documents/GitHub/poly-flashloan-bot/node_modules/@ethersproject/abi/src.ts/coders/array.ts:54:12)
at TupleCoder.encode (/home/h4ckm1n/Documents/GitHub/poly-flashloan-bot/node_modules/@ethersproject/abi/src.ts/coders/tuple.ts:54:20)
at AbiCoder.encode (/home/h4ckm1n/Documents/GitHub/poly-flashloan-bot/node_modules/@ethersproject/abi/src.ts/abi-coder.ts:112:15) {
reason: 'invalid BigNumber value',
code: 'INVALID_ARGUMENT',
argument: 'value',
value: [ 500 ]
}
Waiting for the debugger to disconnect...
[nodemon] app crashed - waiting for file changes before starting...

@yuichiroaoki yuichiroaoki added the bug Something isn't working label Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants