# Designing Pathwise-Perfect Hedges for Compounding Liabilities

**URL:** <https://research.nunchi.trade/t/designing-pathwise-perfect-hedges-for-compounding-liabilities/22>\
**Category:** Rate & Yield Primitives Research\
**Created:** [January 8, 2026, 4:31pm UTC](https://research.nunchi.trade/t/designing-pathwise-perfect-hedges-for-compounding-liabilities/22 "2026-01-08T16:31:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![basit](https://yyz1.discourse-cdn.com/flex011/user_avatar/research.nunchi.trade/basit/32/25_2.png) [@basit](https://research.nunchi.trade/u/basit)\
**Post date:** [January 8, 2026, 4:31pm UTC](https://research.nunchi.trade/t/designing-pathwise-perfect-hedges-for-compounding-liabilities/22/1 "2026-01-08T16:31:47Z")

</div>

![blog 117 (4)](https://canada1.discourse-cdn.com/flex011/uploads/nunchi/original/1X/99b01e356255200522ce2325e68a96864257ed83.jpeg)

**Posted by:** Nunchi Research

**Abstract:**  
A fundamental challenge in on-chain finance is hedging continuously compounding, variable-rate liabilities, such as those found in protocols like Aave. A standard linear interest rate swap provides an imperfect hedge, leading to basis risk as its PnL does not grow in lockstep with the non-linear, exponential growth of the debt. This paper details the methodology behind the Nunchi Borrow Rate Perpetual, which is engineered to provide a _“pathwise-perfect hedge”_ by tracking a compounding index rather than a raw rate.

**1. The Nunchi Approach: From Rate to a Compounding Index**

The innovation lies in what the perpetual contract tracks. Instead of the raw, instantaneous borrow rate (r\_t), the perpetual’s price is mapped to a **Cumulative Borrow Multiplier Index (J\_t)**.

- **Index Construction:** The index is constructed by integrating the annualized Aave variable borrow rate (r\_t) over time to create a cumulative log-index, K\_t, and then taking its exponential to create the direct multiplier J\_t.

```auto
Jt=exp⁡(∫0trsY ds) J_t = \exp\left(\int_0^t \frac{r_s}{Y} \, ds\right) Jt​=exp(∫0t​Yrs​​ds)

```

This J\_t index starts at J\_0=1 and grows exponentially, perfectly mirroring how a debt balance D\_0 compounds on Aave to become D\_t = D\_0 \* J\_t.

- **From Index to PnL:** The perpetual’s mark price is an affine transformation of this index. The infinitesimal PnL is directly proportional to the change in the index: dPnL\_t = N \* dJ\_t, where N is the notional. This direct mapping is the source of the perfect hedge property.

**2. Worked Example: A Pathwise Hedge**

- **Scenario:** A user borrows 1,000,000 USDC on Aave (D\_0) and simultaneously longs the AAVEBORROW-PERP with the same notional (N).

- **Assumptions:** The Aave borrow rate is constant at 5% APR for 90 days.

- **Aave Interest Cost:** After 90 days, the Borrow Multiplier Index J\_90 is ≈ 1.012422. The total interest accrued on the loan is:  
ΔD\_90 = $1,000,000 \* (1.012422 - 1) = $12,422.

- **Perpetual’s PnL:** The cumulative PnL of the long perpetual is PnL\_90 = N \* (J\_90 - 1). Since N = D\_0:  
PnL\_90 = $1,000,000 \* (1.012422 - 1) = $12,422.

**3. Conclusion**

The mark-to-market profit from the perpetual (+

```auto
12,422)exactlycancelstheinterestcostfromtheloan(−12,422) exactly cancels the interest cost from the loan (-12,422)exactlycancelstheinterestcostfromtheloan(−

```

12,422). Because the PnL is tied to the same compounding index J\_t that drives the debt, this hedge holds perfectly not just at the end of the period, but at every infinitesimal moment along the way.

This design methodology transforms a complex, protocol-level liability into a clean, continuously tradable, and perfectly hedgeable risk factor, representing a powerful new technique for the financialization of on-chain mechanics. We welcome peer review and discussion on this model.
