Season Facet
Last updated
Last updated
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.
Advances Beanstalk to the next Season, sending reward Beans to the caller's Circulating balance.
Return Type | Description |
---|---|
Advances Beanstalk to the next Season, sending reward Beans to a specified address and balance.
Parameter | Type | Description |
---|---|---|
Return Type | Description |
---|---|
Returns the current Season number.
Returns whether Beanstalk is Paused. When Paused, sunrise
cannot be called.
Returns the Season struct.
Returns whether Beanstalk started this Season above or below peg.
Returns 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()
.
Returns the Weather struct.
Returns the Rain struct.
Returns the Season of Plenty (SOP) rewards per Root for the given Season.
Returns the cumulative deltaB across all pools on the Oracle Whitelist.
Returns the deltaB for a given pool.
Returns the last Well oracle snapshot for a given Well.
Returns the last Curve oracle data snapshot for the BEAN:3CRV pool.
Emitted when the Season changes.
Emitted when Beanstalk pays Beans to the sunrise
caller.
Emitted during Sunrise when Beans are distributed to the Field, the Silo, and Fertilizer.
Emitted during Sunrise when Beanstalk adjusts the amount of available Soil.
Emitted when the Weather (now Temperature) changes.
Emitted when Beans are minted during the Season of Plenty.
Return Type | Description |
---|---|
Return Type | Description |
---|---|
Return Type | Description |
---|---|
Return Type | Description |
---|---|
Return Type | Description |
---|---|
Return Type | Description |
---|---|
Return Type | Description |
---|---|
Return Type | Description |
---|---|
Parameter | Type | Description |
---|---|---|
Return Type | Description |
---|---|
Return Value | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Return Value | Description |
---|---|
Parameter | Type | Description |
---|---|---|
Type |
---|
Return Value | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|