Why deviation cannot answer the question
Deviation is what the maker controls and what the price band constrains, so it is the natural thing to publish. It just does not answer “is this worth taking”, for two independent reasons.Its sign flips with the side of the order
Its sign flips with the side of the order
A JPYC-offered order priced 0.80% below the oracle price is cheap JPYC — the taker hands
over less USDT than the market says, so they gain.A USDT-offered order priced 0.80% below the oracle price means the taker is handing over JPYC
too cheaply — so their edge is negative.Same −0.80%, opposite outcome. A reader who has not tracked which token is on offer cannot tell
the two apart.
It ignores the fee, which comes out of the taker's proceeds
It ignores the fee, which comes out of the taker's proceeds
An order sitting exactly on the oracle price is a 0.00% deviation and a −0.30% outcome at a
30 bps fee. Nothing about the deviation hints at that.
The definition
Edge is(value received − value paid) / value paid, with both legs valued at the oracle price:
The same spread, read both ways
At a 30 bps fee:
Two rows share a −0.80%-ish deviation and land on opposite sides of zero. One row is at the oracle
price exactly and still has negative edge. This is the reason the interface publishes edge instead.
Rondo’s book shows edge as the headline and keeps the raw deviation on hover — it remains the number
the maker sees, since it is what they control and what the band constrains.
Pegged orders are simpler
A pegged order has no stored price, and the contract prices every fill so the taker’s realised edge lands exactly on the maker’s premium. So:Partial fills quote their own outcome
Edge is a property of a rate, so a fixed order’s headline edge applies to any size taken from it. What changes with size is the absolute amount, not the percentage. Rondo’s fill ticket recomputes on the exact amounts being taken rather than reusing the headline, so a partial fill states its own result rather than inheriting a number computed for the whole order.Reproducing it
Use the following integer math and rounding. The extra1e4 scale preserves sub-basis-point detail:

