Goal
Understand the rebalance step most exposed to sandwich MEV.
Time estimate
2h (single focused session)
Prerequisites
Study plan (in order)
- [25 min] PRISM_PRD_v1.0.html §Day 3 rebalance logic — internal swap
- [25 min] Slippage bound derivation: based on external price (oracle) or last-known fair mid
- [25 min] Abort semantics: rebalance reverts cleanly if slippage breached → keeper absorbs gas loss; better than sandwiched
- [25 min] Sandwich-resistance: attacker must sandwich across an unlock — doable only with flash-loan; slippage bound limits damage
- [20 min] Skip condition: if current ratio already within δ of target, no swap needed
Total: 120 min
After studying, you can
Tradeoff prompt for the architectural review
When should the internal swap be skipped entirely?
References
- PRISM_PRD_v1.0.html §Day 3
- PRISM CLAUDE.md Risk Posture
Goal
Understand the rebalance step most exposed to sandwich MEV.
Time estimate
2h (single focused session)
Prerequisites
Study plan (in order)
Total: 120 min
After studying, you can
Tradeoff prompt for the architectural review
When should the internal swap be skipped entirely?
References