You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertnotvault_hub.hasRole(bad_debt_master_role, NEW_VAULTS_ADAPTER), "New VaultsAdapter should not have BAD_DEBT_MASTER_ROLE on VaultHub before upgrade"
464
468
465
-
# Step 1.7. Check CSM module parameters before upgrade
assertcsm_module_before["stakeShareLimit"] ==CSM_MODULE_OLD_TARGET_SHARE_BP, "CSM module should have old stake share limit before upgrade"
468
488
assertcsm_module_before["priorityExitShareThreshold"] ==CSM_MODULE_OLD_PRIORITY_EXIT_THRESHOLD_BP, "CSM module should have old priority exit threshold before upgrade"
assertcsm_module_before["maxDepositsPerBlock"] ==CSM_MODULE_MAX_DEPOSITS_PER_BLOCK, "CSM max deposits per block should be unchanged before upgrade"
472
492
assertcsm_module_before["minDepositBlockDistance"] ==CSM_MODULE_MIN_DEPOSIT_BLOCK_DISTANCE, "CSM min deposit block distance should be unchanged before upgrade"
473
493
474
-
# Step 1.8. Check TwoPhaseFrameConfigUpdate does not have MANAGE_FRAME_CONFIG_ROLE on CS HashConsensus before upgrade
494
+
# Step 1.15. Check TwoPhaseFrameConfigUpdate does not have MANAGE_FRAME_CONFIG_ROLE on CS HashConsensus before upgrade
475
495
assertnotcs_hash_consensus.hasRole(manage_frame_config_role, TWO_PHASE_FRAME_CONFIG_UPDATE), "TwoPhaseFrameConfigUpdate should not have MANAGE_FRAME_CONFIG_ROLE on CS HashConsensus before upgrade"
476
496
477
497
# Test that executeOffsetPhase reverts with permission denied error before enactment
# Step 1.7. Check PredepositGuarantee implementation after upgrade
681
+
assertstr(predeposit_guarantee_proxy.proxy__getImplementation()).lower() ==PREDEPOSIT_GUARANTEE_NEW_IMPL.lower(), "PredepositGuarantee should have new implementation after upgrade"
682
+
683
+
# Step 1.8-1.10. Check PredepositGuarantee is unpaused after upgrade and Agent does not have RESUME_ROLE
684
+
assertnotpredeposit_guarantee.isPaused(), "PredepositGuarantee should be unpaused after upgrade"
685
+
assertnotpredeposit_guarantee.hasRole(resume_role, AGENT), "Agent should not have RESUME_ROLE on PredepositGuarantee after upgrade"
assertcsm_module_after["stakeShareLimit"] ==CSM_MODULE_NEW_TARGET_SHARE_BP, "CSM module should have new stake share limit after upgrade"
674
696
assertcsm_module_after["priorityExitShareThreshold"] ==CSM_MODULE_NEW_PRIORITY_EXIT_THRESHOLD_BP, "CSM module should have new priority exit threshold after upgrade"
assertcsm_module_after[key] ==csm_module_before[key], f"CSM module {key} should be unchanged after upgrade"
682
704
683
-
# Step 1.8. Check TwoPhaseFrameConfigUpdate has MANAGE_FRAME_CONFIG_ROLE on CS HashConsensus after upgrade
705
+
# Step 1.15. Check TwoPhaseFrameConfigUpdate has MANAGE_FRAME_CONFIG_ROLE on CS HashConsensus after upgrade
684
706
assertcs_hash_consensus.hasRole(manage_frame_config_role, TWO_PHASE_FRAME_CONFIG_UPDATE), "TwoPhaseFrameConfigUpdate should have MANAGE_FRAME_CONFIG_ROLE on CS HashConsensus after upgrade"
685
707
686
-
# Step 1.9. Check PredepositGuarantee implementation after upgrade
assertstr(predeposit_guarantee_proxy.proxy__getImplementation()).lower() ==PREDEPOSIT_GUARANTEE_NEW_IMPL.lower(), "PredepositGuarantee should have new implementation after upgrade"
689
-
690
-
# Step 1.10-1.12. Check PredepositGuarantee is unpaused after upgrade and Agent does not have RESUME_ROLE
0 commit comments