Closed karelianpie closed 2 years ago
Add some utility functions to work with BigNumber
BigNumber
toBN()
toWei()
toUnit()
If everyone happy with using these, happy to refactor the whole codebase to use these instead in this PR.
In the frontend we have formatters to help working with BigNumber, for consistency we could have these in the SDK as well
src/utils/parser.spec.ts
Description
Add some utility functions to work with
BigNumber
toBN()
toWei()
toUnit()
If everyone happy with using these, happy to refactor the whole codebase to use these instead in this PR.
Motivation and Context
In the frontend we have formatters to help working with
BigNumber
, for consistency we could have these in the SDK as wellHow Has This Been Tested?
src/utils/parser.spec.ts