Open infiniteflower opened 5 months ago
Make sure to check if these multiple libraries were introduced for some reasons or just tech debt.
If it has impact on some other processing we do, for instance in controllers or other libs using BN, we may keep them all but centralise them in the utility file and abstract them so only one interface is used in the app. Then we fix dependencies one at a time.
Progress on this is being made here:
ethereumjs-util
upgrades its bn.js
from v4 to v5 between v6 and v7)
Describe the bug
We have multiple BigNumber libraries in use right now,
bignumber.js
,bn.js
, etcYou can see this from
app/util/number/index.js
Would be good to settle on a single library.
Expected behavior
A singular BigNumber library should be used to prevent incompatibilities or strange/unexpected behavior from happening.
Screenshots/Recordings
No response
Steps to reproduce
n/a
Error messages or log output
No response
Version
7.24.0
Build type
None
Device
Android, iOS
Operating system
iOS, Android
Additional context
No response
Severity
No response