Skip to content

Contracts ​

Addresses will be published here at deployment, with the source verified on the Elysium explorer.

ContractAddress
Gridat deployment
GridToken (LAUREL)at deployment
DrandEvmnetat deployment

Parameters ​

NameValueNote
CELLS255×5 grid
roundDuration75 sP
betWindow60 sW; the break is 15 s
feeBps100010% of the losing stake
MAX_FEE_BPS1500hard limit of 15%
MOTHERLODE_ODDS625jackpot probability 1/625
REFUND_DELAY3600 sΔ
emissionPerRound1 LAURELe
motherlodePerRound0.2 LAURELj
maxSupply3,000,000 LAURELMmax
treasuryBps1000the treasury gets 10% of all LAUREL created
treasuryPerRound≈ 0.133 LAUREL(e+j)τ/(1−τ)
DRAND_GENESIS1727521075drand evmnet
DRAND_PERIOD3 sdrand evmnet

Interface ​

FunctionWhoWhat it does
deploy(cells, amounts)playersbets HYPE on cells of the current round; reverts after the close
settle(r, signature)anyoneverifies the beacon and settles round r
claim(rounds)playerspays HYPE and mints LAUREL for settled rounds
refund(r)playersreturns the whole stake of a round not settled within an hour
mintTreasury()anyonemints the accrued treasury share to the treasury address
pending(r, player)viewwhat a player can claim for a round
getRound(r)viewtotals, 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)