How Noxfly works
Noxfly is a prediction-market application for time-bound rounds on a reference price. It has two market types, Direction and Range. It does not open leveraged positions, and a prediction can lose its full stake.
Status: Built for Elysium, deployment pending. The contracts are written and tested locally. They are not deployed on Elysium, so no round is live and no transaction can be sent from the app.
Overview
A round asks one question about one asset at one moment. Everyone who answers stakes into a shared pool. When the round ends, the pool, after a fee, is shared among the stakes on the outcome that turned out to be right.
- Direction: will the final reference price be above or below the starting price recorded when the round opened?
- Range: will the final reference price be inside or outside a range fixed when the round opened?
Every parameter of a round, including its fee rate, is written to the contract when the round is scheduled and cannot change afterwards. Target-touch markets (did the price reach a level at any time during the round) are not part of this release: they need reliable observation throughout a round, which this design does not provide.
Round lifecycle
Scheduled → Open → Locked → Awaiting settlement → Settled, or Void.
- Scheduled. The round exists with all of its parameters. No prediction is accepted.
- Open. The starting price has been recorded. Predictions are accepted until the betting cutoff.
- Locked. The cutoff has passed. The pools are final: nothing can be added, changed or withdrawn.
- Awaiting settlement. The settlement time has passed and the final price has not been recorded yet.
- Settled. The final price is recorded, the fee is fixed and winners can claim.
Timing
- Rounds of a market start on whole multiples of its duration, in UTC (a 15-minute market starts on the quarter hour).
- Betting is open for the first 20% of a round. This is a product parameter in
config/markets.json(bettingShareBps), copied into each market when it is created; the contract also refuses any market whose betting window is longer than half its duration. - The exact cutoff is published on every round and enforced by the contract to the second. Betting never runs until the moment of settlement.
- The starting price must be recorded within a short opening grace period, and the final price within a settlement grace period. Past either, the round can only be voided.
| Round | Betting window | Opening grace | Settlement grace |
|---|---|---|---|
| 15 minutes | 3 min | 90 s | 60 min |
| 1 hour | 12 min | 180 s | 60 min |
| 4 hours | 48 min | 300 s | 120 min |
| 1 day | 288 min | 600 s | 360 min |
Void conditions
A void round refunds every stake in full and takes no fee. A round becomes void only for one of these reasons, each recorded on the round:
- Cancelled before opening. The round was withdrawn before it opened. It never held a stake.
- No valid starting observation. No valid starting observation was recorded within the opening grace period, so the round never accepted predictions.
- No valid final observation. No valid final observation was recorded within the settlement grace period. A later price is never used in its place.
- Final price equal to the starting price. The final price was exactly the starting price, so neither Up nor Down won.
- No funded opposing outcome. One of the two outcomes held no stake, so there was nothing to win or lose.
- Voided by the administrator. The administrator voided the round before settlement. Voiding only makes stakes refundable.
An outcome nobody staked on never triggers a redistribution: if either outcome is unfunded when the round ends, there is nothing to win or lose and the round is void.
Market rules
Direction
- Up wins if the final price is above the starting price.
- Down wins if the final price is below the starting price.
- If the two are exactly equal, the round is void and every stake is refunded.
Range
- Two boundaries are computed from the starting price when the round opens (starting price minus and plus a fixed percentage) and never change.
- Inside wins if
lower ≤ final price ≤ upper. Both boundaries are included. - Outside wins otherwise.
- This is a closing-range market: only the final price counts. The price may leave the range during the round and come back.
Range widths in the launch configuration, as a percentage of the starting price on each side:
| Asset | 15 minutes | 1 hour | 4 hours | 1 day |
|---|---|---|---|---|
| BTC Bitcoin | ± 0.15% | ± 0.35% | ± 0.7% | ± 1.8% |
| ETH Ethereum | ± 0.2% | ± 0.45% | ± 0.9% | ± 2.4% |
| SOL Solana | ± 0.25% | ± 0.55% | ± 1.1% | ± 3% |
| HYPE Hyperliquid | ± 0.3% | ± 0.7% | ± 1.4% | ± 3.8% |
These widths are a proposal, chosen so that both outcomes are plausible for the duration. They are fixed per market on chain when the market is created.
Pool and fee math
All amounts are integers in the collateral’s base units. Let W be the total winning stakes, L the total losing stakes, P = W + L, and f the round’s fee rate.
F = min(P × f, L) the fee, taken once at settlement total return of a stake s = s × (P − F) / W rounded down net profit = total return − s
- The fee rate is 2% in the launch configuration. It is a proposal: the rate is copied into a round when the round is scheduled and cannot change afterwards. The contract refuses any rate above 5%.
- Because the fee is capped at the losing pool, a winning stake is always returned in full at the least.
- Each payout is rounded down to a base unit. What rounding leaves behind is less than one base unit per winning position; it is added to the protocol fee balance when the last winning position is claimed.
- The fee is applied once per round. Void rounds pay no fee.
- The minimum stake is 1 USDC in the launch configuration.
Estimates use the current pool and may change before betting closes. An estimate assumes your outcome wins and that nobody adds another prediction. The app separates four figures: total return (stake included), net profit, the protocol fee and gas, which is paid separately in the network’s gas coin.
“Pool share” is the part of a round’s pool that sits on an outcome. It describes the stakes placed so far. It is not a probability.
Settlement trust model
Three things are kept apart.
- Display prices. Charts and current prices in the app come from Hyperliquid’s public API, fetched by your browser. They decide nothing.
- Settlement authority. The contract accepts a starting or final price only from an account holding its reporter role. That is a trusted role. The contract cannot see an outside price, and a transaction on its own does not prove that a reported price was correct.
- Evidence. With every price, the reporter submits the public record it was read from. The record is emitted in the transaction and its hash is stored with the round, so anyone can fetch the same record from the source again and compare.
The observation rule
hyperliquid.perp.candle-close.v1: The close of the candle that ends at the timestamp: the last traded price on the Hyperliquid perpetual before that moment. It is read only after the source shows a trade at or after the timestamp, when the candle can no longer change. Any candle interval that ends at that timestamp closes on the same trade, so a round that settles on the hour stays checkable through the one-hour candle after the one-minute candle has left the public history.
What the contract enforces
- Only the reporter role can record a price, once per observation.
- The starting price must be reported within the opening grace period, so a round cannot open on a stale price.
- An observation must refer to its scheduled timestamp. An earlier or a later price is refused.
- After the settlement grace period nobody can settle the round any more, and anyone can void it.
- A settled result cannot be changed.
What it does not enforce
- That the reported number equals the source’s number. A dishonest or faulty reporter could report a wrong price. The evidence makes that detectable after the fact; it does not prevent it.
- That the source itself is right. It is one venue’s last traded price, which a single trade can move for a moment.
When the reporter fails
If the source is unreachable or returns no candle, the reporter reports nothing and tries again until the round’s deadline. It never substitutes another price. After the deadline the round is voided and stakes are refunded.
What administrators can and cannot do
- They cannot withdraw stakes or unclaimed winnings. Only the fee balance can be withdrawn, by a separate treasury role.
- They cannot change a round after it is scheduled or alter a settled result.
- Pausing stops new rounds and new predictions. Settlement, voiding, claims and refunds keep working while paused.
- The default administrator can void a round that is not settled, which makes every stake refundable. It moves no funds.
Elysium documents a chain-native reader of HyperCore prices that would remove the need for a trusted reporter. Its documentation says it ships in a network upgrade after mainnet; when this was last checked it was not available, so this release does not depend on it.
Settlement receipts
Every resolved round has a receipt built from its on-chain record. It contains:
- Round ID, market type, reference asset and reference-price source.
- The starting price, or the range boundaries.
- The betting cutoff and the scheduled settlement time.
- The actual observation timestamp and the final observed price.
- The outcome, or the reason the round is void.
- The pool totals and the applied fee.
- The evidence documents and the transaction references, when the event log can be read.
A receipt states two checks and only when they were made: whether an evidence document hashes to the commitment stored with the round, and, when you press “Run the observation again”, whether the public source still returns the same price. A receipt is never labelled “verified”. Receipts can be exported as JSON (noxfly.receipt.v1).
Position Companion
An optional, read-only page. You enter a public Hyperliquid address; your browser asks Hyperliquid’s public API for its open perpetual positions, and the page lists the Noxfly rounds open on the same assets with a simplified scenario estimate.
- It never asks for a private key, a seed phrase, a signature or a trading permission, and it cannot place an order.
- Reading an address does not authorize anything. Anyone can read any address.
- The estimate separates the perp profit or loss, the prediction stake, the potential prediction return and the combined figure, and states its assumptions. It is not protection: a prediction can lose its full stake.
Network and deployment status
| Network | Elysium (Kinetiq), an Arbitrum Orbit chain that settles to HyperEVM. Official network details |
|---|---|
| Chain ID | 99901 |
| Gas coin | HYPE |
| Public RPC | https://rpc.elysium.kinetiq.xyz |
| Explorer | elysium.kinetiq.xyz |
| Collateral | USDC (6 decimals) · 0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65 |
| Market contract | Not deployed |
| Audit | None. The contracts are unaudited. |
This is Kinetiq’s Elysium (chain 99901). It is unrelated to other networks that use the same name.
While the market contract is not deployed, the app shows no rounds, no positions and no receipts on Elysium, and every transaction is disabled. Nothing is simulated in their place.
Local sandbox
The project includes a development mode that runs the real contracts on a chain on your own machine with a valueless test token. A keeper schedules rounds there and reports real public prices, so the whole lifecycle can be exercised. It is started with pnpm dev:local, shows a permanent “Local sandbox · no real funds” banner and is never part of a production build.
Risks
- A prediction that does not win loses its full stake.
- The contracts are unaudited and may contain errors.
- Settlement depends on a trusted reporter and on a single price source, as described above.
- Pool-based returns are not known in advance: they depend on the pools when betting closes.
- Nothing here is financial advice or a forecast. Check whether prediction markets are permitted where you live before using them.