Beanstalk
  • Agronomics Handbook
  • Farmers' Almanac
  • Whitepaper
  • Contract Addresses
  • 🌱Overview
    • Introduction
    • Development Ethos
    • EIP-2535 Diamond
    • App Storage
    • Internal Balances
  • 🌾Protocol
    • Overview
    • Louper
    • Sun
      • Season Facet
    • Silo
      • Silo Facet
      • BDV Facet
      • Whitelist Facet
      • Convert Facet
      • Convert Getters Facet
      • Enroot Facet
      • Approval Facet
      • Metadata Facet
      • Migration Facet
      • Legacy Claim Withdrawal Facet
    • Field
      • Field Facet
      • Fundraiser Facet
    • Barn
      • Fertilizer Facet
      • Unripe Facet
    • Market
      • Marketplace Facet
    • Farm
      • Farm Facet
      • Depot Facet
      • Token Facet
      • Token Support Facet
      • Curve Facet
    • Diamond
      • Diamond Cut Facet
      • Diamond Loupe Facet
      • Ownership Facet
      • Pause Facet
  • 📜Misc.
    • Technical Recordings
    • Upgrade History
    • FAQ
    • Terminology Discrepancies
Powered by GitBook
On this page
  • Call Functions
  • Pause
  • Unpause
  • View Functions
  • Events
  • Pause
  • Unpause
Edit on GitHub
Export as PDF
  1. Protocol
  2. Diamond

Pause Facet

PreviousOwnership FacetNextUpgrade History

Last updated 6 months ago

Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.

The Pause Facet handles the Pausing and Unpausing of Beanstalk.

Call Functions

function pause() external payable;

Pause Beanstalk, which makes it such that the gm function cannot be successfully called. Only callable by the owner of Beanstalk.

function unpause() external payable;

Unpause Beanstalk, which allows the gm function to be successfully called at the top of the 2nd hour. The TWAP oracle and Season timer are reset as well.

View Functions

None.

Events

event Pause(uint256 timestamp);

Emitted when Beanstalk is Paused.

Parameter
Type
Description

timestamp

uint256

Timestamp of the current block when Beanstalk is Paused.

event Unpause(uint256 timestamp, uint256 timePassed);

Emitted when Beanstalk is Unpaused.

Parameter
Type
Description

timestamp

uint256

Timestamp of the current block when Beanstalk is Unpaused.

timePassed

uint256

How much time passed while Beanstalk was Paused.

🌾
Pause
Unpause
Pause
Unpause