aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-19 16:00:38 -0800
committerAdam Soltys <[email protected]>2023-01-19 16:00:38 -0800
commit5264f702a2217fe8815cb5275aca14a672f6d4bb (patch)
tree1c92a5258cfb92749c4250923f73797284c5d9c7 /lib/utils.js
parentef3679051214a9b3047b68f236eac656edcf8d38 (diff)
downloadcoinos-server-5264f702a2217fe8815cb5275aca14a672f6d4bb.tar.gz
coinos-server-5264f702a2217fe8815cb5275aca14a672f6d4bb.zip
refactor payment types
Diffstat (limited to 'lib/utils.js')
-rw-r--r--lib/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.js b/lib/utils.js
index e653f235..b65f179a 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -23,7 +23,7 @@ export const fail = msg => {
};
export const SATS = 100000000;
-export const toSats = n => Math.round(n * SATS);
+export const sats = n => Math.round(n * SATS);
export const uniq = (a, k) => [...new Map(a.map(x => [k(x), x])).values()];
export const pick = (O, K) =>