@@ -48,6 +48,8 @@ def test_vote(helpers, accounts, vote_ids_from_env, stranger):
48
48
tmc_top_up_evm_script_factory = interface .TopUpAllowedRecipients ("0x6e04aED774B7c89BB43721AcDD7D03C872a51B69" )
49
49
stETH_token = interface .ERC20 ("0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84" )
50
50
stonks_steth_contract = accounts .at ("0x3e2D251275A92a8169A3B17A2C49016e2de492a7" , force = True )
51
+ tmcBudgetAfterExpected = 12_000 * 10 ** 18
52
+ tmcNewSpentAmountExpected = 0
51
53
52
54
# Item 5
53
55
# NO's data indexes
@@ -125,22 +127,22 @@ def test_vote(helpers, accounts, vote_ids_from_env, stranger):
125
127
126
128
# Item 3
127
129
tmcBudgetLimitAfter , tmcPeriodDurationMonthsAfter = interface .AllowedRecipientRegistry (tmc_allowed_recipients_registry ).getLimitParameters ()
128
- assert tmcBudgetLimitAfter == 12_000 * 10 ** 18
130
+ assert tmcBudgetLimitAfter == tmcBudgetAfterExpected
129
131
assert tmcPeriodDurationMonthsAfter == 6
130
132
131
133
# Item 4
132
- alreadySpentAmountAfter , spendableBalanceInPeriodAfter , periodStartTimestampAfter , periodEndTimestampAfter = tmc_allowed_recipients_registry .getPeriodState ()
133
- assert alreadySpentAmountAfter == 0
134
+ alreadySpentAmountAfter = tmc_allowed_recipients_registry .getPeriodState ()[ 0 ]
135
+ assert alreadySpentAmountAfter == tmcNewSpentAmountExpected
134
136
tmcSpendableBalanceAfter = interface .AllowedRecipientRegistry (tmc_allowed_recipients_registry ).spendableBalance ()
135
- assert tmcSpendableBalanceAfter == 12_000 * 10 ** 18
137
+ assert tmcSpendableBalanceAfter == tmcBudgetAfterExpected
136
138
with reverts ("SUM_EXCEEDS_SPENDABLE_BALANCE" ):
137
139
create_and_enact_payment_motion (
138
140
easy_track ,
139
141
tmc_trusted_caller ,
140
142
tmc_top_up_evm_script_factory ,
141
143
stETH_token ,
142
144
[stonks_steth_contract ],
143
- [12_000 * 10 ** 18 + 1 ],
145
+ [tmcBudgetAfterExpected + 1 ],
144
146
stranger ,
145
147
)
146
148
@@ -193,13 +195,13 @@ def test_vote(helpers, accounts, vote_ids_from_env, stranger):
193
195
)
194
196
validate_set_limit_parameter_event (
195
197
evs [2 ],
196
- limit = 12_000 * 10 ** 18 ,
198
+ limit = tmcBudgetAfterExpected ,
197
199
period_duration_month = 6 ,
198
200
period_start_timestamp = 1719792000 ,
199
201
)
200
202
validate_set_spent_amount_event (
201
203
evs [3 ],
202
- new_spent_amount = 0 ,
204
+ new_spent_amount = tmcNewSpentAmountExpected ,
203
205
)
204
206
validate_node_operator_reward_address_set_event (
205
207
evs [4 ],
0 commit comments