This chapter lists what Elyra charges, who receives it and how a referrer earns a share. Elyra charges on what you put in or what a position earns, not on what you take out, with one exception for structured notes. Bounties, which pay for public upkeep calls, come last.
- A zap costs 25 bps of what you put in. A spot trade on the Trade page's Uniswap path costs 25 bps of the output. An Elyra Router swap pays only the pools' own fees.
- On perps, Elyra's fee is a Hyperliquid builder fee you approve once, at most 0.1 % of notional by Hyperliquid's rule.
- Managed positions pay 10 % of the swap fees they earn and nothing on principal. The only fee on principal is 50 bps for leaving a structured note before maturity.
- Elyra pools send 20 % of each swap fee to the FeeCollector and leave the rest to their LPs.
- If you were referred, your referrer earns 20 % of every FeeRouter fee you generate. The link is permanent. Vault and note fees never pay a referrer.
- Points are an off-chain ledger. Nothing is promised about them.
What you pay
| Action | Fee | Taken from | Referrer credited |
|---|---|---|---|
| Swap in an Elyra pool | the pool's fee, 20 % of which is the protocol share | your input | none: the share goes straight to the FeeCollector |
| Swap through the Elyra Router | no Elyra fee beyond the pools' | - | - |
| Spot trade on the Uniswap path (Trade) | 25 bps | the output | the trader's, once booked (see below) |
| Zap into a Uniswap range | 25 bps | the input | yours |
| Keeper harvest or rebalance | 10 % | the fees collected | the position owner's |
| Range order fill or cancel | 10 % | the fees the order earned | the order owner's |
| LP or hedged vault harvest or rebalance | 10 % | the fees collected | none: the vault names itself |
| Structured note exit before maturity | 50 bps | the gross amount withdrawn | none: the note names itself |
| Pre-market perp open, close or liquidation | 30 bps | the notional | the trader's |
| Perp order on Hyperliquid | Elyra's builder fee, the rate the ticket shows, never above what you approved | the trade, in USDC | the trader's, once booked (see below) |
Elyra pool fees depend on the pool. A DAMM pool charges a base fee of 5 to 100 bps plus a volatility surcharge, at most 500 bps in total, and a new pool may add an anti-snipe fee that starts as high as 5000 bps and falls to the base fee within an hour. Stock pools charge 30 bps while the market is open, 150 bps while it is closed and 500 bps when the price feed is stale (deploy values; the owner can set each asset up to 1000 bps). A DLMM pair charges a base fee plus a variable fee, capped at 10 %. Elyra pools has the detail.
Some actions pay no Elyra fee at all: a deposit into any vault, a withdrawal from an LP, hedged, DLMM or stock vault, a DLMM limit order, and a launch's pre-launch vault. Some fees are not Elyra's: Hyperliquid charges its own trading fees on every perp order, and bridging USDC between Elysium and HyperEVM costs gas on both sides.
Fees come out of earnings
When a keeper, a vault or a range order closes or re-centres a Uniswap position, the contract compares two numbers: decreaseLiquidity reports the principal alone, and collect pays out principal plus fees. The 10 % and any bounty apply only to the difference, so a position that has earned nothing pays nothing and no harvest reaches the liquidity itself.
Inside one split the order is fixed: the protocol share first, then the caller's bounty, then everything left to the owner.
How a fee is booked
Every fee except the Elyra pools' protocol share passes through FeeRouter, a contract with no owner and two fixed addresses: the ReferralRegistry it reads and the treasury it pays, which is the FeeCollector.
- The paying contract transfers the fee to the router, then reports it with
take(token, amount, user). A fee paid in native HYPE arrives withtakeNative(user)instead; a v4 zap paid in HYPE uses it. takeis public, so the router checks the report against its balance. It accepts the fee only if the balance covers everything already owed plus the new amount, and revertsFeeNotReceivedotherwise.- If
useris bound to a referrer, 20 % (REFERRAL_BPS) is credited to that referrer and the rest to the treasury. The router emitsTaken. - A referrer calls
claim(token)to pull their own balance (the Claim buttons on the Portfolio page's Referrals tab). Anyone can callflush(token)to push the treasury's balance to the FeeCollector, where buyback and burn takes over.
The Uniswap-path skim
On the Trade page, a spot trade that goes through the Uniswap Universal Router includes a PAY_PORTION step that sends 25 bps of the output to the FeeRouter as a plain transfer; the minimum you receive is net of it. A transfer reports nothing by itself, so Elyra's spotFeeBooker bot books it with take(token, amount, trader):
- Every 5 minutes it reads, for WHYPE, USDC and each EQX stock token, the FeeRouter's balance less
accounted(token). When nothing is unbooked it stops there. - Otherwise it reads that token's transfers from the Universal Router to the FeeRouter over about the last day, and the FeeRouter's
Takenevents over the same blocks. A transfer followed by aTakenof the same token and amount is already booked. - The trader is the address that sent the transaction, and only when that transaction called the Universal Router itself. A trade sent through another contract, such as a smart-contract wallet, names nobody, and its fee stays unbooked.
- It books a fee once it is worth more than its configured minimum (WHYPE at the HYPE price, USDC as a dollar, a stock token at its market's mark) and three times the gas of booking it, while the unbooked balance still covers it.
If you were referred, your referrer is then credited 20 %, as with any FeeRouter fee, and the rest is the treasury's: the fee sweeper flushes it to the FeeCollector and converts it once the FeeCollector has a route for that token (WHYPE needs none). Until a fee is booked it is an unbooked balance that neither claim nor flush can move; take is public, and whoever calls it names the user. When the Elyra Router pays more on a live quote, the trade goes through it instead and no skim applies. A build with no FeeRouter in its manifest turns the skim off.
Perp builder fees
Hyperliquid pays builder fees to Elyra's builder account there, not on Elysium. An owner-run sweep withdraws them, brings the USDC to Elysium and books it through the FeeRouter with take(token, amount, trader), one row per trader in proportion to the builder fees their fills paid, so the amounts add up to exactly what was withdrawn. From then on it is an ordinary FeeRouter fee: 20 % to the trader's referrer, the rest to the treasury. Fees wait on Hyperliquid between sweeps.
Referrals
ReferralRegistry holds two write-once links and has no owner.
- Your code. On the Portfolio page's Referrals tab, register 1 to 8 letters or digits; the app upper-cases the code and stores it as
bytes8withregister. An address owns one code for life, and a code belongs to one address. - Your referrer. Opening
/ideas?ref=CODEon this site offers a one-clickbindif you have no referrer yet. A binding never changes, and you cannot refer yourself. - Who counts as the user. Each contract names the user behind a fee: the zapper, the position owner rather than the bot that harvested, the order owner rather than the keeper that filled, the trader. A vault or a note names itself and can never bind, so its fees go to the treasury in full. A vault depositor is not referred through the vault.
- Earnings. The indexer adds each
Takenreferrer share to the referrer's per-token total, andGET /referral/:addressprices those totals into one dollar figure and lists the tokens. The Referrals tab of the Portfolio page readsFeeRouter.claimable(token, you)on chain for each of those tokens, plus HYPE and every listed token, and shows a Claim button next to each balance. Claim sendsFeeRouter.claim(token)from the referrer wallet: one token per transaction, paid straight to that wallet.
Bounties
A bounty pays the gas of a public call nobody else is paid to make. The contract pays it to msg.sender before the owner's share, and it never passes through the FeeRouter.
| Call | Bounty | Paid from |
|---|---|---|
PositionKeeper.harvest, rebalance | the owner's bountyBps, at most 3 % | the fees collected, after the 10 % |
LPVault.harvest, rebalance | 0.5 % | the fees collected, after the 10 % |
RangeOrders.fill | 1 % | the order's output |
PreMarketPerp.liquidate | 1 % | the margin left after the loss and the fee; the rest goes to the insurance fund |
Seed and graduated vaults write bountyBps 50 into their policy, matching what the vault pays. Elyra's keeper bot sends a bounty-paid call only when the bounty is at least 3 times the gas, and skips it when it cannot price the bounty. An untaken bounty costs nothing; the fees stay in the position.
The pre-market perp fee
PreMarketPerp charges 30 bps of the notional on open, and reverts TooSmall if that fee would reach the collateral. It charges again on close and on liquidation, capped at collateral plus PnL and zero when that is zero or less, so a fee never deepens bad debt. INSURANCE_SHARE_BPS (3333) sends one third of each fee to the insurance fund and two thirds to the FeeRouter in the trader's name. Graduation and pre-market perps covers the market.
Points
Points live in the API's Postgres, not on chain: 1 point per dollar of volume, 5 per dollar of fees earned, and volume counts double for 7 days after you post an idea. Totals are recomputed from the points_events ledger rather than incremented. GET /points/:address returns the total and its parts (volume, fees, thesisBonus); POST /points/recompute rebuilds every total behind ADMIN_SECRET.
A background job reads indexed Elyra activity every few minutes and writes it to the ledger: swaps through the Elyra Router, pre-market perp opens and voluntary closes (liquidations earn nothing) count as volume; keeper harvests, range-order fills, vault harvests (split by share) and the 20 % referral share count as fees earned. Each row's id comes from its on-chain event, so a re-read never counts twice, and amounts are priced in USD when the job reads them. Plain Uniswap fee collections are not Elyra activity and earn nothing. rank is your place among the stored totals. Nothing is promised about points.
Reference
Constants
| Constant | Value | Where |
|---|---|---|
ZAP_FEE_BPS | 25 | ElyraZapV3, ElyraZapV4 |
SPOT_FEE_BPS | 25 | apps/web/lib/trade/spot.ts |
PROTOCOL_FEE_BPS | 1000 | PositionKeeper, LPVault, RangeOrders |
EARLY_EXIT_BPS | 50 | StructuredVault |
TAKER_FEE_BPS, INSURANCE_SHARE_BPS, LIQ_BOUNTY_BPS | 30, 3333, 100 | PreMarketPerp |
REFERRAL_BPS | 2000 | FeeRouter |
MAX_BOUNTY_BPS, HARVEST_BOUNTY_BPS, KEEPER_BOUNTY_BPS | 300, 50, 100 | PositionKeeper, LPVault, RangeOrders |
protocolFeeShareBps | 2000, at most 5000 | ProtocolConfig |
FeeRouter and ReferralRegistry errors
| Error | When |
|---|---|
FeeNotReceived | take with the zero address as token, or a balance that does not cover the report |
NothingToClaim | claim or flush with nothing owed |
NativeTransferFailed | the HYPE recipient refused the payment |
ZeroCode, CodeTaken, AlreadyRegistered | register with an empty code, someone else's code, or a second code |
UnknownCode, SelfReferral, AlreadyBound | bind to a code nobody owns, to your own code, or a second time |
- FeeRoutertake, takeNative, claim, flush, the balance check
- ReferralRegistryregister and bind
- PositionKeeperfees-only split: protocol, bounty, owner
- RangeOrdersthe 10 % on earned fees and the fill bounty
- PreMarketPerpthe taker fee, the insurance third, the liquidation bounty
Elyra