aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index c006e1ea..8f7103dc 100644
--- a/index.js
+++ b/index.js
@@ -24,7 +24,7 @@ sockets = {};
convert = persist("data/conversions.json");
SATS = 100000000;
-toSats = n => parseInt((n * SATS).toFixed());
+toSats = n => Math.round(n * SATS);
app = express();
app.enable("trust proxy");