Bundlers let you run multiple onchain operations in one atomic transaction—approvals, wrapping, supply, borrow, and more—so users complete flows in a single step and you save gas. For user-facing apps on Morpho, using a bundler is the recommended approach.Documentation Index
Fetch the complete documentation index at: https://berachain-422fce37-feat-nodes-section-reno.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
For details, see the Bundler3 contract.
Why use bundlers
- Simpler UX: Users can open leveraged positions or deposit into vaults in one transaction instead of many.
- Lower gas: One transaction costs less than several separate ones.
- Atomicity: If any step fails, the whole transaction reverts so users never end up in a half-complete state (e.g. tokens approved but not supplied).
Supported operations
Bundlers support:- Tokens: ERC20 approvals (including permit/permit2), wrap/unwrap native assets, transfers
- Bend markets: Supply, supplyCollateral, borrow, repay, withdraw
- Bend vaults: Deposit and withdraw (ERC-4626 vaults)
- Public Allocator:
reallocateToto move liquidity between markets - Rewards: Claim from the Universal Rewards Distributor (URD)
- Swaps: DEX aggregator swaps