diff --git a/nucypher/blockchain/eth/agents.py b/nucypher/blockchain/eth/agents.py index 31715fa1b..ec14c1a74 100644 --- a/nucypher/blockchain/eth/agents.py +++ b/nucypher/blockchain/eth/agents.py @@ -230,7 +230,8 @@ class StakingEscrowAgent(EthereumContractAgent): if not periods > 0: raise ValueError("Period must be > 0") - return self.contract.functions.getAllLockedTokens(periods).call() + all_locked_tokens, _stakers = self.contract.functions.getAllActiveStakers(periods).call() + return all_locked_tokens # # StakingEscrow Contract API