File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
target_chains/ethereum/contracts/contracts/pulse Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,8 @@ abstract contract Scheduler is IScheduler, SchedulerState {
269
269
// from the last trading period. Thus, we use a minimum timestamp of zero while parsing,
270
270
// and we enforce the past max validity ourselves in _validateShouldUpdatePrices using
271
271
// the highest timestamp in the update data.
272
+ status.balanceInWei -= pythFee;
273
+ status.totalSpent += pythFee;
272
274
uint64 curTime = SafeCast.toUint64 (block .timestamp );
273
275
(
274
276
PythStructs.PriceFeed[] memory priceFeeds ,
@@ -279,8 +281,6 @@ abstract contract Scheduler is IScheduler, SchedulerState {
279
281
0 , // We enforce the past max validity ourselves in _validateShouldUpdatePrices
280
282
curTime + FUTURE_TIMESTAMP_MAX_VALIDITY_PERIOD
281
283
);
282
- status.balanceInWei -= pythFee;
283
- status.totalSpent += pythFee;
284
284
285
285
// Verify all price feeds have the same Pythnet slot.
286
286
// All feeds in a subscription must be updated at the same time.
You can’t perform that action at this time.
0 commit comments