dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 3df70838341956976b20253f895e2043226142ee
parent a2fbec36d73ff99236c9aa5b8eebecdc868faec3
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 27 Dec 2023 01:59:20 -0500

as fair as I can

Diffstat:
Mpkg/web/handlers/poker/poker.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -1391,7 +1391,7 @@ func computeRake(players []*PokerPlayer, pokerTableMinBet, mainPotIn database.Po for _, p := range players { pctOfPot := float64(p.gameBet) / float64(mainPotIn) pctOfRake := pctOfPot * float64(rake) - p.rakePaid = database.PokerChip(pctOfRake) + p.rakePaid = database.PokerChip(math.RoundToEven(pctOfRake)) } mainPotOut = mainPotIn - rake return mainPotOut, rake