Finance
Ledger journals, payments, adjustments, reconciliation, safeguarding, and tax.
Needs canManageFinance. Routes: /dashboard/platform/finance, /finance/reconciliation, /finance/tax.
Money is integer minor units stored as text (stakeMinor, amountMinor) with a currency code. Every movement posts a balanced JournalTransaction of JournalEntry rows against LedgerAccount rows; BalanceProjection tracks balances and Hold reserves funds.
- Payments:
PaymentIntentandPaymentAttempt.sandboxPaymentposts an operator deposit or withdrawal;openChargebackopens a chargeback. - Adjustments:
requestLedgerAdjustmentandapplyLedgerAdjustmentunder dual control. - Reconciliation:
runReconciliationandrunSafeguardingReconciliationcreateReconciliationRunandReconciliationItemrows comparing ledger, provider, and safeguarded funds (SafeguardingAccount). - Tax:
requestTaxRule,applyTaxRule, andassessSettlementTaxproduceTaxAssessmentrows on settled wagers.
Withdrawals needing operator action are on Licences and payments.