fix(bug): The previous code inadvertently converted the number to an INT by doing new BN(uiPrice) before multiplying the uiPrice into the correct number of digits:
e.g. if uiPrice = 7.16 then new BN(uiPrice) would become 700000. Basically, we have to do the Number Multiplication before converting to BN
Changes
fix(bug): The previous code inadvertently converted the number to an INT by doing new BN(uiPrice) before multiplying the uiPrice into the correct number of digits:
e.g. if uiPrice = 7.16 then new BN(uiPrice) would become 700000. Basically, we have to do the Number Multiplication before converting to BN
Checklist