Page MenuHomePhabricator

[Cashtab] Apply BigNumber to all base unit calcs in sendBch
ClosedPublic

Authored by josephroyking on Fri, Feb 5, 16:09.

Details

Summary

Finalize the refactor of sendBch function away from toSatoshi methods and js math. Apply BigNumber library to remainder variable and adjust compare functions to use BigNumber methods. Add unit tests to demonstrate no change from previous function.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.