Skip to content

Commit

Permalink
fix: after vote 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 e53b978 commit f5c9b4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_2024_11_26.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_vote(helpers, accounts, vote_ids_from_env, stranger):
pml_trusted_caller_acc = pml_multisig_acc
pml_top_up_evm_script_factory = interface.TopUpAllowedRecipients("0x92a27C4e5e35cFEa112ACaB53851Ec70e2D99a8D")
pml_budget_limit_after_expected = 4_000_000 * 10**18
pml_spent_amount_after_expected = 2_000_000 * 10**18
pml_budget_limit_diff_expected = 2_000_000 * 10**18
pml_period_start_exptected = 1727740800
pml_period_end_exptected = 1735689600

Expand Down Expand Up @@ -179,9 +179,9 @@ def test_vote(helpers, accounts, vote_ids_from_env, stranger):
assert pml_period_end_after == pml_period_end_exptected
assert pml_budget_limit_after == pml_budget_limit_after_expected
assert pml_period_duration_months_after == 3
assert pml_spend_limit_after == pml_spent_amount_after_expected
assert pml_spend_limit_after == pml_initial_spendable_balance - pml_budget_limit_diff_expected
assert interface.AllowedRecipientRegistry(pml_allowed_recipients_registry).isUnderSpendableBalance(pmlSpendableBalanceAfter, 3)
assert pmlSpendableBalanceAfter == pml_spent_amount_after_expected
assert pmlSpendableBalanceAfter == pml_initial_spendable_balance - pml_budget_limit_diff_expected

# Item 3
stonks_steth_budget_limit_after, stonks_steth_period_duration_months_after = interface.AllowedRecipientRegistry(stonks_steth_allowed_recipients_registry).getLimitParameters()
Expand Down

0 comments on commit f5c9b4c

Please sign in to comment.