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
  • pause():
  • unpause():
  1. Developers
  2. Deprecated Magpie Contracts
  3. MagpieAggregator Diamond Proxy
  4. Pauser

PauserFacet

The PauserFacet contract provides an implementation of the IPauser interface, allowing the contract owner to pause and unpause the contract by invoking the corresponding functions.

pause():

The pause function is used to pause the contract's functionality. It enforces that only the contract owner can call this function, and upon successful verification, it updates the paused state variable and emits a corresponding event.

unpause():

The unpause function allows the contract owner to resume the functionality of the paused contract. It enforces that only the contract owner can call this function, and upon successful verification, it updates the paused state variable and emits a corresponding event.

Last updated 1 year ago

👩‍💻