Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.
The Season Facet contains the gm function and handles all logic for Season changes.
function sunrise() external payable returns (uint256);
Advances Beanstalk to the next Season, sending reward Beans to the caller's Circulating balance.
The number of Beans minted to the caller.
function gm(
address account,
LibTransfer.To mode
) public payable returns (uint256);
Advances Beanstalk to the next Season, sending reward Beans to a specified address and balance.
Indicates to which address reward Beans should be sent.
The number of Beans minted to the caller.
Returns the current Season number.
The current Season number.
Returns whether Beanstalk is Paused. When Paused, sunrise cannot be called.
Whether Beanstalk is Paused.
Returns the Season struct.
Returns whether Beanstalk started this Season above or below peg.
Whether Beanstalk started this Season above or below peg.
Returns the block during which the current Season started.
The block during which the current Season started.
Returns the expected Season number given the current block timestamp. The sunrise function can be called when seasonTime() > season().
The expected Season number given the current block timestamp.
Returns the Weather struct.
Returns the Rain struct.
Returns the Season of Plenty (SOP) rewards per Root for the given Season.
The Season to fetch SOP rewards per Root for.
The SOP rewards for the given Season.
Returns the cumulative deltaB across all pools on the Oracle Whitelist.
Return Value
Type
Description
Returns the deltaB for a given pool.
The address of the pool .
The deltaB for the given pool.
Returns the last Well oracle snapshot for a given Well.
The address of the pool to get the snapshot for.
Returns the last Curve oracle data snapshot for the BEAN:3CRV pool.
Return Value
Type
Description
Storage.CurveMetapoolOracle
Last Curve oracle data snapshot.
Emitted when the Season changes.
Emitted when Beanstalk pays Beans to the sunrise caller.
The address to which the reward Beans were sent.
The amount of Beans paid as a reward.
Emitted during Sunrise when Beans are distributed to the Field, the Silo, and Fertilizer.
The Season in which Beans were distributed.
The number of Beans distributed to the Field.
The number of Beans distributed to the Silo.
The number of Beans distributed to Fertilizer holders.
Emitted during Sunrise when Beanstalk adjusts the amount of available Soil.
The Season in which Soil was adjusted.
The new amount of Soil available.
Emitted when the Weather (now Temperature) changes.
The change in Temperature from the previous value.
Emitted when Beans are minted during the Season of Plenty.
The Season in which Beans were minted for distribution.
The amount of 3CRV which was received for swapping Beans.
The amount of Beans which were distributed to remaining Pods in the Field.