File tree 1 file changed +2
-8
lines changed
rocketpool/watchtower/utils
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -23,19 +23,13 @@ const (
23
23
// Get the max fee for watchtower transactions
24
24
func GetWatchtowerMaxFee (cfg * config.RocketPoolConfig ) float64 {
25
25
setting := cfg .Smartnode .WatchtowerMaxFeeOverride .Value .(float64 )
26
- if setting < MinWatchtowerMaxFee {
27
- return MinWatchtowerMaxFee
28
- }
29
- return setting
26
+ return max (MinWatchtowerMaxFee , setting )
30
27
}
31
28
32
29
// Get the priority fee for watchtower transactions
33
30
func GetWatchtowerPrioFee (cfg * config.RocketPoolConfig ) float64 {
34
31
setting := cfg .Smartnode .WatchtowerPrioFeeOverride .Value .(float64 )
35
- if setting < MinWatchtowerPriorityFee {
36
- return MinWatchtowerPriorityFee
37
- }
38
- return setting
32
+ return max (MinWatchtowerPriorityFee , setting )
39
33
}
40
34
41
35
func FindLastBlockWithExecutionPayload (bc beacon.Client , slotNumber uint64 ) (beacon.BeaconBlock , error ) {
You can’t perform that action at this time.
0 commit comments