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

Farm Facet

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

The Farm Facet allows Farmers to perform multiple Beanstalk functions calls in a single transaction using farm calls.

Call Functions

Farm

function farm(bytes[] calldata data)
    external
    payable
    withEth
    returns (bytes[] memory results);

Loops through the list of encoded selectors in data and performs a delegateCall on each of them.

Parameter
Type
Description

data

bytes[]

The encoded function data for each of the calls.

Return Value
Type
Description

results

bytes[]

The return data from each of the calls.

Advanced Farm

function advancedFarm(AdvancedFarmCall[] calldata data)
    external
    payable
    withEth
    returns (bytes[] memory results);

Execute multiple AdvancedFarmCalls.

Parameter
Type
Description

data

AdvancedFarmCall[]

The encoded function data for each of the calls to make to this contract.

Return Value
Type
Description

results

bytes[]

The results from each of the calls passed in via data.

View Functions

None.

Events

None.

PreviousFarmNextDepot Facet

Last updated 8 months ago

🌾