A YES/NO pool
for Elysium.
Stake HYPE / fee fixed at creation / settled from the pool
See how fees and late stakes change your payout before the market locks.
01 / The question that gets skipped
Right, and still behind.
Worked example · fee 2 %
990 HYPE on YES, 10 on NO.
You put 10 of the 990 on YES and YES wins. The pool is 1,000 HYPE, the creator's 2 % fee is 20, so 980 is shared by the YES side in proportion to stake. You get back 10 × 980 / 990 = 9.8989 HYPE: you were right and still end about 0.101 HYPE short.
- 01Total pool = 990 + 10 = 1,000 HYPE.
- 02Fee = 1,000 × 200 / 10,000 = 20 HYPE, to the creator.
- 03Shared = 1,000 − 20 = 980 HYPE, all to the winning side.
- 04Your share = 10 / 990 of it = 9.8989 HYPE (rounded down).
- 05Break-even for this YES side needs about 20.21 HYPE or more on NO.
02 / One market, five steps
No resolver. The pool answers.
Create
Strike, lock time, reading time, fee (max 5 %) and an optional cap. Fixed forever once sent.
Stake
HYPE on YES or NO until the lock. No unstake, no cancel, by anyone.
Lock
Pools freeze. A side still empty means the market voids and refunds.
Read ×3
Three 10-minute slots. Any plain wallet records the pool price once per slot.
Settle + claim
Median of the three vs strike. Winners claim; a missed slot voids and refunds.
03 / Same code, twice
The preview runs the contract's math.
The payout function is a pure library inside OddvaPoolHouse. The site computes it in its own code and can ask the contract the same question by eth_call, then shows whether both agree. Before the house is deployed the call runs against its compiled bytecode placed at a scratch address for that one call.
Read the rules →function payoutOf(stake, winPool, losePool, feeBps) if (winPool == 0) return 0; // that market voids total = winPool + losePool; dist = total - total * feeBps / 10_000; return stake * dist / winPool; // rounds down // void: one side empty at lock, or a reading slot // missed -> every stake back, no fee
04 / Systems