amount tweaks

pull/1294/head
Damon C 2019-08-21 12:59:52 +02:00 committed by damon
parent f1fc23d673
commit 5cec6ca322
2 changed files with 4 additions and 5 deletions

View File

@ -142,8 +142,8 @@ class Felix(Character, NucypherTokenActor):
BATCH_SIZE = 10 # transactions
MULTIPLIER = Decimal('0.9') # 10% reduction of previous stake is 0.9, for example
# this will result in 90 days of distribution
MINIMUM_DISBURSEMENT = 1e18 # NuNits
ETHER_AIRDROP_AMOUNT = 1e17 # Wei
MINIMUM_DISBURSEMENT = int(1e18) # NuNits
ETHER_AIRDROP_AMOUNT = int(1e17) # Wei
# Node Discovery
LEARNING_TIMEOUT = 30 # seconds
@ -276,8 +276,7 @@ class Felix(Character, NucypherTokenActor):
last_transaction_date = last_recipient.last_disbursement_time.isoformat()
unfunded = session.query(self.Recipient).filter(
self.Recipient.last_disbursement_time.is_(None)
).count()
self.Recipient.last_disbursement_time.is_(None)).count()
return json.dumps(
{

View File

@ -127,7 +127,7 @@ def test_run_felix(click_runner,
registry=test_registry,
is_me=True)
assert staker.token_balance == NU(15000, 'NU')
assert staker.token_balance == NU(45000, 'NU')
# TODO: Airdrop Testnet Ethers?
# new_eth_balance = original_eth_balance + testerchain.w3.fromWei(Felix.ETHER_AIRDROP_AMOUNT, 'ether')