handle remit txs correctly, don't do partial sending
This commit is contained in:
parent
20b362bf1d
commit
d81046f5f3
1 changed files with 6 additions and 0 deletions
|
|
@ -294,6 +294,12 @@ exports.trade = function trade(session, rawTrade, cb) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!rawTrade.toAddress) {
|
||||||
|
var newRawTrade = _.cloneDeep(rawTrade);
|
||||||
|
newRawTrade.toAddress = 'remit';
|
||||||
|
return db.recordBill(session, newRawTrade, cb);
|
||||||
|
}
|
||||||
|
|
||||||
var tx = {
|
var tx = {
|
||||||
txId: rawTrade.txId,
|
txId: rawTrade.txId,
|
||||||
fiat: 0,
|
fiat: 0,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue