Settlement
TL;DR: At maturity, all positions are settled based on the difference between Fixed Yield and actual Variable Yield. This guide covers the settlement process, what to expect, and how to collect your returns.
What is Settlement?
Settlement is the process of closing positions at maturity and distributing PnL:
┌─────────────────────────────────────────────────────────────┐
│ SETTLEMENT PROCESS │
├─────────────────────────────────────────────────────────────┤
│ │
│ At maturity: │
│ │
│ 1. Oracle reports final Variable Yield for the term │
│ 2. Protocol calculates each position's cashflow │
│ 3. Profitable positions receive funds │
│ 4. Losing positions have funds deducted │
│ 5. LP positions return any remaining liquidity │
│ 6. Margin (± PnL) is returned to users │
│ │
└─────────────────────────────────────────────────────────────┘When Can You Settle?
Check Maturity
Settlement Math
The Formula
FY Position Example
VY Position Example
Executing Settlement
Step 1: Verify Maturity
Step 2: Call settlePosition
Step 3: Check Final Balance
Negative Cashflow (Losses)
When You Lose
If your cashflow is negative (VY moved against you):
Settler Exchange
If your margin is insufficient:
LP Position Settlement
LP-Specific Considerations
LP positions are settled differently:
Example: LP Settlement
Multiple Positions
Settling All Positions
If you have multiple positions in the same pool:
Multiple Pools
For positions across multiple pools:
After Settlement
Withdraw Your Funds
After settling, withdraw your margin:
What If You Don't Settle?
Positions don't auto-settle. If you don't call settlePosition:
Your funds remain in the protocol
You can settle anytime after maturity
No penalty for delayed settlement
Anyone can call settlement on your behalf (but you receive the funds)
Settlement Events
Monitoring Settlement
Complete Settlement Flow
Key Takeaways
Settlement happens after maturity — Pool must reach termEndTimestamp
Call settlePosition() — Settlement is not automatic
Cashflow = FY contribution + VY contribution — Based on token balances
Losses deducted from margin — May trigger settler exchange
Withdraw after settling — Funds remain in protocol until withdrawn
Next Steps
Getting Started — Start a new position
Risk Management — Understand settlement risks
Math Formulas — Detailed settlement math
Last updated

