Skip to main content

IRegenerationIndexRules

IRegenerationIndexRules

Interface for the RegenerationIndexRules contract, which is responsible for calculating a standardized regeneration score.

calculateScore

function calculateScore(uint32 treesResult, uint32 biodiversityResult) external view returns (uint32)

Calculates a regeneration score based on tree and biodiversity metrics.

A pure function for on-the-fly score calculation. It can be called by any contract to determine regeneration scores based on a consistent formula.

Parameters

NameTypeDescription
treesResultuint32A numerical result or score related to tree metrics.
biodiversityResultuint32A numerical result or score related to biodiversity metrics.

Return Values

NameTypeDescription
[0]uint32The final calculated regeneration score.