Commit Graph

131 Commits

Author SHA1 Message Date
Reckless_Satoshi
30e35f8973
Asynchronous TG messages. Add taker_cancelled and taker_expired messages. 2022-02-23 08:15:48 -08:00
Reckless_Satoshi
a9575c2338
Add order_expired and trade_successful telegram messages 2022-02-22 09:50:01 -08:00
Reckless_Satoshi
b9b71dc842
Fixes for telegra messaing errors in production 2022-02-21 18:12:42 -08:00
Reckless_Satoshi
3906ed73aa
Fix non enabled telegram order taken 2022-02-21 16:55:31 -08:00
Reckless_Satoshi
df320ea4d0
Add telegram functionality to backend. Messages: welcome and order taken. 2022-02-21 15:41:36 -08:00
Reckless_Satoshi
1feebacbc1
Make avatar persists when revisiting homepage 2022-02-21 02:05:19 -08:00
Reckless_Satoshi
9025b2e07d
Fix clean-orders failure when trade_escrow has not been generated 2022-02-20 06:38:29 -08:00
Reckless_Satoshi
23eabffeca
Settle bonds at dispute opening. Avoids channel force closure in long resolution disputes. 2022-02-20 03:39:28 -08:00
Reckless_Satoshi
fc4ccd5281
Re-format all python code 2022-02-17 11:50:10 -08:00
Reckless_Satoshi
f8f306101e
Fix cancel lnpayment at WFM. Add svgs, BTC currency flag. Fix pretty numbers 2022-02-16 18:45:18 -08:00
rs
a9a344fddf Fix taker bond is not return on maker cancel. Update all libs. Add extra hosts. 2022-02-13 16:43:49 +00:00
Reckless_Satoshi
96be0d8f80
Dockerize dev stack, now fully functional 2022-02-09 11:45:11 -08:00
Reckless_Satoshi
ee7786c5c1
Add lnd v0.14.2 docker 2022-02-09 07:21:51 -08:00
Reckless_Satoshi
715d7ebf6d
Handle LND down response to clients 2022-02-08 02:05:22 -08:00
Reckless_Satoshi
1a6aa8a9ee
Improve failure logics. Add platform rating. 2022-02-04 10:07:09 -08:00
Reckless_Satoshi
3f6731d3e0
Improve response time of confirm fiat receive; improve failure routing handling 2022-02-03 17:37:24 -08:00
Reckless_Satoshi
b39529d91e
Avoid giving new robot to a user who is expecting still a payment 2022-02-03 13:51:42 -08:00
Reckless_Satoshi
71532d52d0
Add maker status on book page 2022-02-03 10:06:30 -08:00
Reckless_Satoshi
13517047e0
Fix irresponsive taker invoice when a maker/seller is not active 2022-01-30 07:50:22 -08:00
Reckless_Satoshi
58ecb607c3
Add setup background threads. Minor fixes and cosmetic. 2022-01-30 07:18:03 -08:00
Reckless_Satoshi
5ab97453f0
Add user profile bottom left icon with active order reminder 2022-01-29 11:51:26 -08:00
Reckless_Satoshi
6ab8f86b97
Implement responsive order book 2022-01-27 06:40:14 -08:00
Reckless_Satoshi
2263ec7153
Add penalty live countdown. Fix unilateral cancellation after escrow 2022-01-26 03:44:45 -08:00
Reckless_Satoshi
d2dbc0d249
Add async background catches expiry height 2022-01-25 07:20:56 -08:00
Reckless_Satoshi
5a677067f7
Record expiry height into lnpayment and admin panel 2022-01-25 06:46:02 -08:00
Reckless_Satoshi
2d1a2e4c5c
Add logics for payment retry, first iteration. 2022-01-24 14:53:55 -08:00
Reckless_Satoshi
25ab5fdf2e
Add invoice expiry paddingas temporary fix for order expire at invoice expire. 2022-01-24 10:34:52 -08:00
Reckless_Satoshi
51d65fd15e
Implement CLTV_expiries for each hold invoice duration. Invoice expiry matches status time to lock it. 2022-01-24 09:54:44 -08:00
Reckless_Satoshi
b934534e1e
Implement collaborative cancellation 2022-01-23 11:02:25 -08:00
Reckless_Satoshi
fb5cb8fb4a
Cancel frontend clean up. Try and go for management commands 2022-01-20 12:50:25 -08:00
Reckless_Satoshi
4eaad57475
background process debugging 2022-01-20 09:30:29 -08:00
Reckless_Satoshi
7c0e3a74fa
Fix premium percentile computation 2022-01-19 12:55:24 -08:00
Reckless_Satoshi
7218b9b0d3
Logics update: escrow settles exactly at buyer payout time. 2022-01-19 11:37:10 -08:00
Reckless_Satoshi
285f85aaf2
Add check if attribute order exists when triggering an order status 2022-01-18 14:17:41 -08:00
Reckless_Satoshi
a0b38d831f
Fix bug penalizing a non existing taker 2022-01-18 10:40:56 -08:00
Reckless_Satoshi
ad6ee9d4de
Improve Order Expired behaviour 2022-01-18 07:45:04 -08:00
Reckless_Satoshi
c58070f437
Improve logics around locked bonds. Add frontend confirm cancel dialog. 2022-01-18 07:23:57 -08:00
Reckless_Satoshi
e31bc1adad
Bug fix invoice follow. Copy user token button. 2022-01-18 05:20:19 -08:00
Reckless_Satoshi
ae3a8cc0f5
Rework active order validation to only a subset of status 2022-01-17 15:22:44 -08:00
Reckless_Satoshi
28d18a4842
Add background order updates. Add confirm boxes for Dispute and Fiat Received 2022-01-17 15:11:41 -08:00
Reckless_Satoshi
0db73c7c82
Convert order cleaning task into admin command 2022-01-17 10:11:44 -08:00
Reckless_Satoshi
eddd4674f6
Add admin background task: follow all active hold invoices 2022-01-17 08:41:55 -08:00
Reckless_Satoshi
9d883ccc4d
Add expiration logics. Add dispute statements. 2022-01-16 13:54:42 -08:00
Reckless_Satoshi
28bfaee937
Add background task for expired orders removal 2022-01-16 10:32:34 -08:00
Reckless_Satoshi
2cbc82a535
Convert cached currency to relation children of order 2022-01-16 08:06:53 -08:00
Reckless_Satoshi
185cc71e91
Improve market price fetching and caching 2022-01-16 07:18:23 -08:00
Reckless_Satoshi
7ba2fcc921
Add celery background and scheduled tasks. Add user cleansing task 2022-01-16 04:31:25 -08:00
Reckless_Satoshi
91544642ae
Add currency visual flags 2022-01-15 07:12:26 -08:00
Reckless_Satoshi
f390a8f2f1
Fix delay when bad request. Fixavg premium to weighted avg premium 2022-01-15 06:22:07 -08:00
Reckless_Satoshi
8e609b9e47
Add dynamic refresh rate to OrderPage based on order status 2022-01-15 04:00:11 -08:00
Reckless_Satoshi
7a6cf943ee
Rework book as datagrid 2022-01-14 13:40:54 -08:00
Reckless_Satoshi
ad58f66968
Add second market price API. Median price is used. 2022-01-14 06:57:56 -08:00
Reckless_Satoshi
032d3a1369
Add taker bond lock expiry 2022-01-14 06:19:54 -08:00
Reckless_Satoshi
64df2c7ce6
Add provisional frontend chat. The chat is totally unsafe as of now. Does not store messages either. 2022-01-13 11:22:54 -08:00
Reckless_Satoshi
bd7c82fc11
Add currencies. Fix info view 2022-01-12 06:26:26 -08:00
Reckless_Satoshi
2523e5ef09
Add needed LNNode routines and LNpayments status. First full trade demonstrated 2022-01-12 04:57:03 -08:00
Reckless_Satoshi
a3375df6e5
Work on lightning functionality: locks, settles, cancels, validates. Trading almost working on testnet 2022-01-11 16:02:17 -08:00
Reckless_Satoshi
8bc8f539d0
Work on LN bonds. Maker bond works. Yet, this is not the best way probably. 2022-01-11 12:49:53 -08:00
Reckless_Satoshi
17df987630
Rework lightning module. Add version info 2022-01-11 06:36:43 -08:00
Reckless_Satoshi
9f65a5adb6
Add validating LN invoices and generaing hold invoices 2022-01-10 17:02:06 -08:00
Reckless_Satoshi
9c2f50dacf
Init work on Lightning functionality 2022-01-10 15:27:48 -08:00
Reckless_Satoshi
db36277456
Fix live premium bug in book 2022-01-10 11:11:45 -08:00
Reckless_Satoshi
e493f22842
add lnd grpc 2022-01-10 10:47:16 -08:00
Reckless_Satoshi
de66040893
Add cancel taker penalty time 2022-01-10 04:10:32 -08:00
Reckless_Satoshi
9bc6757ba3
Revamp UI 2022-01-09 17:12:58 -08:00
Reckless_Satoshi
8e5233267f
Work frontend trade pipeline 2022-01-09 12:05:19 -08:00
Reckless_Satoshi
185e0af496
Merge with json-dicts 2022-01-09 04:35:19 -08:00
LowEntropyFace
ec823586c1 merge with branch logics-second-iteration 2022-01-08 20:18:11 -05:00
Reckless_Satoshi
cf2422f924
Small fixes 2022-01-08 12:14:19 -08:00
Reckless_Satoshi
476fcf1d6f
Add trade escrow box 2022-01-08 09:19:30 -08:00
LowEntropyFace
215af668a2 merge htlc-model 2022-01-08 06:51:55 -05:00
Reckless_Satoshi
7b6b486552
updated env-sample 2022-01-07 16:29:04 -08:00
Reckless_Satoshi
eb9042eaa4
Add Non-KYC Bitcoin price historical records 2022-01-07 14:46:30 -08:00
Reckless_Satoshi
b472b4928c
More logics, bug hunt 2022-01-07 11:22:07 -08:00
Reckless_Satoshi
9ab52853d5
Work on more logics. Rough draft finished 2022-01-07 10:22:52 -08:00
Reckless_Satoshi
8a55383761
Add more api logics
The workflow is actually more complex than I though. In fact the whole scope of the project greatly surpass my expectation of "weekend project".  Want to lay down something functional even if buggy and ugly, I'm a bad coder but this will work out!
2022-01-07 03:31:33 -08:00
Reckless_Satoshi
6a1a906bea
Cosmetic 2022-01-06 15:33:55 -08:00
Reckless_Satoshi
31b19ce18c
Work on order cancel 2022-01-06 14:39:59 -08:00
Reckless_Satoshi
c0d6236dbb
Maker and taker bonds OK 2022-01-06 13:36:22 -08:00
Reckless_Satoshi
34e05465c2
Add more logics bareframes 2022-01-06 12:33:40 -08:00
Reckless_Satoshi
a1771ae5ea
Add environmental variables to .env 2022-01-06 08:54:37 -08:00