paid-services 3.14.2 → 3.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/package.json +1 -1
- package/trades/manage_trades.js +4 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"integration-tests": "tap -j 2 --branches=1 --functions=1 --lines=1 --statements=1 -t 180 test/integration/*.js",
|
|
44
44
|
"test": "tap --branches=1 --functions=1 --lines=1 --statements=1 -t 60 test/actions/*.js test/balanced/*.js test/capacity/*.js test/client/*.js test/config/*.js test/p2p/*.js test/records/*.js test/respond/*.js test/server/*.js test/server/*.js test/services/*.js test/trades/*.js"
|
|
45
45
|
},
|
|
46
|
-
"version": "3.14.
|
|
46
|
+
"version": "3.14.3"
|
|
47
47
|
}
|
package/trades/manage_trades.js
CHANGED
|
@@ -315,8 +315,10 @@ module.exports = ({ask, lnd, logger, request, separator}, cbk) => {
|
|
|
315
315
|
return logger.info(`sold: ${tokensAsBigUnit(tokens)} ${item}`);
|
|
316
316
|
});
|
|
317
317
|
|
|
318
|
-
sub.on('start', ({description, tokens}) => {
|
|
319
|
-
const
|
|
318
|
+
sub.on('start', ({description, price, tokens}) => {
|
|
319
|
+
const amount = !!tokens ? tokensAsBigUnit(tokens) : price;
|
|
320
|
+
|
|
321
|
+
const trade = `${amount} ${description}`;
|
|
320
322
|
|
|
321
323
|
return logger.info(`open: ${trade}`);
|
|
322
324
|
});
|