Betting
Placing a wager
Players must place a wager (bet amount) before participating in a game. Bets are made using bet tokens ($MCS) by connecting a Web3 wallet. No sign-ups, deposits, or withdrawals are required. Web3 wallets interact directly with game contracts, ensuring a seamless and decentralized experience. Wagers are processed through the game contracts, and payouts are distributed directly from the bankroll.
Maximum wager
The maximum wager a player can place is determined using the Kelly Criterion, a well-known formula for optimizing bet size. This formula calculates the Kelly fraction by considering the game's probabilities and multipliers. By applying the Kelly fraction to the bankroll value, we determine the Kelly Bet, which represents the maximum allowable wager for a game.
Using the Kelly Bet ensures that maximum wagers are dynamically adjusted to protect the bankroll from potential depletion. For a deeper understanding of how the Kelly Criterion is implemented, visit the Kelly Risk Managament page.
Multiple bets
Verifiable Random Functions (VRFs) enable multi-betting, allowing players to place multiple bets in a single transaction (currently up to 20 multi-bets across all games). The game contract processes these bets by requesting the same number of random values in a single Random Number Generation (RNG) request from the VRF (refer to Chainlink's documentation for details).
This system enhances efficiency by reducing transaction fees and saving time, as only one wallet confirmation is required. For more details, visit the VRF section.
Stop Gain and Stop Loss
Players can set a stop gain, stop loss, or both when placing a multi-bet. The game session will automatically end once a stop limit is reached. Players are only charged for the number of games played up to and including the round where the stop condition is met.
Example: A player places 5 bets with a wager of 5 and sets a stop gain of 10. After 2 games, they reach a profit of 10, triggering the stop gain. The betting session ends, and the player is only charged for 2 games, while the remaining 3 bets are not played.
Pending VRF Requests
On their profile page, players can view Pending VRF Requests. In rare cases, if a VRF request fails to resolve, the player's wager may become stuck in the Game Contract. After 100 blocks, the player can click "Refund" to remove their wager from the contract. For more information, refer to the VRFs section and the Framework page.
Last updated