mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-11-26 10:54:14 +01:00
Using round instead. Should be slightly more accurate.
This commit is contained in:
+1
-1
@@ -131,7 +131,7 @@ function coinToDecimal(amount) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function decimalToCoin(amount) {
|
function decimalToCoin(amount) {
|
||||||
return Math.ceil(amount * global.config.coin.sigDigits);
|
return Math.round(amount * global.config.coin.sigDigits);
|
||||||
}
|
}
|
||||||
|
|
||||||
function bitcoinDecimalToCoin(amount) {
|
function bitcoinDecimalToCoin(amount) {
|
||||||
|
|||||||
Reference in New Issue
Block a user