Apply suggestions from code review

Co-authored-by: David Núñez <david@nucypher.com>
pull/1990/head
Arjun Hassard 2020-05-14 13:15:40 -10:00 committed by GitHub
parent 7ebd4cd316
commit 3f3bfb3cba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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