Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
fromSatoshi
and toSatoshi
to utils function
Add `fromSatoshi` fn that converts an amount from `1e8` to `1e18` token precision. Also here we remove optional `fromPrecision` param in `toSatoshi` fn - we assume we always convert from `1e18` to `1e8` and in `fromSatoshi` we always convert from `1e8` to `1e18`.
- Loading branch information