Skip to content

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

Open
@jonyangx

Description

@jonyangx

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": {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions