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
  • Diamond Cut
  • View Functions
  • Events
Edit on GitHub
Export as PDF
  1. Protocol
  2. Diamond

Diamond Cut Facet

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

The Diamond Cut Facet is used by the owner to upgrade Beanstalk.

Call Functions

Diamond Cut

function diamondCut(
    FacetCut[] calldata _diamondCut,
    address _init,
    bytes calldata _calldata
) external override;

Add, replace, and/or remove any number of functions and optionally execute a function with delegatecall. Can only be called by the owner of Beanstalk.

Parameter
Type
Description

_diamondCut

FacetCut[]

Contains the facet addresses and function selectors.

_init

address

The address of the contract or facet to execute _calldata.

_calldata

bytes

A function call, including function selector and arguments (_calldata is executed with delegatecall on _init).

View Functions

None.

Events

None.

PreviousDiamondNextDiamond Loupe Facet

Last updated 8 months ago

🌾