Skip to content

Commit b98f257

Browse files
test(pulse-scheduler): add gas benchmark (#2596)
* test(pulse-scheduler): add gas benchmark, refactor common helpers into util * doc: test comment * fix: import * fix: overflow, DRY * doc: comment * fix: remove unused constants
1 parent 5354fe6 commit b98f257

File tree

5 files changed

+470
-143
lines changed

5 files changed

+470
-143
lines changed

Diff for: target_chains/ethereum/contracts/contracts/pulse/scheduler/Scheduler.sol

+3-2
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,9 @@ abstract contract Scheduler is IScheduler, SchedulerState {
671671
function getMinimumBalance(
672672
uint8 numPriceFeeds
673673
) external pure override returns (uint256 minimumBalanceInWei) {
674-
// Simple implementation - minimum balance is 0.01 ETH per price feed
675-
return numPriceFeeds * 0.01 ether;
674+
// Placeholder implementation
675+
// TODO: make this governable
676+
return uint256(numPriceFeeds) * 0.01 ether;
676677
}
677678

678679
// ACCESS CONTROL MODIFIERS

0 commit comments

Comments
 (0)