Interior of the Pantheon, Rome by Giovanni Paolo Panini: the coffered dome and its open oculus
Interior of the Pantheon, Rome, Giovanni Paolo Panini, 1747. The Cleveland Museum of Art, Open Access
Mechanics

Inside The Fee Band

TL;DR: every hop of a cycle pays its pool's fee. A gap only pays when it is wider than the sum of those fees. We call that sum the fee band.

A gap between two pools looks like free money. Usually it is not. Buy the stock in the cheap pool and you pay that pool's fee on the way in; sell it in the rich pool and you pay that pool's fee on the way out. If the gap is smaller than the two fees together, the cycle loses, however wide the gap looks on a chart.

The Rule

At mid prices, a two-pool cycle pays when the gross gap beats the band:

gap > fee(buy pool) + fee(sell pool)

Longer routes add the fee of every pool they touch. The exact condition multiplies instead of adding: the cycle pays when the sell price over the buy price, times one minus each fee on the path, is more than one. For small fees the two agree closely, and the engine's quote settles it exactly anyway, because it runs the real swaps against the real pools.

Where The Fees Come From

Stock pools on Elysium live on two venues, and they set fees in different ways.

Uniswap v4: a fee per pool key

Every Uniswap v4 pool is named by a pool key: its two currencies, a fee, a tick spacing and a hook. The fee is part of the name. It counts hundredths of a basis point, so 100 in that field is one basis point, and v4 does not limit pools to a short list of tiers: any value is allowed. Two pools for the same stock and the same quote can differ only in their fee, and they are two separate markets with two prices.

Uniswap v4: dynamic fees from hooks

A pool key can also mark its fee as dynamic. Then there is no fixed number to read: the pool's hook decides the fee, and it can set a new one for each swap. A hook might charge more after a sharp move, more in one direction than the other, or less for small trades. That is its owner's design, not something the engine controls.

For arbitrage, a dynamic fee means the band is not a constant. A gap next to a dynamic-fee pool can clear the band at one moment and fall inside it the next, without either price moving. The app marks those pools as dynamic, and the scanner cannot rank them by fee alone. The quote is what counts: it runs the hook as part of the swap, so the fee it charges is in the number you see.

Ramses v3: fixed tiers

Ramses v3 is a concentrated-liquidity exchange in the Uniswap v3 style. Each pool is created with one fee tier from the set its factory allows, and that tier is part of what makes it a distinct pool. The fee belongs to the pool, not to the swap, so its share of the band can be read before you trade. The engine checks every Ramses pool on a route against the Ramses factory before it swaps, so a lookalike contract cannot stand in for a real pool.

An illustration, not data: three routes, each with its fee band as a bar and its gross gap as a mark. Route A's gap sits inside its band, route B's gap sits past it, and route C's band can grow or shrink because one pool has a dynamic fee. Route A Route B Route C gap inside the band · no trade gap past the band · pays dynamic fee · the band moves 0 wider
An illustration, not a reading. Bar: the fee band of the route. Mark: the gross gap. Dashed: how far a dynamic fee can stretch the band. A route pays only when the mark sits past the end of the bar.

The Extra Leg Across Quotes

A stock quoted in USDC in one pool and in HYPE in another needs a third hop to come home. Buy the stock with USDC, sell it for HYPE, then turn the HYPE back into USDC in the HYPE/USDC pool. That third pool charges its own fee, so a cross-quote route has a wider band than a same-quote route between the same two stock pools.

It also adds a second source of price impact. The HYPE/USDC pool has to absorb the size of the cycle too, so a cross-quote gap that pays at a small size can stop paying sooner as the size grows. Routes run up to 4 hops, and every one of them adds its fee to the band and its depth to the limit.

When The Band Breaks

Gaps open past the band when something moves one pool and not its neighbours: a large trade, a move in HYPE, a burst of bridged supply sold into one pool. That is when a cycle pays, and it pays only until the prices are pushed back to the edge of the band.

That is the whole shape of the trade. A cycle buys in the cheap pool and sells in the rich one until the next unit would lose. At that point the two prices still differ, by about the sum of their fees. Arbitrage does not make prices equal. It makes them agree to within their fees.

Size, Impact And Gas

The mid-price edge is the best case: the first dollar. Every dollar you cycle pushes the pools toward each other, so the edge shrinks as the size grows, and at some size the next dollar loses. The app looks for that size: it quotes a grid of sizes with one eth_call, then refines around the best one.

Then comes gas, paid in HYPE. On Elysium it is usually a few cents, but the profit has to clear it all the same. Last comes the protocol fee: 10% of what is left, so you keep 90%. Nothing is charged on the size, and nothing on a cycle that reverts.

Nuance