support and test splitting output for offer

This commit is contained in:
woodser 2023-06-10 10:02:15 -04:00
parent 055f2dd5d2
commit 3cfb83d252
15 changed files with 200 additions and 69 deletions

View file

@ -127,7 +127,7 @@ class HavenoUtils {
* @returns {number} the result
*/
static divideBI(a, b) {
return Number(a * 100n / b) / 100;
return Number(a * 10000000000000n / b) / 10000000000000;
}
/**
* Convert XMR to atomic units.