Skip to content

Commit e20f420

Browse files
authored
Merge pull request #370 from lidofinance/feat/fix-lido-state-test
fix: count all exited validators in each module
2 parents c9b2871 + 868de95 commit e20f420

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/acceptance/test_lido.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,12 @@ def test_steth(contract):
8585

8686
def test_lido_state(contract):
8787
stake_limit = contract.getStakeLimitFullInfo()
88-
(total_exited_validators, _, _) = contracts.staking_router.getStakingModuleSummary(1)
88+
89+
modules = contracts.staking_router.getStakingModules()
90+
total_exited_validators = sum(
91+
contracts.staking_router.getStakingModuleSummary(module[0])[0]
92+
for module in modules
93+
)
8994

9095
assert stake_limit["isStakingPaused"] == False
9196
assert stake_limit["isStakingLimitSet"] == True

0 commit comments

Comments
 (0)