Operation Bag System

The Operation Bag is a frontend-side queue of operations that are prepared for execution. It allows users to easily perform a list of operations (such as swapping, bridge, stake) into a single executable stream (ZAPs) without having to manage a complex chain or protocol logic.


🧩 What It Does

  • Collects operations like Swap, Bridge, Stake

  • Executes the operations in order, handling chain switching and approvals automatically


🧠 Why It’s Important

  • Simplifies complex actions into one click

  • Makes UX more intuitive for users unfamiliar with chain logic

  • Powers features like “Zap” or bundled flows


⚙️ How It Works (Flow)

  1. User initiates one or more operations

  2. Operations are added to the Operation Bag

  3. Preview and simulate results (quotes, expected outcomes)

  4. On confirmation, steps are executed in order

  5. Real-time status updates per operation

Last updated