The mintFertilizer() function is used to purchase Fertilizer from the Barn Raise with the Barn Raise token. According to Protocol, when beginBarnRaiseMigration() is invoked to begin the process of migration of the Barn Raise to a new Well, the following is required:
However, the mintFertilizer() does not implement a check for the status of Barn Raise migration.
This function facilitates the minting of fertilizer tokens in exchange for LP tokens after adding liquidity with Barn Raise tokens.
As it can be seen, there is no explicit check for migration completion before the function mintFertilizer() proceeds with its execution.
This omission allows for purchase of Fertilizer during migration which is against protocol.
Manual Review
Add a migration completion check within the function or ensure that migration completion is checked before calling mintFertilizer()
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.