Decentralized Gaming-protocol
Last updated
Last updated
Behind every game lies algorithms and code. In other words, a wide variety of games can be built simply by changing the front-end while keeping the underlying logic the same. Debets has developed a set of modular smart contracts that support a range of common betting games — including classic DICE, coin flip, slot machines, and more.
Any developer can integrate these contracts to create a fully customized game, or even embed them directly into their own application or project logic.
This is a classic game reimagined! The protocol uses Chainlink VRF to generate a random number between 0 and 99, which is then compared to the range or numbers chosen by players. The probability of winning and the payout multiplier directly depend on the winning odds and the size of the selected range.
The probability of winning (( P )) and the payout multiplier (( y )) are calculated as follows:
Where:
( P ): The probability of winning.
( r ): The number of values in the player’s chosen range (from 0 to 99).
Over/Under: Whether the player bets on the random number being above or below a chosen value (x).
( y ): The payout multiplier.
( x ): The number chosen by the player.
( a ): 1.5% game fee.
( b ): 1.5% house edge.
For example:
Suppose a player bets 100 SONIC, choosing “Under 49” with x=49x. This covers numbers 0 to 48—a total of 49 numbers. The probability of winning is:
49%
Using the “Under” formula, the multiplier is calculated as 1.9998. If the player wins, they receive 199.98 SONIC (100 × 1.9998).
At the heart of Debets lies a flexible, rule-based algorithm that serves as the foundation for a wide range of games. By simply modifying the frontend interface and adjusting parameters, developers can create entirely different gaming experiences — all powered by the same underlying logic.
This approach not only ensures efficiency and scalability but also dramatically lowers the barrier for innovation in on-chain gaming.
Debets will continue to expand its library of base game contracts, enabling support for even more gameplay types and helping developers build faster, safer, and more diverse decentralized games.