Error: underflow (fault="underflow", operation="BigNumber.from", value=1004999.9999999999, code=NUMERIC_FAULT, version=bignumber/5.5.0)
at Logger.makeError (C:\BOTS\may 2022 -2\2-2\poly-flashloan-bot\node_modules\@ethersproject\logger\lib\index.js:199:21)
at Logger.throwError (C:\BOTS\may 2022 -2\2-2\poly-flashloan-bot\node_modules\@ethersproject\logger\lib\index.js:208:20)
at throwFault (C:\BOTS\may 2022 -2\2-2\poly-flashloan-bot\node_modules\@ethersproject\bignumber\lib\bignumber.js:305:19)
at Function.BigNumber.from (C:\BOTS\may 2022 -2\2-2\poly-flashloan-bot\node_modules\@ethersproject\bignumber\lib\bignumber.js:205:17)
at toBN (C:\BOTS\may 2022 -2\2-2\poly-flashloan-bot\node_modules\@ethersproject\bignumber\lib\bignumber.js:294:25)
at BigNumber.mul (C:\BOTS\may 2022 -2\2-2\poly-flashloan-bot\node_modules\@ethersproject\bignumber\lib\bignumber.js:72:43)
at checkIfProfitable (C:\BOTS\may 2022 -2\2-2\poly-flashloan-bot\dist\utils\index.js:56:10)
at C:\BOTS\may 2022 -2\2-2\poly-flashloan-bot\dist\index.js:40:64
at Generator.next ()
at fulfilled (C:\BOTS\may 2022 -2\2-2\poly-flashloan-bot\dist\index.js:5:58) {
reason: 'underflow',
code: 'NUMERIC_FAULT',
fault: 'underflow',
operation: 'BigNumber.from',
value: 1004999.9999999999
}

May 30, 2022, 5:46 AM
Why am I getting this error
like matic for polygon, bnb for bsc eth for Ethereum
They're defined with 0xEeee... address on their respective chains
May 30, 2022, 6:47 AM
can we use this address for anything useful?
May 30, 2022, 6:48 AM
Yes it is
May 30, 2022, 6:50 AM
it's used as normal 0x... addresses but for their native coins, so whatever the other 0x adresses can be used for 0xeee can be used for same .
maybe... I'm a learner/beginner myself
Btw i need help how to fix underflow
May 30, 2022, 6:54 AM
for instance
IERC20(0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee).transfer(,);
May 30, 2022, 6:54 AM
yes
it'll transfer whatever the address denotes in the chain. ie eth in Ethereum and bnb in bsc
May 30, 2022, 6:55 AM
u can use web3 library for bignumber
May 30, 2022, 6:56 AM
Hmm
May 30, 2022, 7:29 AM

© 2024 Draquery.com All rights reserved.