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)
| Contract | Address | What it does |
|---|---|---|
ParlayMarket | Not deployed yet | Places, activates and settles tickets. Prices targets and multipliers. |
PoolVault | Not deployed yet | Holds all $PRELYSIUM. ERC-4626 vault with a withdrawal queue. |
| $PRELYSIUM | Not deployed yet | The ERC-20 token. |
SignedTickOracle | Not deployed yet | Verifies signed price ticks. |
What players call
| Function | Who | Effect |
|---|---|---|
placeTicket(legs, window, stake, minPayout) | Player | Moves the stake into the Pool and reserves the payout. Reverts if the payout is below minPayout. |
activate(id, ticks) | Anyone | Fixes entry prices and targets from ticks stamped at the entry second. |
proveHits(id, ticks) | Anyone | Marks legs as touched. Pays the owner when the last leg is marked. |
settle(id) | Anyone | Closes a ticket that ran out of time, 5 minutes after expiry. |
refundUnactivated(id) | Anyone | Returns the stake of a ticket whose entry price never arrived. |
quote(legs, window, stake) | View | Payout, multiplier and target distances for a ticket before placing it. |
Parameters at launch
| Parameter | Value |
|---|---|
| Legs per ticket | 3 to 10 |
| Clocks | 5, 15, 60 min |
| Stake | 1 to 1,000,000 |
| Largest payout, share of free Pool liquidity | 2% |
| Fee on lost stakes | 12.5% |
| Share of that fee burned | 80% |
| Delay from placing to entry price | 2 s |
| Time allowed to deliver the entry price | 120 s |
| Time allowed to prove a touch after expiry | 300 s |
| Oldest usable volatility reading | 1 h |
| Pool withdrawal cooldown | 2 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.