How Games Work
Eventually combines the excitement of racing games with blockchain transparency and fairness. Here's a detailed look at how our sloth racing game operates.
The Race Structure
8 Sloths per Race
Every sloth racing event features exactly 8 sloths, numbered 1 through 8. This fixed number ensures consistent odds and game mechanics across all races.
Race States
Each race goes through two states:
OPEN - Players can place bets
FINALIZED - Race completed with final results determined
The Gaming Flow
1. Race Creation
Eventually can create races using a commit-reveal scheme. The secret hash is stored but the actual secret remains hidden until finalization.
2. Betting Phase
During the OPEN state, players can:
Place bets using TICKET tokens or HYPE directly
Choose from 5 different bet types
Include referrers for additional rewards
3. Race Finalization
When betting closes, Eventually reveals the secret to determine results. The revealed secret must hash to the original committed hash, ensuring fairness.
4. Result Determination
The revealed secret generates the race outcome:
The secret is used as entropy to shuffle the 8 sloths
The shuffled order becomes the final finishing positions
Position 0 = 1st place, Position 1 = 2nd place, etc.
5. Payout Processing
When a race is finalized:
All bets are automatically evaluated
Winning bets receive payouts based on their odds
TICKET tokens are minted directly to winners' wallets
Losing bets forfeit their tokens
The Commit-Reveal Mechanism
Why Commit-Reveal?
This system ensures that:
Race outcomes cannot be predicted before betting closes
Eventually cannot manipulate results after seeing bets
Players can verify fairness by checking the revealed secret
How It Works
Commit Phase: Eventually submits
keccak256(secret)
when creating the raceBetting Phase: Players place bets while the actual secret remains unknown
Reveal Phase: Eventually reveals the original secret to finalize the race
Verification: Anyone can verify that
keccak256(revealed_secret) == committed_hash
Security Features
If the revealed secret doesn't match the committed hash, the race cannot be finalized
The blockchain provides tamper-proof storage of committed hashes
House Edge & Economics
House Edge
Eventually's sloth racing operates with a 5% house edge by default:
Fair odds are reduced by 5% to create sustainable economics
Example: WIN bet fair odds of 8.0x become ~7.6x with house edge
House edge can be adjusted by contract owners
Minimum Bets
Default minimum: 1 TICKET tokens (0.1 HYPE equivalent)
Prevents dust attacks and ensures meaningful game economics
Next Steps
Learn about specific Bet Types & Odds
Last updated