Cashing Out
Players can cash out at any time in the room between rounds.
When the user clicks cashout, a TX is sent from a chip updater account first. This TX updates the middleman contract with how many chips each player has. User will see “Syncing Chips” when this is in progress. Once completed, the user will get a TX request to cash out their cut of the pot.
After pressing cashout, the user is marked as "Away" in the room, if the next hand is distributed, the user/users marked for "Away" will not receive a hand and will be away for the round. If the user rejects the cashout request, they will come back into the next round.
the cashout function in the contract requires the onchain room #, which is shown in the top left of the room
Last updated