Contracts

Three contracts run the protocol: the market that holds ticket logic, the Pool that holds the money, and the oracle that vouches for prices.

Addresses on Elysium (chain ID 99901)

ContractAddressWhat it does
ParlayMarketNot deployed yetPlaces, activates and settles tickets. Prices targets and multipliers.
PoolVaultNot deployed yetHolds all $PRELYSIUM. ERC-4626 vault with a withdrawal queue.
$PRELYSIUMNot deployed yetThe ERC-20 token.
SignedTickOracleNot deployed yetVerifies signed price ticks.

What players call

FunctionWhoEffect
placeTicket(legs, window, stake, minPayout)PlayerMoves the stake into the Pool and reserves the payout. Reverts if the payout is below minPayout.
activate(id, ticks)AnyoneFixes entry prices and targets from ticks stamped at the entry second.
proveHits(id, ticks)AnyoneMarks legs as touched. Pays the owner when the last leg is marked.
settle(id)AnyoneCloses a ticket that ran out of time, 5 minutes after expiry.
refundUnactivated(id)AnyoneReturns the stake of a ticket whose entry price never arrived.
quote(legs, window, stake)ViewPayout, multiplier and target distances for a ticket before placing it.

Parameters at launch

ParameterValue
Legs per ticket3 to 10
Clocks5, 15, 60 min
Stake1 to 1,000,000
Largest payout, share of free Pool liquidity2%
Fee on lost stakes12.5%
Share of that fee burned80%
Delay from placing to entry price2 s
Time allowed to deliver the entry price120 s
Time allowed to prove a touch after expiry300 s
Oldest usable volatility reading1 h
Pool withdrawal cooldown2 h

What the owner can do

  • Add markets, switch a market on or off, and set correlation between groups.
  • Offer or withdraw multipliers and set their target distance.
  • Change the parameters above within limits fixed in code: the fee on lost stakes cannot exceed 50%, the entry delay cannot exceed 60 seconds, the withdrawal cooldown cannot exceed 7 days.
  • Replace the oracle, the treasury address, and the keepers that refresh volatility.
  • Pause new tickets. Open tickets still resolve while paused.
  • Refund an open ticket, returning its stake to the owner of the ticket.

What the owner cannot do

  • Withdraw or move Pool funds. Only ticket settlement and depositor withdrawals move tokens out.
  • Change a ticket after it is placed. Its legs, target distances and payout are fixed.
  • Point the Pool at a different market contract. That link is set once.
  • Stop depositors from queueing or completing a withdrawal.

Source and tests

The contracts are Solidity 0.8.28, built with Foundry on OpenZeppelin 5. The test suite covers the full ticket lifecycle, pricing, the withdrawal queue, oracle signatures, and a fuzz test that the Pool always holds enough to pay every open ticket. They have not been audited by a third party.