There are at least 2 places in the codebase where "staked" tokens are treated as the sum of locked and reward tokens. IMO, that's not correct, since reward tokens are unlocked and therefore can be transferred at any time, preventing their role as "collateral".
@property
def current_stake(self) -> NU:
"""
The total number of staked tokens, either locked or unlocked in the current period.
"""
stake = self.staking_agent.owned_tokens(staker_address=self.checksum_address)
nu_stake = NU.from_nunits(stake)
return nu_stake
- The output of
nucypher status stakers