Skip to content

Commit

Permalink
fix: initial pml balance check
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita P committed Dec 10, 2024
1 parent f350f32 commit e53b978
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_2024_11_26.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ def test_vote(helpers, accounts, vote_ids_from_env, stranger):
pml_budget_limit_before, pml_period_duration_months_before = interface.AllowedRecipientRegistry(pml_allowed_recipients_registry).getLimitParameters()
assert pml_budget_limit_before == 6_000_000 * 10 ** 18
assert pml_period_duration_months_before == 3
assert 4_000_000 * 10**18 == interface.AllowedRecipientRegistry(pml_allowed_recipients_registry).spendableBalance()
pml_initial_spendable_balance = interface.AllowedRecipientRegistry(pml_allowed_recipients_registry).spendableBalance()
assert pml_initial_spendable_balance >= 0
assert pml_initial_spendable_balance <= pml_budget_limit_before
_, _, pml_period_start_before, pml_period_end_before = pml_allowed_recipients_registry.getPeriodState()
assert pml_period_start_before == pml_period_start_exptected
assert pml_period_end_before == pml_period_end_exptected
Expand Down

0 comments on commit e53b978

Please sign in to comment.