Opening a duel
Pick any Hyperliquid perp, a side, a leverage and a clock between one minute and seven days, then send your stake in HYPE. The contract checks the market exists and that your leverage is within that market's Hyperliquid limit, reading both straight from HyperCore. Your stake stays in the contract.
You can leave the seat open to anyone or name one wallet that is allowed to take it. Until someone joins, you can cancel and get the full stake back.
Joining
The challenger sends exactly the same stake and picks their own side and leverage. The only thing they can't pick is an exact copy of your position, because that could only ever draw.
The duel starts in the block the join lands in. The entry price for both players is Hyperliquid's mark price in that block, read by the contract from HyperEVM's built-in price precompile. From here on, neither position can change.
The bell
Once the clock runs out, anyone can ring the bell. The contract reads Hyperliquid's mark price again in that block and scores both players on it. Whoever is ahead usually rings it straight away, and the arena shows the button the moment it's allowed.
The maths
Shorts flip the sign. A return can't go below −100%: past that point your stake is simply gone, and nothing more is owed. The higher return wins. Equal returns are a draw and both stakes go back in full, with no fee.
Example: long 10x on BTC from —, rung at —, returns —.
Duels are scored at the bell only. A position that dips below −100% during the round and recovers before the bell is still scored at the bell.
Payout and rating
The winner receives both stakes minus the protocol fee, in the same transaction as the bell. The fee is set on chain and the contract refuses anything above 5%. If a payment can't be delivered to a wallet, it is kept for that wallet to claim from the wallet menu.
Ratings use Elo with K = 32, starting at 1200, updated in that same transaction. Beating a higher rated player earns more; losing to a lower rated one costs more. Ratings never drop below 100.
If a duel can't be settled
If Hyperliquid stops reporting a price for a market, the bell can't ring. Three days after the bell, anyone can refund both players in full instead. No rating changes.
What the owner can and can't do
- Can pause new duels. Joining, settling, cancelling and refunds keep working while paused.
- Can change the fee, never above 5%.
- Can change the minimum stake and the fee address, and hand ownership to another address.
- Can't move, freeze or redirect any stake. No function in the contract sends escrowed HYPE anywhere except back to the players or to the winner.
- Can't change a duel's prices, positions or result.
Risks worth knowing
- Ranked duels use real HYPE. You can lose your whole stake.
- The bell price is the mark price in the block the bell is rung, which can be a few seconds after the clock runs out.
- Smart contracts can have bugs. The contract is short, tested and readable on the explorer, but no code is risk free.
- Rivol is independent and not affiliated with Hyperliquid.