Fertilizer Facet

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

function totalUnfertilizedBeans() external view returns (uint256 beans);

WIP

function totalFertilizerBeans() external view returns (uint256 beans);

WIP

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

function getHumidity(uint128 _s) external pure returns (uint128 humidity);

WIP

function getCurrentHumidity() external view returns (uint128 humidity);

WIP

function getEndBpf() external view returns (uint128 endBpf);

WIP

function remainingRecapitalization() external view returns (uint256);

WIP

function balanceOfUnfertilized(address account, uint256[] memory ids)
    external
    view
    returns (uint256 beans);

WIP

function balanceOfFertilized(address account, uint256[] memory ids)
    external
    view
    returns (uint256 beans);

WIP

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

Events

event SetFertilizer(uint128 id, uint128 bpf);

WIP

Last updated