Swapping and fees
A swap on Elydex goes straight to the Universal Router in your own transaction. There is no aggregator and no router contract of ours: pools are the Uniswap v4 pools on Elysium, quoted through the V4 Quoter at the moment you ask.
Routes
For each pair the app checks direct pools and routes through HYPE, and takes the best quote. The list of pools comes from an indexer that walks the PoolManager's Initialize events; the prices and quotes come from the chain, never from the indexer.
The fee
Elydex takes 0.25% of the output token, shown on the ticket before you sign. In the transaction it is a pay-a-portion command on the router: your swap, then a transfer of 0.25% of the output to the treasury, then a sweep of the rest to you. The minimum you accept is enforced on that sweep, so the fee can never eat your minimum.
| Command | What it does |
|---|---|
V4_SWAP | The v4 exact-in swap, single-hop or routed |
PAY_PORTION | Sends the fee, in the output token, to the treasury |
SWEEP | Sends the rest to your wallet, reverts under your minimum |
ERC-20 inputs
When you pay with an ERC-20 the app first asks for two allowances: the token to Permit2, then Permit2 to the Universal Router. Native HYPE needs neither.
Elydex