Fixing the payment daemon. Just a little.

This commit is contained in:
Alexander Blair
2017-02-13 19:42:13 -08:00
parent 4b765d6390
commit 0a589cdada
+3 -3
View File
@@ -11,7 +11,7 @@ let xmrAPIClient = request.createClient('https://xmr.to/api/v1/xmr2btc/');
let shapeshiftQueue = async.queue(function (task, callback) {
// Amount needs to be shifted in as a non-completed value, as the wallet will only take non-complete values..
let amount = task.amount -= task.fee;
let amount = task.amount - task.fee;
// Address is the destination address IN BTC.
let address = task.address;
// PaymentIDs are the paymentID's to flag as paid by this transaction.
@@ -140,7 +140,7 @@ let xmrToQueue = async.queue(function (task, callback) {
// http://xmrto-api.readthedocs.io/en/latest/introduction.html
// Documentation looks good!
// Amount needs to be shifted in as a non-completed value, as the wallet will only take non-complete values..
let amount = task.amount -= task.fee;
let amount = task.amount - task.fee;
// Address is the destination address IN BTC.
let address = task.address;
// PaymentIDs are the paymentID's to flag as paid by this transaction.
@@ -529,7 +529,7 @@ function Payee(amount, address, paymentID, bitcoin) {
};
this.makeBitcoinPayment = function () {
let functionalData = {address: this.address, amount: this.amount};
let functionalData = {address: this.address, amount: this.amount, fee: this.fee};
let payee = this;
if (bestExchange === 'xmrto') {
xmrToQueue.push(functionalData, function (err, transactionID) {