Settlement
Settle wagers, resettle, and correct cash-outs.
Routes: /dashboard/platform/settlements, /settlements/[wagerId].
settleWagersettles simple straight wagers.settleCombinationWagersettles wagers with parts and routes full straight wagers.fullStraightSettlementPlanpreviews a plan.- Settlements are versioned. A
SettlementhasSettlementLinerows for stake return, profit, tax, and rounding. Each posts a balancedJournalTransaction. - Resettle:
requestResettlementApprovalthenresettleWager, orrequestCombinationResettlementthenresettleCombinationWager. - Cash-out corrections:
requestCashOutCorrectionthencorrectCashOut.
Settlement runs are SettlementRun rows, started by settlement.requested events that the worker drains.