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: PaymentIntent and PaymentAttempt. sandboxPayment posts an operator deposit or withdrawal; openChargeback opens a chargeback.
  • Adjustments: requestLedgerAdjustment and applyLedgerAdjustment under dual control.
  • Reconciliation: runReconciliation and runSafeguardingReconciliation create ReconciliationRun and ReconciliationItem rows comparing ledger, provider, and safeguarded funds (SafeguardingAccount).
  • Tax: requestTaxRule, applyTaxRule, and assessSettlementTax produce TaxAssessment rows on settled wagers.

Withdrawals needing operator action are on Licences and payments.