Funding Rate Calculation
Every 3 seconds, Calabi calculates the premium of each market, which represents the deviation of the impact price from the oracle price for the corresponding market using the formula: whereimpact_bid_t/impact_ask_tare the VWAP execution prices for a fixedimpact_notionalwalked against the bid/ask sides of the book at sampletoracle_tis the oracle price at that sample
Interest Rate Component
The interest rate is fixed at0.01% per 8-hour period (or 0.00125% per hour), reflecting the relative cost of holding USD versus the underlying asset. It’s blended against the realized premium and bounded by a clamp so it only matters near fair value:
where c bounds the interest term’s contribution and is equivalent to ±0.05%
Funding fees are capped at ±3% .