This repository was archived by the owner on Mar 28, 2023. It is now read-only.
This repository was archived by the owner on Mar 28, 2023. It is now read-only.
Investigate scientific notation in stringified amounts from the client #1911
Open
Description
When a client handles a number with sufficiently large precision, it will serialize it into scientific notation. We need to investigate how to improve the amout handling to support this format as it is deserialized.
From @rmisio:
When a number is beyond a certain threshold JSON seriaizes it in scientific notation. OB-go is not handling that format.
A listing with bigPrice: "1.890987463000000000000000001e+27" results in the error invalid item price amount.
Edit:
FWIW, this was made a launch blocker based on:
#1911 (comment)