mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Fixing the payment daemon. Just a little.
This commit is contained in:
+3
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user