Skip to main content

Module settlements

Module settlements 

Source
Expand description

SettlementReader + SettlementWriter implementations for DatabaseHandler.

Handles idempotent settlement persistence: expiration rows, payout rows, ledger events, and settlement payout facts in a single atomic transaction. See CALL-500 post-mortem for why this atomicity is critical.