Contracts
Addresses will be published here at deployment, with the source verified on the Elysium explorer.
| Contract | Address |
|---|---|
Grid | at deployment |
GridToken (LAUREL) | at deployment |
DrandEvmnet | at deployment |
Parameters
| Name | Value | Note |
|---|---|---|
CELLS | 25 | |
roundDuration | 75 s | |
betWindow | 60 s | |
feeBps | 1000 | 10% of the losing stake |
MAX_FEE_BPS | 1500 | hard limit of 15% |
MOTHERLODE_ODDS | 625 | jackpot probability |
REFUND_DELAY | 3600 s | |
emissionPerRound | 1 LAUREL | |
motherlodePerRound | 0.2 LAUREL | |
maxSupply | 3,000,000 LAUREL | |
treasuryBps | 1000 | the treasury gets 10% of all LAUREL created |
treasuryPerRound | ≈ 0.133 LAUREL | |
DRAND_GENESIS | 1727521075 | drand evmnet |
DRAND_PERIOD | 3 s | drand evmnet |
Interface
| Function | Who | What it does |
|---|---|---|
deploy(cells, amounts) | players | bets HYPE on cells of the current round; reverts after the close |
settle(r, signature) | anyone | verifies the beacon and settles round |
claim(rounds) | players | pays HYPE and mints LAUREL for settled rounds |
refund(r) | players | returns the whole stake of a round not settled within an hour |
mintTreasury() | anyone | mints the accrued treasury share to the treasury address |
pending(r, player) | view | what a player can claim for a round |
getRound(r) | view | totals, pot, token pool, winning cell, flags, stakes per cell |
Settlement routine
text
settle(r, σ):
require round r not settled
require c_r ≤ now < c_r + Δ and T_r > 0
require e(σ, g₂) = e(H(keccak256(be64(n_r))), PK) // reverts otherwise
ρ ← SHA256(σ)
w ← ρ mod 25
J ← (keccak256(ρ) mod 625 = 0)
M ← M + j; treasury ← treasury + a
if S_w = 0: // void round
F ← ⌊φ·T⌋; pot ← T − F; M ← M + e; J ← false
else:
F ← ⌊φ·(T − S_w)⌋; pot ← T − S_w − F
E ← e; if J: E ← E + M; M ← 0
fees ← fees + F
emit Settled(r, w, J, pot, E, F)