Magpie Protocol
  • Magpie Protocol
    • What is Magpie solving?
      • What is DeFi?
    • Magpies Key Features
      • Use Cases
    • FLY
      • xFLY & FLY33
  • 📶Supported Networks
  • Guides
    • 📖Glossary of DeFi Terms
    • 👜Connect Wallet
    • 🔄On-Chain Swap
    • 🔀Cross-Chain Swap
    • 🔂Swap configuration
    • 🥚Magpie Boosts
    • 📒Transaction History
    • 💲Portfolio
  • Media Kit
  • 👩‍💻Developers
    • Magpie Contracts
      • MagpieCCTPBridge
      • MagpieCelerBridgeV2
      • MagpieRouterV3
      • MagpieStargateBridgeV3
      • LibAsset
      • LibBridge
      • LibRouter
    • Smart Contracts Audit
    • Deployments
    • API Reference
      • On chain swap
      • Cross chain swap
      • Requesting and Using API Key
Powered by GitBook
On this page
  1. Developers
  2. Deprecated Magpie Contracts
  3. MagpieAggregator Diamond Proxy
  4. Multicall

MulticallFacet

Last updated 1 year ago

The purpose of this contract is to serve as a facet in a Diamond contract that allows for batch execution of multiple delegatecalls using the multicall function.

multicall():

The multicall function enforces that the caller is the contract owner and then delegates the execution to the LibMulticall.multicall function, which handles the execution of multiple delegatecalls to different facets.

Input:

Field
Type
Description

an array of function selectors

an array of data that needs to be fed into the selectors

👩‍💻
selectors
bytes4[] 
data
bytes[]