The beginBarnRaiseMigration
function is responsible for initiating the migration of the Barn Raise to a new Well. As mentioned in the comments, the migration process in completed by calling UnripeFacet.addMigratedUnderlying
.
However, after initiating the migration using LibFertilizer.beginBarnRaiseMigration(well)
, it does not complete the migration process by calling UnripeFacet.addMigratedUnderlying
. Without completing the migration process, the Unripe liquidity will not be added to the new Well, and the Fertilizer purchases may remain disabled, leading to potential disruptions or inconsistencies in the system.
See the following code:
Incomplete migration could lead to inconsistencies in the system, such as missing liquidity in the new Well or disabled functionality for Fertilizer purchases. Users may experience difficulties or limitations in interacting with the system, leading to frustration or loss of trust in the platform.
Manual Review
To address the issue and ensure a complete migration process, you should modify the beginBarnRaiseMigration
function to call UnripeFacet.addMigratedUnderlying
after call to LibFertilizer.beginBarnRaiseMigration(well)
is successful.
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.