You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: invalid decimal size (argument="decimals", value=0.001, code=INVALID_ARGUMENT, version=bignumber/5.7.0)
File "/workspace/node_modules/@ethersproject/logger/lib/index.js", line 238, in Logger.makeError
var error = new Error(message);
File "/workspace/node_modules/@ethersproject/logger/lib/index.js", line 247, in Logger.throwError
throw this.makeError(message, code, params);
File "/workspace/node_modules/@ethersproject/logger/lib/index.js", line 250, in Logger.throwArgumentError
return this.throwError(message, Logger.errors.INVALID_ARGUMENT, {
File "/workspace/node_modules/@ethersproject/bignumber/lib/fixednumber.js", line 35, in getMultiplier
return logger.throwArgumentError("invalid decimal size", "decimals", decimals);
File "/workspace/node_modules/@ethersproject/bignumber/lib/fixednumber.js", line 41, in formatFixed
var multiplier = getMultiplier(decimals);
...
(5 additional frame(s) were not displayed)
The text was updated successfully, but these errors were encountered:
Issue arise when using erc-balance-of strategy, by passing a decimal number (< 1) to the decimal option. This unit is in WEI, and 18 decimals = 1 ETH, and not the other way
Sentry Issue: SCORE-API-1P
The text was updated successfully, but these errors were encountered: