# Pegisium (3,3) > A dynamic-fee ve(3,3) exchange on Elysium (chain 99901), built on Uniswap v4 hooks. Each pool prices its swap fee from a reference it can prove. The flagship kHYPE/WHYPE pool reads Kinetiq's kHYPE to HYPE rate from HyperEVM: a swap that takes a stale price pays a fee sized to the gap, every other swap pays the low base fee. $PEG holders lock to vote for pools and earn those pools' fees in HYPE. ## How a fee is set - PegHook runs in beforeSwap. It compares the pool price with the reference (Kinetiq's rate less a small queue band, served by RateBook). - If the swap moves the pool toward the reference by more than the band, it pays the gap fee; otherwise it pays the base fee. - If the reference is stale (older than RateBook.maxAge), the pool falls back to a static fee. - Fees are in pips (1e-6). PegHook.quote(key, zeroForOne) returns the fee for a swap right now. ## Chain - Elysium, chain id 99901, gas in HYPE. RPC https://rpc.elysium.kinetiq.xyz. Explorer https://elysium.kinetiq.xyz. ## Contracts (Elysium 99901, verified) - PegHook 0xEb7316be9bf3733d34Ec50ee0a8867a0B021a0C8: Uniswap v4 hook. Sets each swap's fee in beforeSwap from the pool price and the reference. ABI https://pegisium.com/abi/PegHook.json - RateBook 0x06eFAe8fc540D2e0d383Cc7408ccEa797f8B9A6C: Holds Kinetiq's kHYPE rate as posted from HyperEVM, with its age and freshness. ABI https://pegisium.com/abi/RateBook.json - PegRouter 0xAd1310746184aCDE00194200eCEcaa54b958FbFf: Wallet swaps on the flagship pool, HYPE in or out, with a price bound and a refund of unfilled input. ABI https://pegisium.com/abi/PegRouter.json - VoteEscrow 0x34346191F51C2bB7c9EA46Fb21454150c565fe6e: Locks $PEG for 1 to 52 weeks and gives lock weight. ABI https://pegisium.com/abi/VoteEscrow.json - Gauges 0x681D479fe788d96de39810050f167a75a89B6C96: Records votes per pool and per epoch, and LP incentives. ABI https://pegisium.com/abi/Gauges.json - FeeRewards 0x2CA4BE133d6e0EB6014747BfcC423f59EB7F98E4: Pays voters their pools' fees in HYPE through merkle roots, claimable without a keeper. ABI https://pegisium.com/abi/FeeRewards.json - $PEG token 0x9eb09e63ebd711db46026697d10d9bccf35ad023 - Uniswap v4 PoolManager 0xE2e105d3F7209A9DA11f83cCf3E7398a753823F1, StateView 0x27eD73aE0652fdCf71d6793412A7525f32bE9dfE, Universal Router 0x1B341FDD55d56F8E08409A2C25DDFad93Eb03C1a - kHYPE 0x248888D396A546A69A188f3Deb476964e581E9d0, WHYPE 0xbA876237B0F021A6c6D852d6c26E107997cC5E81 - Kinetiq StakingAccountant on HyperEVM (999): 0x9209648Ec9D448EF57116B73A2f081835643dc7A ## Flagship pool - key: currency0 kHYPE, currency1 WHYPE, fee 0x800000 (dynamic), tickSpacing 1, hooks PegHook - pool id 0x58c220a4220b7a1b9d9861c5a737cb5ae28f66b5207052e0d0863caff7c71216 - zeroForOne = true sells kHYPE for WHYPE. Prices are HYPE per kHYPE. ## Read API (JSON, no key, CORS *) - GET https://pegisium.com/api/v1/live: Everything the site reads in one call: rate, reference, prices, fees from the hook, depth. - GET https://pegisium.com/api/v1/rate: Kinetiq's kHYPE rate on HyperEVM and the copy RateBook holds on Elysium, with its age. - GET https://pegisium.com/api/v1/pools: Every pool with its status; the flagship with its key, prices, gap, depth and both fees. - GET https://pegisium.com/api/v1/quote?price=1.029&ref=1.0278&side=sell: PegHook.quoteAt by eth_call: the fee the deployed hook charges at a pool price and reference. side is sell (kHYPE in) or buy. ref defaults to the live reference. - GET https://pegisium.com/api/v1/contracts: Chain, every deployed address with its explorer link and ABI URL, the flagship pool key. ## MCP - https://pegisium.com/mcp, Streamable HTTP, JSON-RPC 2.0, no key. - Tools: get_rate, list_pools, quote_fee(price, ref?, side), get_contracts, simulate_swap(from, direction, amount) which returns an unsigned PegRouter transaction. The server never signs. ## Docs - Developers: https://pegisium.com/developers - Docs: https://pegisium.com/docs, build guide https://pegisium.com/docs/sdk