85 Commits (c22dcc9739d50744d491054497b82afef8d17c63)

Author SHA1 Message Date
Daniel Karzel 40f5b81e4d
Convert Wallet to actor 3 years ago
Thomas Eizinger d789732ed7
Use the original order's term for rolling over 3 years ago
Daniel Karzel dfc8b00ac7
Taker removes order from feed after cfd insert 3 years ago
Lucas Soriano del Pino 2bb8a7f592
Remove superfluous Send trait bound 3 years ago
Lucas Soriano del Pino 7cb3c4f2c7
Treat InvalidOrderId from maker as Rejected 3 years ago
Daniel Karzel a328d43b74
Remove pending roll over proposal upon rejection 3 years ago
Thomas Eizinger 38ee2b1d7c
Prefetch announcement upon proposing rollover 3 years ago
Thomas Eizinger 3ad6eacdb1
Add log statement for completed roll over 3 years ago
Lucas Soriano del Pino 4b9dae8c7d
Make taker_cfd::Actor generic over other actor addresses 3 years ago
Lucas Soriano del Pino 20c76f6134
Use MessageChannel instead of send_to_socket::Actor 3 years ago
Daniel Karzel cbfb40186a
Notify monitor actor to watch for collaborative close tx 3 years ago
Lucas Soriano del Pino e2f926388a
Introduce taker_cfd::CfdAction enum 3 years ago
Thomas Eizinger bfabf0c7b1
Make it less verbose to construct simple states 3 years ago
Thomas Eizinger 44e62cff29
Reduce boilerplate in constructing `CfdStateCommon` 3 years ago
Thomas Eizinger ca93714746
Refactor `insert_new_cfd_state_by_order_id` to `append_cfd_state` 3 years ago
Mariusz Klochowicz 3730cfae36
Reduce code duplication in cfd actors 3 years ago
Mariusz Klochowicz 6779486f76
Create wrapper functions to avoid the need for manually refreshing feed 3 years ago
Daniel Karzel a44f05b381
Lock in profit on collaborative close price 3 years ago
Daniel Karzel 95d8910013
Monitor oracle attestation after completed setup 3 years ago
Lucas Soriano del Pino 09c331f547
Replace CFD actor Address with MessageChannel in oracle::Actor 3 years ago
Lucas Soriano del Pino 16e1f95ec0
Replace CFD actor Address with MessageChannel in monitor::Actor 3 years ago
Daniel Karzel 7665f4cdfc
Collaborative close payout 3 years ago
Mariusz Klochowicz 801b05cf5b
Borrow CfdState when updating state in the database 3 years ago
Mariusz Klochowicz 4ffb9bff91
Propose settlement based on the payout curve and current BitMex price 3 years ago
Mariusz Klochowicz 5964ec53cf
Monitor for close finality 3 years ago
Thomas Eizinger 67a39aa5bd
Re-introduce library 3 years ago
Thomas Eizinger b546c45d7f
Only process CFDs where we have a DLC 3 years ago
Thomas Eizinger fbcb629a8e
Properly model event IDs 3 years ago
Thomas Eizinger 9c0d320dc1
Rename `OracleEventId` 3 years ago
Daniel Karzel bf596dfdad
Make payout and attestation price available in `model::Attestation` 3 years ago
Lucas Soriano del Pino 11e2771c45
Rename MonitorEvent to MonitorAttestation 3 years ago
Lucas Soriano del Pino 5b9a9db6df
Only fetch announcements when needed 3 years ago
Mariusz Klochowicz e050bdc043
Sign and broadcast collaborative settlement 3 years ago
Daniel Karzel d6aed063fc
Missing CFD feed updates 3 years ago
Daniel Karzel cea476c606
More resilient loop error handling 3 years ago
Daniel Karzel 9666b63cb7
Optional state transition and early exit 3 years ago
Daniel Karzel d86fd3493b
Display `CetStatus` as part of `NotReady` error 3 years ago
Daniel Karzel ad7a024c02
Separate `Attestation` struct in model 3 years ago
Daniel Karzel 971b9f9368
Replace `Announcements` with requesting specific `Announcement` 3 years ago
Philipp Hoenisch 9de0376daa
Bug fix: Remove pending roll over requests 3 years ago
Philipp Hoenisch 9b755b9a59
PR feedback and fmt 3 years ago
Lucas Soriano del Pino 5cd723441d
Implement rollover protocol in daemons 3 years ago
Mariusz Klochowicz eb33172e9f
Handle collab settlement response from the maker 3 years ago
Daniel Karzel 159240cc9f
Wire in automatic CET publication 3 years ago
Daniel Karzel 2f9a969aba
Use `OracleEventId` instead of `String` for `Attestation` id 3 years ago
Philipp Hoenisch b012aa7a37
Rollover order boilerplate 3 years ago
Mariusz Klochowicz 36c04140f6
Optimise data structure used for settlement proposals 3 years ago
Daniel Karzel 8a2f2b83cc
`BTreeMap` for announcements in cfd actors 3 years ago
Daniel Karzel 61d62e7263
Taker uses latest announcements from oracle to start contract setup 3 years ago
Mariusz Klochowicz 30a549c8bb
Allow accepting/rejecting settlement proposals in the maker daemon 3 years ago