Skip to content

06 / Rules

Every power, written down.

One contract, OddvaPoolHouse, on Elysium. One kind of question: will HYPE be at or above a strike in the HYPE/USDC pool at a set time. This page lists what each role can do, how money moves and what can go wrong.

Roles and powers

RoleCanCannot
CreatorCreate a market (strike, lock time, reading time, fee up to 5 %, optional cap). Claim the fee once the market resolves.Change, pause or cancel the market. Take a fee from a void market. Touch any stake. Decide the outcome.
StakerStake HYPE on YES or NO until the lock, on either side, several times. Claim a payout if your side wins, or a full refund if the market is void.Unstake or move a stake. Claim twice. Claim for someone else.
Reader (any plain wallet)Record the pool price once per open 10-minute slot, then call settle(). A creator or a staker can be a reader too.Choose the price (it is read from the pool at that block). Record from a contract. Record twice in a slot, or outside the slots.
Oddva (us)Nothing on chain. OddvaPoolHouse has no owner, no admin key, no platform fee, no pause and no upgrade.Resolve, void, cancel or change a market. Move or freeze anyone's HYPE.

How money moves

  1. 01Stakes are native HYPE sent with stake(id, side). Minimum 0.0001 HYPE. If the market has a cap, both sides together cannot pass it.
  2. 02Resolved: fee = pool × feeBps / 10,000 (rounded down) goes to the creator. Each winning stake gets stake × (pool − fee) / winning side (rounded down). Losing stakes get 0.
  3. 03Void: every stake comes back in full and the fee is 0.
  4. 04Nothing is pushed. Each person calls claim() (or claimFee()) when they want; there is no deadline and nothing expires.
  5. 05Rounding leaves at most 1 wei per winning stake in the contract. It stays there; nobody can take it.

When a market is void

  1. 01One side is empty when staking closes. settle() can void it from the lock time on.
  2. 02Any of the three reading slots closes with no reading. settle() voids it once that slot has passed.

There is no other way to void, cancel or reverse a market. A strike equal to the median reading resolves YES (“at or above”).

What can go wrong

  • You can lose your whole stake. Being right can still return less than you staked when your side is crowded and the fee is higher than the other side's share.
  • The price comes from one Uniswap v4 pool. Someone with enough capital can push it during a reading slot. The median of three slots means they must hold it through at least two of them, but a thin pool can still be moved; check the cost on the price page against what a market holds, and use the cap.
  • If nobody records a reading in a slot, the market voids. The keeper script in the repository can be run by anyone to record readings.
  • Late stakes change everybody's payout until the lock. The preview shows the effect; it cannot know what others will add.
  • Smart contracts can fail in ways tests miss. Stake only what you can afford to lose. Nothing here is advice to stake.

Contract and source

OddvaPoolHouse
written and tested, not deployed yet
Price source
PoolManager 0xE2e105d3F7209A9DA11f83cCf3E7398a753823F1, pool 0xb3032695ffb0a66e6342876dd2386835471466cb2bb70f341947d98a69e265cc
Tests
Unit, fuzz, invariant (contract balance = everything still owed) and fork tests against this pool on Elysium.
Check it yourself
/api/proof compares the bytecode on chain with this build.