The endAccountGermination function transitions an account's germinating stalk and roots to active balances. It uses lastMowedSeason and currentSeason parameters to determine the transition period. The function currently lacks validation checks for these parameters.
The omission of parameter validation could precipitate a spectrum of non-conformant behaviors, such as:
Activation of germinating values for out-of-sequence seasons, leading to incorrect ledger entries for stalk and root balances.
Unintended state mutations resulting from operations based on invalid season parameters, causing systemic discrepancies in germination tracking.
manual review
Verifying that currentSeason is not less than lastMowedSeason, ensuring chronological consistency.
Ensuring that currentSeason is within the upper boundary of the contract's seasonality framework
Confirming that lastMowedSeason meets or exceeds the lower boundary of the contract's seasonality framework.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.