Interest Rate Swap
An interest rate swap in DeFi lets two parties exchange fixed-rate and variable-rate yield exposure without moving the underlying principal.
Key Takeaways
- An interest rate swap is a contract where two parties exchange fixed and variable interest payments on a notional principal that never changes hands, enabling each side to manage rate exposure without buying or selling the underlying asset.
- In DeFi, protocols like Pendle use yield tokenization to replicate swap mechanics: splitting yield-bearing tokens into Principal Tokens (fixed leg) and Yield Tokens (variable leg) that trade on an AMM.
- Interest rate swaps help hedge unpredictable yield farming returns, speculate on rate direction, and build fixed-income products on-chain: a critical missing piece for institutional DeFi adoption.
What Is an Interest Rate Swap?
An interest rate swap is a financial derivative contract in which two parties agree to exchange streams of interest payments over a set period. The most common form is the fixed-for-floating swap: Party A pays a predetermined fixed rate, while Party B pays a variable rate that resets periodically based on a benchmark. Only the net difference between the two payment streams changes hands. The underlying principal amount (called the "notional") is used purely for calculation and is never transferred.
In traditional finance, interest rate swaps are the largest derivatives market in the world. According to the Bank for International Settlements, interest rate derivatives reached $548 trillion in notional outstanding at the end of 2024, with plain-vanilla interest rate swaps accounting for roughly 81% of that total. Corporations use them to convert floating-rate debt into predictable fixed payments. Banks use them to align the duration of their assets and liabilities. Speculators use them to bet on the direction of rates with minimal upfront capital.
In decentralized finance, the same concept applies but solves a different problem. DeFi yields are inherently variable: a staking protocol paying 5% today might pay 2% next week. Lending protocols adjust rates algorithmically based on utilization, sometimes swinging dramatically within hours. Interest rate swap mechanisms on-chain allow participants to lock in fixed yields or take leveraged positions on variable yield, bringing the predictability that institutional capital requires.
How It Works
Traditional Finance Mechanics
A standard fixed-for-floating interest rate swap follows a straightforward structure. Consider two parties and a $100 million notional:
- Party A agrees to pay a fixed rate of 4% annually on $100 million ($4 million per year)
- Party B agrees to pay a floating rate tied to a benchmark (currently SOFR in USD markets) on the same $100 million
- At each settlement date, only the net difference is exchanged: if the floating rate is 5%, Party B owes $5 million and Party A owes $4 million, so Party B pays the $1 million difference to Party A
- The $100 million notional never moves: it exists only as the reference amount for calculating payments
Swaps are governed by ISDA Master Agreements and, since post-2008 reforms, most standardized swaps must be centrally cleared through a clearinghouse to reduce counterparty risk.
DeFi: Yield Tokenization as a Swap
DeFi protocols recreate swap economics through a different mechanism: yield tokenization. Instead of two parties signing a bilateral contract, a protocol splits a yield-bearing token into tradeable components.
Pendle Finance, the dominant protocol in this space, works as follows:
- A yield-bearing asset (stETH, aUSDC, USDe) is wrapped into a Standardized Yield (SY) token
- The SY token is split into a Principal Token (PT) and a Yield Token (YT), both with a fixed expiry date
- The PT trades at a discount to the underlying: buying PT at a 5% discount with six months to maturity locks in roughly 10% annualized fixed yield
- The YT entitles its holder to all variable yield generated by the underlying asset until expiry, then expires worthless
- Both PT and YT trade on Pendle's time-decay AMM, which adjusts pricing as maturity approaches
The market-determined discount on PT is the implied fixed rate. Buying PT is economically equivalent to receiving fixed in a traditional swap. Buying YT is equivalent to receiving floating: a leveraged bet that actual variable yield will exceed the implied rate.
Example: Locking a Fixed Yield
Suppose a user holds stETH earning a variable staking yield currently around 3.5% APY. They want predictability for the next six months:
Underlying asset: stETH (variable ~3.5% APY)
Action: Wrap stETH → SY-stETH → split into PT-stETH + YT-stETH
PT price: 0.975 ETH (2.5% discount, 6 months to maturity)
Implied fixed APY: ~5.1% annualized
Strategy A (lock fixed): Sell YT, hold PT → guaranteed ~5.1% APY
Strategy B (bet on variable): Sell PT, hold YT → leveraged exposure to stETH yield
Strategy C (provide liquidity): LP the PT/SY pair on Pendle AMM → earn trading feesIf the user chooses Strategy A, they receive ~5.1% annualized regardless of how stETH's actual yield fluctuates over the next six months. This is the on-chain equivalent of entering the fixed leg of an interest rate swap.
Other DeFi Approaches
Beyond yield tokenization, other approaches have been tried:
- Voltz Protocol built a concentrated-liquidity virtual AMM for synthetic interest rate swaps, processing over $20 billion in cumulative notional before sunsetting in 2026
- Notional Finance pioneered fixed-rate lending using fCash (zero-coupon bond) tokens on Ethereum before winding down operations in 2024
- IPOR publishes a DeFi benchmark interest rate index and offers swap contracts, though adoption has remained modest
The market has largely converged on yield tokenization as the approach that scales. Pendle controls an estimated 50-60% of the DeFi yield tokenization market, with a TVL that peaked above $13 billion in 2025 during the liquid restaking and USDe seasons.
Use Cases
Hedging Variable DeFi Yields
The primary use case mirrors traditional finance: converting unpredictable income into fixed returns. A DAO treasury earning variable yield on its stablecoin reserves can buy PT tokens to lock in a known return for budgeting purposes. A yield farmer concerned about declining rates can hedge by selling their variable yield exposure (YT) and holding fixed (PT).
Speculating on Rate Direction
Traders who believe DeFi lending rates or staking yields will rise can buy YT tokens, gaining leveraged exposure to the variable rate. Because YT tokens are priced at a fraction of the underlying asset, they offer capital-efficient exposure: capital efficiency that would be difficult to achieve by simply depositing into a lending pool. Conversely, traders expecting rates to fall buy PT, locking in today's rates before they decline.
Building Fixed-Income Products On-Chain
Institutional investors and protocol treasuries require predictable returns. Yield-bearing stablecoins and PT tokens together enable the construction of fixed-income portfolios entirely on-chain. Pendle's Boros extension, launched in August 2025, further expanded the market by tokenizing perpetual futures funding rates, opening an entirely new asset class for on-chain fixed-income products.
Managing Borrowing Costs
Borrowers on variable-rate lending protocols face the risk of sudden rate spikes when utilization increases. Interest rate swap mechanisms allow borrowers to effectively cap their borrowing costs by taking the opposite position: if rates rise, their swap position compensates for the increased borrowing expense.
Why Fixed Rates Are Hard in DeFi
Understanding why interest rate swaps matter in DeFi requires understanding why fixed rates are structurally difficult to offer:
- No benchmark rate exists: traditional finance has central bank rates (Fed Funds, ECB) and accepted benchmarks (SOFR). DeFi has no universally agreed reference rate, making fixed-rate pricing harder
- Rates adjust per-block: protocols like Aave and Compound set rates algorithmically based on pool utilization, creating swings from 4% to 12% within days
- Liquidity fragmentation: fixed-rate products require separate liquidity pools for each maturity date, spreading available liquidity thin across many time horizons
- Borrower preference: DeFi borrowers favor variable rates because they can exit positions instantly without penalty, conflicting with fixed-rate commitment
- Risk absorption: offering a fixed rate means someone must absorb rate variability. In TradFi, dealer banks do this at scale. In DeFi, bootstrapping this market-making function has proven difficult
These challenges explain why yield tokenization (Pendle's approach) has outperformed synthetic swap protocols: rather than requiring active market makers to quote two-sided swap rates, it lets the AMM discover the implied fixed rate through supply and demand for PT and YT tokens.
Traditional vs. DeFi Interest Rate Swaps
| Dimension | Traditional Finance | DeFi |
|---|---|---|
| Market size | ~$469 trillion notional (mid-2024) | Low single-digit billions in TVL |
| Benchmark rate | SOFR, EURIBOR (standardized) | No universal benchmark |
| Counterparty risk | Mitigated by central clearing (CCPs) | Replaced by smart contract risk |
| Settlement | Periodic (quarterly/semi-annual) | Continuous yield accrual or at maturity |
| Access | Institutional only (ISDA required) | Permissionless, any wallet |
| Tenor | 1 year to 30+ years | Typically 3 to 12 months |
| Mechanism | Bilateral OTC contract | Yield tokenization or synthetic AMM |
Risks and Considerations
Smart Contract Risk
DeFi interest rate products add layers of smart contract dependency. A yield tokenization protocol relies on the security of the underlying yield source (e.g., Lido for stETH), the wrapping contract (SY layer), the splitting mechanism, and the AMM. A vulnerability in any layer can lead to loss of funds. Protocol audits mitigate but do not eliminate this risk.
Liquidity Risk
Unlike the deep dealer markets in traditional interest rate swaps, DeFi liquidity pools for PT and YT tokens can be thin, especially for longer maturities or less popular underlying assets. Low liquidity means higher slippage when entering or exiting positions, and the possibility that a position cannot be unwound at a fair price.
Basis Risk
The implied fixed rate derived from PT/YT pricing may not perfectly track the actual variable yield of the underlying asset. Market sentiment, speculation, and liquidity conditions can cause the implied rate to diverge from realized yields, creating basis risk for hedgers who rely on close correlation between the two.
Oracle and Price Feed Risk
Some DeFi rate products depend on oracles to report yield rates or asset prices. Manipulated or stale price feeds can lead to incorrect valuations, mispriced swaps, or exploitable arbitrage opportunities. Flash loan attacks targeting oracle inputs remain a concern across DeFi derivatives.
Maturity Mismatch
DeFi interest rate products typically offer short tenors (3 to 12 months) compared to traditional swaps that can extend 30 years or more. Users needing longer-duration hedges must roll positions at each maturity, incurring transaction costs and exposure to changing implied rates at each renewal.
Why It Matters
Interest rate swaps are the backbone of traditional fixed-income markets. Bringing this functionality on-chain is essential for DeFi to mature beyond speculative trading into a credible financial infrastructure. For stablecoin yield strategies and protocol treasuries, the ability to lock in predictable returns is not a luxury: it is a prerequisite for institutional adoption.
For Bitcoin-native ecosystems, the growth of yield tokenization in BTC-denominated markets opens the door to fixed-income products built on Bitcoin L2s. As stablecoin infrastructure like USDB enables yield-bearing dollar exposure on Bitcoin rails, on-chain interest rate management will become increasingly relevant for builders in this ecosystem.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.