Skip to content

Commit 868de95

Browse files
committed
fix: count all exited validators in each module
1 parent c9b2871 commit 868de95

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)