diff options
| author | Adam Soltys <[email protected]> | 2023-01-22 21:04:41 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-22 21:04:41 -0800 |
| commit | 2edcafb31e954628689e769c6926e3e48ddf84eb (patch) | |
| tree | df3c6bb06d9b56be9e64d6e851b3104593a63028 /lib/utils.js | |
| parent | 5dd47b9b2cb5a9359c57079205da68a675e10b45 (diff) | |
| download | coinos-server-2edcafb31e954628689e769c6926e3e48ddf84eb.tar.gz coinos-server-2edcafb31e954628689e769c6926e3e48ddf84eb.zip | |
on chain send
Diffstat (limited to 'lib/utils.js')
| -rw-r--r-- | lib/utils.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils.js b/lib/utils.js index b65f179a..e58f7d1f 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -24,6 +24,7 @@ export const fail = msg => { export const SATS = 100000000; export const sats = n => Math.round(n * SATS); +export const btc = n => parseFloat((n / SATS).toFixed(8)); export const uniq = (a, k) => [...new Map(a.map(x => [k(x), x])).values()]; export const pick = (O, K) => |
