Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.
The Fertilizer Facet handles the minting of Fertilizer and Beans paid to Fertilizer holders.
Call Functions
function claimFertilized(uint256[] calldata ids, LibTransfer.To mode)
external
payable;
WIP
function mintFertilizer(
uint128 amount,
uint256 minLP,
LibTransfer.From mode
) external payable;
WIP
function addFertilizerOwner(
uint128 id,
uint128 amount,
uint256 minLP
) external payable;
WIP
function payFertilizer(address account, uint256 amount) external payable
WIP
View Functions
function totalFertilizedBeans() external view returns (uint256 beans);
WIP
Return Value
Type
Description
function totalUnfertilizedBeans() external view returns (uint256 beans);
WIP
Return Value
Type
Description
function totalFertilizerBeans() external view returns (uint256 beans);
WIP
Return Value
Type
Description
function getFertilizer(uint128 id) external view returns (uint256);
WIP
function getNext(uint128 id) external view returns (uint128);
WIP
function getFirst() external view returns (uint128);
WIP
function getLast() external view returns (uint128);
WIP
function getActiveFertilizer() external view returns (uint256);
WIP
function isFertilizing() external view returns (bool);
WIP
function beansPerFertilizer() external view returns (uint128 bpf);
WIP
Return Value
Type
Description
function getHumidity(uint128 _s) external pure returns (uint128 humidity);
WIP
Return Value
Type
Description
function getCurrentHumidity() external view returns (uint128 humidity);
WIP
Return Value
Type
Description
function getEndBpf() external view returns (uint128 endBpf);
WIP
Return Value
Type
Description
function remainingRecapitalization() external view returns (uint256);
WIP
function balanceOfUnfertilized(address account, uint256[] memory ids)
external
view
returns (uint256 beans);
WIP
Return Value
Type
Description
function balanceOfFertilized(address account, uint256[] memory ids)
external
view
returns (uint256 beans);
WIP
Return Value
Type
Description
function balanceOfFertilizer(address account, uint256 id)
external
view
returns (IFertilizer.Balance memory);
WIP
function balanceOfBatchFertilizer(
address[] memory accounts,
uint256[] memory ids
) external view returns (IFertilizer.Balance[] memory);
WIP
function getFertilizers()
external
view
returns (Supply[] memory fertilizers);
WIP
Return Value
Type
Description
Events
event SetFertilizer(uint128 id, uint128 bpf);
WIP
Last updated