Field Facet
The Field Facet is where Beans are Sown.
Call Functions
Sow
function sow(
uint256 beans,
uint256 minTemperature,
LibTransfer.From mode
)
external
payable
returns (uint256 pods);Sow Beans in exchange for Pods.
beans
uint256
The number of Beans to Sow.
minTemperature
uint256
The minimum Temperature at which to Sow.
pods
uint256
The number of Pods received.
Sow With Min
Sow Beans in exchange for Pods. Use at least minSoil.
beans
uint256
The number of Beans to Sow.
minTemperature
uint256
The minimum Temperature at which to Sow.
minSoil
uint256
The minimum amount of Soil to use; reverts if there is less than this much Soil available upon execution.
pods
uint256
The number of Pods received.
Harvest
Harvest Pods from the Field.
plots
uint256[]
List of Plot IDs to Harvest.
View Functions
Pod Index
Returns the total number of Pods ever minted.
uint256
The total number of Pods ever minted.
Harvestable Index
Returns the index below which Pods are Harvestable.
uint256
The index below which Pods are Harvestable.
Total Pods
Returns the number of outstanding Pods. Includes Pods that are currently Harvestable but have not yet been Harvested.
uint256
The number of outstanding Pods.
Total Harvested
Returns the number of Pods that have ever been Harvested.
uint256
The number of Pods that have ever been Harvested.
Total Harvestable
Returns the number of Pods that are currently Harvestable but have not yet been Harvested.
uint256
The number of Pods that are currently Harvestable but have not yet been Harvested.
Total Unharvestable
Returns the number of Pods that are not yet Harvestable.
uint256
The number of Pods that are not yet Harvestable.
Plot
Returns the number of Pods remaining in a Plot.
account
address
The account that owns a Plot.
index
uint256
The ID of a Plot.
uint256
The number of Pods remaining in a Plot.
Total Soil
Returns the total available Soil.
uint256
The total available Soil.
Yield
Returns the current yield (aka "Temperature") offered by Beanstalk when burning Beans in exchange for Pods.
uint32
The current yield offered by Beanstalk when burning Beans in exchange for Pods.
Temperature
Returns the current Temperature, the interest rate offered by Beanstalk in exchange for Sowing Beans.
uint256
The current Temperature.
Max Temperature
Returns the Maximum Temperature that Beanstalk is willing to offer this Season.
uint256
The Maximum Temperature.
Remaining Pods
Returns the remaining Pods that could be issued this Season.
uint256
The remaining Pods that could be issued this Season.
Events
Sow
Emitted from LibDibbler.sowNoSoil when an account creates a Plot. A Plot is a set of Pods created in from a single sow or fund call.
account
address
The account that Sowed Beans for Pods.
index
uint256
The Place in Line of the Plot.
beans
uint256
The amount of Beans burnt to create the Plot.
pods
uint256
The amount of Pods associated with the created Plot.
Harvest
Emitted when account claims the Beans associated with Harvestable Pods.
account
address
The account that owns the plots.
plots
uint256[]
The indices of Plots that were Harvested.
beans
uint256
The amount of Beans transferred to account.
Pod Listing Cancelled
Emitted when a Pod Listing is Cancelled.
account
address
The account that created the Pod Listing.
index
uint256
The index of the Plot listed.
Last updated