diff --git a/lib/payments.js b/lib/payments.js index eb18d7d..219effa 100644 --- a/lib/payments.js +++ b/lib/payments.js @@ -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) {