Beans cannot be migrated from L1 to L2 due to incorrectly hardcoded EXTERNAL_L1_BEANS
value.
BeanL1RecieverFacet.sol has the recieveL1Beans
function to receive migrated beans from the migrateL2Beans
function in BeanL2MigrationFacet.sol
The function, before minitng to the receiver, first attempts to check if the EXTERNAL_L1_BEANS
variable is >= the s.sys.migration.migratedL1Beans
and reverts if it's not.
The issue however is that the EXTERNAL_L1_BEANS
parameter is hardcoded to 0, as a result the function will always fail if a user attempts to migrate more than 0 beans.
Migration cannot occur.
Manual Review
Recommend updating the parameter to a more reasonable value, or allowing it to be setable by the admin.
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.