mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Updating the precision to make xmr.to happier.
This commit is contained in:
+1
-1
@@ -158,7 +158,7 @@ let xmrToQueue = async.queue(function (task, callback) {
|
||||
} else if (body.error_msg) {
|
||||
return intCallback(body.error_msg);
|
||||
} else {
|
||||
let amtOfBTC = ((amount / global.config.general.sigDivisor) * body.price).toPrecision(8);
|
||||
let amtOfBTC = ((amount / global.config.general.sigDivisor) * body.price).toPrecision(5);
|
||||
console.log("Attempting to pay: " + address + " Amount: " + amtOfBTC + " BTC or " + amount / global.config.general.sigDivisor + " XMR");
|
||||
console.log("Response from XMR.to: " + JSON.stringify(body));
|
||||
if (body.lower_limit >= amtOfBTC) {
|
||||
|
||||
Reference in New Issue
Block a user