Skip to content

[study] (2h) Rebalance internal swap — slippage bounds, sandwich-resistance #110

@ozpool

Description

@ozpool

Goal

Understand the rebalance step most exposed to sandwich MEV.

Time estimate

2h (single focused session)

Prerequisites

Study plan (in order)

  1. [25 min] PRISM_PRD_v1.0.html §Day 3 rebalance logic — internal swap
  2. [25 min] Slippage bound derivation: based on external price (oracle) or last-known fair mid
  3. [25 min] Abort semantics: rebalance reverts cleanly if slippage breached → keeper absorbs gas loss; better than sandwiched
  4. [25 min] Sandwich-resistance: attacker must sandwich across an unlock — doable only with flash-loan; slippage bound limits damage
  5. [20 min] Skip condition: if current ratio already within δ of target, no swap needed

Total: 120 min

After studying, you can

  • Explain slippage-bound derivation
  • Describe abort behavior on slippage breach
  • List sandwich-resistance properties
  • Articulate swap-skip conditions

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

Metadata

Metadata

Assignees

Labels

priority:p2-polishNice-to-have / polishstatus:readyScoped and ready to pick uptype:studyArchitecture study / research issue

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions