diff options
| author | Adam Soltys <[email protected]> | 2022-02-26 00:27:21 -0500 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-02-26 00:27:55 -0500 |
| commit | 3098f0c849f696b39714799c6c1663936946e61b (patch) | |
| tree | 1095f9caa720dc9462429ef3a76feff7690690c4 /routes/liquid | |
| parent | 46bc3fdc3d5c5da1c7f6ecb27e949da7687398b7 (diff) | |
| download | coinos-server-3098f0c849f696b39714799c6c1663936946e61b.tar.gz coinos-server-3098f0c849f696b39714799c6c1663936946e61b.zip | |
fix rounding errors
Diffstat (limited to 'routes/liquid')
| -rw-r--r-- | routes/liquid/receive.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/liquid/receive.js b/routes/liquid/receive.js index 92942ce4..0ee3e0c6 100644 --- a/routes/liquid/receive.js +++ b/routes/liquid/receive.js @@ -239,7 +239,7 @@ zmqRawBlock.on("message", async (topic, message, sequence) => { lock: transaction.LOCK.UPDATE, transaction }); - account.balance = asset_amount * SATS; + account.balance = Math.round(asset_amount * SATS); account.pending = 0; await account.save({ transaction }); |
