75 Commits (52530a9f4b395e4436aa6cbf0b61b5d2b8ef6366)

Author SHA1 Message Date
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
Daniel Karzel eef1b7348b
Transition cfd to new state when handling an event 3 years ago
Daniel Karzel 13814813a9
Refresh feed after state transition after monitor event 3 years ago
Daniel Karzel fed9a8bde6
Fix commit transaction publication 3 years ago
Thomas Eizinger 1560d86698
Move re-broadcasting functionality from actor ctor to housekeeping 3 years ago
Thomas Eizinger f028ca662d
Don't take announcements from oracle for now 3 years ago
Daniel Karzel 550bdcdd22
Integrate settlement endpoint into actions 3 years ago
Daniel Karzel 9c02592836
Pass order_id instead of msg to handle func 3 years ago