The BeanL1RecieverFacet
contains an error where the maximum allowed migrated beans (EXTERNAL_L1_BEANS
) is set to zero, effectively preventing any L1 to L2 bean migration.
This constant is used in the recieveL1Beans
function to check if the total migrated beans exceed the maximum allowed:
With EXTERNAL_L1_BEANS
set to 0, this check will always fail as soon as any beans are migrated, causing the transaction to revert.
This completely breaks the L1 to L2 bean migration functionality. No beans can be transferred from L1 to L2, rendering the entire migration process non-functional. This could potentially halt or severely disrupt the planned migration of the Beanstalk protocol to L2.
Manual code review
Set the EXTERNAL_L1_BEANS
constant to the actual maximum number of beans that should be allowed to migrate from L1 to L2. The exact value should be determined based on the specific requirements of your migration process. You can also consider making this limit configurable by the contract owner or governance, allowing for adjustments if needed in the future.
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.