For the complete documentation index, see llms.txt. This page is also available as Markdown.

Fertilizer Facet

The Fertilizer Facet handles the minting of Fertilizer and Beans paid to Fertilizer holders.

Call Functions

Claim Fertilized Beans

function claimFertilized(uint256[] calldata ids, LibTransfer.To mode)
    external
    payable;

WIP

Parameter
Type
Description

ids

uint256[]

WIP

mode

To

WIP

Mint Fertilizer

function mintFertilizer(
    uint128 amount,
    uint256 minLP,
    LibTransfer.From mode
) external payable;

WIP

Parameter
Type
Description

amount

uint128

WIP

minLP

uint256

WIP

mode

From

WIP

Add Fertilizer Owner

WIP

Parameter
Type
Description

id

uint128

WIP

amount

uint128

WIP

minLP

uint256

WIP

Pay Fertilizer

WIP

Parameter
Type
Description

account

address

WIP

amount

uint256

WIP

View Functions

Total Fertilized Beans

WIP

Return Value
Type
Description

beans

uint256

WIP

Total Unfertilized Beans

WIP

Return Value
Type
Description

beans

uint256

WIP

Total Fertilizer Beans

WIP

Return Value
Type
Description

beans

uint256

WIP

Get Fertilizer

WIP

Parameter
Type
Description

id

uint128

WIP

Return Type
Description

uint256

WIP

Get Next

WIP

Parameter
Type
Description

id

uint128

WIP

Return Type
Description

uint128

WIP

Get First

WIP

Return Type
Description

uint128

WIP

Get Last

WIP

Return Type
Description

uint128

WIP

Get Active Fertilizer

WIP

Return Type
Description

uint256

WIP

Is Fertilizing

WIP

Return Type
Description

bool

WIP

Beans Per Fertilizer

WIP

Return Value
Type
Description

bpf

uint128

WIP

Get Humidity

WIP

Parameter
Type
Description

_s

uint128

WIP

Return Value
Type
Description

humidity

uint128

WIP

Get Current Humidity

WIP

Return Value
Type
Description

humidity

uint128

WIP

Get End BPF

WIP

Return Value
Type
Description

endBpf

uint128

WIP

Remaining Recapitalization

WIP

Return Type
Description

uint256

WIP

Balance of Unfertilized

WIP

Parameter
Type
Description

account

address

WIP

ids

uint256[]

WIP

Return Value
Type
Description

beans

uint256

WIP

Balance of Fertilized

WIP

Parameter
Type
Description

account

address

WIP

ids

uint256[]

WIP

Return Value
Type
Description

beans

uint256

WIP

Balance of Fertilizer

WIP

Parameter
Type
Description

account

address

WIP

id

uint256

WIP

Return Type
Description

IFertilizer.Balance

WIP

Balance of Batch Fertilizer

WIP

Parameter
Type
Description

accounts

address[]

WIP

ids

uint256[]

WIP

Return Type
Description

IFertilizer.Balance[]

WIP

Get Fertilizers

WIP

Return Value
Type
Description

fertilizers

Supply[]

WIP

Events

Set Fertilizer

WIP

Parameter
Type
Description

id

uint128

WIP

bpf

uint128

WIP

Last updated