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)
User initiates one or more operations
Operations are added to the Operation Bag
Preview and simulate results (quotes, expected outcomes)