mirror of https://github.com/nucypher/nucypher.git
Apply suggestions from code review
Co-authored-by: David Núñez <david@nucypher.com>pull/1990/head
parent
7ebd4cd316
commit
3f3bfb3cba
|
@ -1203,7 +1203,7 @@ class Staker(NucypherTokenActor):
|
|||
|
||||
@property
|
||||
def min_fee_rate(self) -> int:
|
||||
"""Minimum fee rate that staker earns"""
|
||||
"""Minimum fee rate that staker accepts"""
|
||||
staker_address = self.checksum_address
|
||||
min_fee = self.policy_agent.get_min_fee_rate(staker_address)
|
||||
return min_fee
|
||||
|
|
|
@ -821,7 +821,7 @@ class PolicyManagerAgent(EthereumContractAgent):
|
|||
return fee_amount
|
||||
|
||||
def get_fee_rate_range(self) -> Tuple[int, int, int]:
|
||||
"""Check maximum, minimum & default fee rate for all stakers and all policies ('global fee range')"""
|
||||
"""Check minimum, default & maximum fee rate for all stakers and all policies ('global fee range')"""
|
||||
minimum, default, maximum = self.contract.functions.feeRateRange().call()
|
||||
return minimum, default, maximum
|
||||
|
||||
|
|
Loading…
Reference in New Issue