Updating the precision to make xmr.to happier.

This commit is contained in:
Alexander Blair
2017-02-13 19:50:59 -08:00
parent 0a589cdada
commit 760ec284fb
+1 -1
View File
@@ -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) {