Pre/Post Expiry Exits
Unwind LP, BT, and CT positions to a single token or FW in one transaction, with different strategies pre- and post-expiry.
Key references: IPActionMiscV3.exitPreExpToToken/Fw, exitPostExpToToken/Fw.
Details
Goal: Unwind LP/BT/CT positions to a single token or FW.
Pre-expiry: Router first matches BT with CT for redemption (cheaper than swapping), then swaps any remaining unmatched BT or CT to FW via the AMM. Finally redeems FW to desired token.
Post-expiry: BT is sent to the CT contract.
CT.redeemBC()burns only BT (not CT). FW returned at currentbcIndexrate. Post-expiry yield accrual goes to treasury, not the redeemer.
Views and events
Views
Market:
isExpired(),readTokens(),observe(...).Lending:
getUserPositionif exiting borrow-adjacent strategies.
Events
Router:
ExitPreExpToToken,ExitPreExpToFw,ExitPostExpToToken,ExitPostExpToFw.Market:
Burn, subsequentSwapif executed.CT:
Burn(for BC redemption step).
Last updated