commit 11171529d9bfb9c033dd2604ecef6e5778979f8d
parent 98740e0c173b22a52ea3765dd16bbb939311e127
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Tue, 26 Dec 2023 00:26:48 -0500
fix rake for big table
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go
@@ -1467,9 +1467,10 @@ func calculateRake(mainPot, pokerTableMinBet database.PokerChip, nbPlayers int)
// https://www.pokerstars.com/poker/room/rake
// BB: pct, 2P, 3-4P, 5+P
rakeTable := map[database.PokerChip][]float64{
- 3: {0.035, 178, 178, 178},
- 20: {0.0415, 297, 297, 595},
- 200: {0.05, 446, 446, 1190},
+ 3: {0.035, 178, 178, 178},
+ 20: {0.0415, 297, 297, 595},
+ 200: {0.05, 446, 446, 1190},
+ 2000: {0.05, 892, 892, 2083},
}
maxRake := pokerTableMinBet * 15
rakePct := 0.045