Upon each call to L2ContractMigrationFacet#addMigratedDepositsToAccount
global state variables are set to 0.
As it can be seen both of totalDeposited
and totalDepositedBdv
are initialized with value 0 and it is never increased. In the end of the function the global variables are set to these (0) values, ultimately resetting them.
This would later cause any withdraws to revert due to underflow.
Incorrect global variables, DoS on a lot of major functions
Manual review
Fetch the global variables and increase them
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.