ctm / mb2-doc

Mb2, poker software
https://devctm.com
7 stars 2 forks source link

Payouts wrong after rebuy tournament #1406

Closed ctm closed 1 month ago

ctm commented 1 month ago

Find and fix the problem with payouts that shows up in this evening's tournament.

The total payout for this evening's tournament was 1950, which isn't a multiple of 100.

I'm marking this as a regression, but I can't think of anything I've done recently that could cause trouble. This evening's tournaments had both rebuys and add-ons. I know there are problems with add-ons, but I don't think the problems include a short buy. Today's tournament also had bounties and although the amount that was paid out in bounties adds up correctly, it could be that we take out too much for bounties.

ctm commented 1 month ago

The amount people put in was only 1900. I'll bet we compute how much to take out for bounties at the start of the game and don't account for late registrants. I know we had at least one late registrant. Most likely we had exactly two.

I'll look at this "soon", probably tomorrow.

ctm commented 1 month ago

Fixed. Deploying now.