From a8a67482bbff8297a96adff65d2fd7029ed998cc Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 18 Sep 2026 21:36:36 -0400 Subject: refactor: replace economy journal with single-file pending-wager wallet --- internal/casino/baccarat.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/casino/baccarat.go') diff --git a/internal/casino/baccarat.go b/internal/casino/baccarat.go index cf8a289..2b2b060 100644 --- a/internal/casino/baccarat.go +++ b/internal/casino/baccarat.go @@ -168,9 +168,9 @@ func (t *baccaratTable) deal() []Event { continue } result, payout, settleErr := settleBaccaratBet(p.lastSpot, p.Wager.Total, playerTotal, bankerTotal, t.Rules) - // The shared settlement path pays before announcing, leaves the - // stake open on any failure (recovery re-applies the owed payout), - // and resolves it only once durable. + // The shared settlement path pays before announcing and leaves the + // stake pending on any failure, so a refund can never be paid on top + // of a payout that was not durable. payoutFailed := settleStakeOutcome(p.Wallet, payout, []string{p.stakeID}, settleErr) publicResult, privateResult := baccaratResultMessages(p.Name, result, payout) if payoutFailed { -- cgit v1.2.3