All pages
Powered by GitBook
1 of 1

Loading...

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

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

Parameter
Type
Description
Return Value
Type
Description

Execute multiple AdvancedFarmCalls.

Parameter
Type
Description
Return Value
Type
Description

View Functions

None.

Events

None.

data

bytes[]

The encoded function data for each of the calls.

results

bytes[]

The return data from each of the calls.

data

AdvancedFarmCall[]

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

results

bytes[]

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

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