diff options
| author | historia <[not public]> | 2026-09-18 21:36:36 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-18 21:36:36 -0400 |
| commit | a8a67482bbff8297a96adff65d2fd7029ed998cc (patch) | |
| tree | e84f8ba636c8f2edb4d2ff8b45d7cff7298fa7cc /internal/casino/baccarat.go | |
| parent | ff04d26ce90d6b411a04a2fb59f7c24ceefb161f (diff) | |
| download | thehouseoficarus-a8a67482bbff8297a96adff65d2fd7029ed998cc.tar.gz | |
refactor: replace economy journal with single-file pending-wager wallet
Diffstat (limited to 'internal/casino/baccarat.go')
| -rw-r--r-- | internal/casino/baccarat.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |
