mirror of https://github.com/nucypher/nucypher.git
Adds missing sanity checks in economics test. Also closes #831.
parent
e0cf8393e7
commit
eaf79d70c6
|
@ -277,11 +277,11 @@ class Deployer(NucypherTokenActor):
|
||||||
) -> Dict[str, dict]:
|
) -> Dict[str, dict]:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
Example allocation dataset (one year is 31540000 seconds):
|
Example allocation dataset (one year is 31536000 seconds):
|
||||||
|
|
||||||
data = [{'address': '0xdeadbeef', 'amount': 100, 'duration': 31540000},
|
data = [{'address': '0xdeadbeef', 'amount': 100, 'duration': 31536000},
|
||||||
{'address': '0xabced120', 'amount': 133432, 'duration': 31540000*2},
|
{'address': '0xabced120', 'amount': 133432, 'duration': 31536000*2},
|
||||||
{'address': '0xf7aefec2', 'amount': 999, 'duration': 31540000*3}]
|
{'address': '0xf7aefec2', 'amount': 999, 'duration': 31536000*3}]
|
||||||
"""
|
"""
|
||||||
if allocation_registry and allocation_outfile:
|
if allocation_registry and allocation_outfile:
|
||||||
raise self.ActorError("Pass either allocation registry or allocation_outfile, not both.")
|
raise self.ActorError("Pass either allocation registry or allocation_outfile, not both.")
|
||||||
|
|
|
@ -156,6 +156,8 @@ def test_exact_economics():
|
||||||
|
|
||||||
# Check deployment parameters
|
# Check deployment parameters
|
||||||
assert e.staking_deployment_parameters == expected_deployment_parameters
|
assert e.staking_deployment_parameters == expected_deployment_parameters
|
||||||
|
assert e.erc20_initial_supply == expected_initial_supply
|
||||||
|
assert e.erc20_reward_supply == expected_reward_supply
|
||||||
|
|
||||||
|
|
||||||
def test_economic_parameter_aliases():
|
def test_economic_parameter_aliases():
|
||||||
|
|
Loading…
Reference in New Issue