Docs menu: The draw and its randomness
The draw and its randomness
Days
A day runs from 00:00 to 00:00 UTC. When it closes, its weights freeze: deposits and withdrawals after the close count for the new day only.
drand evmnet
drand is the randomness beacon run by the League of Entropy. Its evmnet beacon signs a new round every 3 seconds with a BLS signature on the BN254 curve, which EVM chains verify with the precompiles at 0x06, 0x07 and 0x08.
Each day is settled by the first round at least 60 seconds after its close. The round number follows from the clock alone, so it is known from the first second of the day and nobody, the team included, can choose it.
round(d) = ceil((close(d) + 60 - 1727521075) / 3) + 1Verification and payout
DrawManager.draw(signature) is open to anyone. It hashes the round to a BN254 point (DST BLS_SIG_BN254G1_XMD:KECCAK-256_SVDW_RO_NUL_), checks the pairing against drand's evmnet public key, then takes randomness = keccak256(signature).
The winner is the saver whose weight range holds randomness mod totalWeight. The same transaction pays the pot, so the payout link is the draw itself. A day nobody settles in time rolls its yield into the next draw.