Updating the precision to make xmr.to happier.

master
Alexander Blair 7 years ago
parent 0a589cdada
commit 760ec284fb

@ -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) {

Loading…
Cancel
Save