Parity docs
What Parity is
Parity is an order board for large trades on Elysium that settle at the pool's own price without touching the pool. A maker escrows tokens to sell for HYPE, or HYPE to buy tokens, with a limit and an expiry. A taker crosses any part of the order at the current pool price.
The cross price
Prices come from PriceBook, which reads the Uniswap v4 pool's slot0 on Elysium and writes it with a timestamp when poked. A cross uses crossPrice(feed):
- the latest written price, which must come from an earlier block than the cross;
- only if the pool's price right now is within 1.5% of it.
Posting and crossing both poke PriceBook. If the latest price is stale or the pool drifted, the app writes a fresh price first and crosses in the next block.
Orders
| Field | Meaning |
|---|---|
| Side | Sell tokens for HYPE, or buy tokens with HYPE. |
| Amount | Tokens to sell, or HYPE to spend. Held by the contract until crossed or cancelled. |
| Limit | HYPE per token. A seller never sells below it; a buyer never pays above it. |
| Expiry | After it, no one can cross. The maker cancels to take back the rest. |
Fees
The taker pays 0.2% of the HYPE value, in HYPE. Makers pay nothing. Fees go to the treasury. Protocol fees are used to buy back and burn $PRTY.
Safety and risks
- The contracts are unaudited.
- Parity has no owner and no admin function.
- A pool price can be pushed for a moment; the earlier-block rule and the 1.5% drift guard limit this, and the maker's limit is always respected.
- Fee-on-transfer tokens are credited at what actually arrived.
Contracts
| Contract | Address |
|---|---|
| Parity | Deploying soon |
| PriceBook | Deploying soon |
| Treasury | Deploying soon |
Chain: Elysium (99901). Explorer: explorer.volta.family.
Parity
KNTQ
HYPE