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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Versions
2
2
 
3
- ## Version 3.14.2
3
+ ## Version 3.14.3
4
4
 
5
5
  - `manageTrades`: Fix listing of trades that have fiat-pricing
6
6
 
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.2"
46
+ "version": "3.14.3"
47
47
  }
@@ -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 trade = `${tokensAsBigUnit(tokens)} ${description}`;
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
  });