Commit graph

17 commits

Author SHA1 Message Date
Rafael Taranto
9ca3e88495 Add expired status to cash-out txs 2019-07-25 18:37:19 +01:00
Rafael Taranto
3dd7503e45 Fix ratchet errors on commission and ticker 2019-03-05 17:59:10 +01:00
Josh Harvey
e7ef9d0753 Merge in release and fix conflicts 2019-03-03 13:06:55 +01:00
Fabio Cigliano
578a39a721 log raw ticker price within tx 2019-03-02 14:40:29 +01:00
Fabio Cigliano
5815a606f2 rewoking getCommissionPercentage function 2019-03-02 14:40:29 +01:00
Fabio Cigliano
03279c8d2c tx.commission_percentage added 2019-03-02 14:40:29 +01:00
Rafael Taranto
9364eb5132 Fix cash-out exchange behavior for 'rejected' tx
A TX on the 'rejected' state should still be watched for authorization.

This fixes the bug where delayed cash-out confirmations would not
trigger a exchange sell command.
2019-03-02 14:28:27 +01:00
Rafael Taranto
809bf5a2a9 Add sms/email notifications on transactions (#198)
* Add sms/email notifications on transactions

* Add configuration for transaction notification

* Add notification on provision address error

* Remove unneeded noop from promises
2018-11-06 13:49:12 +01:00
Rafael Taranto
38aa006ecc Add device_id to cash_out_actions table (#164)
If a costumer originates a cashOut transaction at one device, and then
redeemed at a different device, the wrong machine would have bills debited from it.

With device_id being saved at the cash_out_actions table the bills can
be properly reconciled.
2018-09-22 23:38:31 +01:00
Rafael Taranto
1a8ef31d39 Add db error consts file (#165)
* Add db error consts file

* Fixed typo in comment
2018-09-22 23:38:31 +01:00
Rafael Taranto
4e287d1ecb Improve cash out monitor transaction handling (#159)
Made the queries from 'monitorLiveIncoming' and 'monitorStaleIncoming'
return mutually exclusive records from the db.

Both this methods are polled and perform the same actions on the
records. As a result, transaction erros were prone to happen.
2018-09-22 23:36:02 +01:00
Fabio Cigliano
f90357804a Dispense error status code fix (#142)
* 7.0.1

* add cash_out_txs.error_code to updateable fields
2018-08-24 17:30:25 +03:00
Josh Harvey
9d6f3e6d9b reduce stale tx period to 1 day 2018-06-17 11:48:53 +01:00
Josh Harvey
d1712ce1ce Add layer2 address separately 2018-06-04 16:34:46 +03:00
Josh Harvey
c2af183911 format for latest standard 2018-03-10 18:59:40 +00:00
Josh Harvey
e22333b7af backport some missed changes in cash-in and cash-out 2018-02-02 00:45:52 +02:00
Josh Harvey
118e4ec4be refactor cash-in and cash-out 2018-02-01 23:48:27 +02:00