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

Crash report: RangeError: The number 4.999999999999999 cannot be converted to BigInt because it is not an integer #16

Open
jonyangx opened this issue Apr 24, 2022 · 1 comment

Comments

@jonyangx
Copy link

URL

https://starswap.xyz/#/swap

swap state

{
  "INPUT": {
    "currencyId": "STC"
  },
  "OUTPUT": {
    "currencyId": "0x4ffcc98f43ce74668264a0cf6eebe42b::FAI::FAI"
  },
  "independentField": "INPUT",
  "typedValue": "1",
  "recipient": null
}

Error

RangeError: The number 4.999999999999999 cannot be converted to BigInt because it is not an integer

Stacktrace

RangeError: The number 4.999999999999999 cannot be converted to BigInt because it is not an integer
    at Function.value (https://starswap.xyz/static/js/4.d0334d49.chunk.js:2:38026)
    at https://starswap.xyz/static/js/main.b0164a72.chunk.js:1:476649
    at Array.reduce (<anonymous>)
    at https://starswap.xyz/static/js/main.b0164a72.chunk.js:1:476103
    at https://starswap.xyz/static/js/main.b0164a72.chunk.js:1:476882
    at Object.xo [as useMemo] (https://starswap.xyz/static/js/4.d0334d49.chunk.js:2:2243171)
    at t.useMemo (https://starswap.xyz/static/js/4.d0334d49.chunk.js:2:1960877)
    at eC (https://starswap.xyz/static/js/main.b0164a72.chunk.js:1:475949)
    at no (https://starswap.xyz/static/js/4.d0334d49.chunk.js:2:2238438)
    at Uo (https://starswap.xyz/static/js/4.d0334d49.chunk.js:2:2248005)

Device data

{
  "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36",
  "browser": {
    "name": "Chrome",
    "version": "100.0.4896.127",
    "major": "100"
  },
  "engine": {
    "name": "Blink",
    "version": "100.0.4896.127"
  },
  "os": {
    "name": "Mac OS",
    "version": "10.15.7"
  },
  "device": {},
  "cpu": {}
}
@nsnhhuewwr
Copy link
Collaborator

nsnhhuewwr commented Jun 21, 2022

Can you provide the value of the input?

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

2 participants