Fees, rebates, and matching context
Where fees go after a match
Each matching cycle collects fees from executed flow. That pool is then allocated across:- Minority-side rebates - paid to positions on the thinner side of the book, proportional to size where applicable
- The insurance fund
- A protocol remainder
E: it scales with executable imbalance up to configured caps. When the book is balanced in that cycle, E = 0 and the rebate-oriented slice does not apply in the same way.
Executable imbalance (why the “sides” matter)
Executable notional is constrained by oracle thresholds:- Opening long and closing short require threshold ≥ oracle price
- Opening short and closing long require threshold ≤ oracle price
L = openingLong + closingShort and short-side depth S = openingShort + closingLong, then uses I = |L − S| as the imbalance input that feeds into entitlement and allocation.