You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnErr(anyhow!("chain id {:?} configuration is invalid. Config must satisfy min_profit_pct <= target_profit_pct <= max_profit_pct.", chain_id));
95
+
returnErr(anyhow!("chain id {:?} configuration is invalid. Config must satisfy min_profit_multiplier_pct <= target_profit_multiplier_pct <= max_profit_multiplier_pct.", chain_id));
94
96
}
95
97
}
96
98
@@ -145,23 +147,26 @@ pub struct EthereumConfig {
145
147
pubescalation_policy:EscalationPolicyConfig,
146
148
147
149
/// The minimum percentage profit to earn as a function of the callback cost.
148
-
/// For example, 20 means a profit of 20% over the cost of a callback that uses the full gas limit.
150
+
/// A callback using the full gas limit has a cost of 100.
151
+
/// Thus, 120 means a profit of 20% over the cost of a callback that uses the full gas limit.
149
152
/// The fee will be raised if the profit is less than this number.
150
-
/// The minimum value for this is -100. If set to < 0, it means the keeper may lose money on callbacks that use the full gas limit.
151
-
pubmin_profit_pct:Percentage,
153
+
/// The minimum value for this is 0. If set to < 100, it means the keeper may lose money on callbacks that use the full gas limit.
154
+
pubmin_profit_multiplier_pct:Percentage,
152
155
153
156
/// The target percentage profit to earn as a function of the callback cost.
154
-
/// For example, 20 means a profit of 20% over the cost of a callback that uses the full gas limit.
157
+
/// A callback using the full gas limit has a cost of 100.
158
+
/// Thus, 120 means a profit of 20% over the cost of a callback that uses the full gas limit.
155
159
/// The fee will be set to this target whenever it falls outside the min/max bounds.
156
-
/// The minimum value for this is -100. If set to < 0, it means the keeper may lose money on callbacks that use the full gas limit.
157
-
pubtarget_profit_pct:Percentage,
160
+
/// The minimum value for this is 0. If set to < 100, it means the keeper may lose money on callbacks that use the full gas limit.
161
+
pubtarget_profit_multiplier_pct:Percentage,
158
162
159
163
/// The maximum percentage profit to earn as a function of the callback cost.
160
-
/// For example, 100 means a profit of 100% over the cost of a callback that uses the full gas limit.
164
+
/// A callback using the full gas limit has a cost of 100.
165
+
/// Thus, 200 means a profit of 100% over the cost of a callback that uses the full gas limit.
161
166
/// The fee will be lowered if it is more profitable than specified here.
162
-
/// Must be larger than min_profit_pct.
163
-
/// The minimum value for this is -100. If set to < 0, it means the keeper may lose money on callbacks that use the full gas limit.
164
-
pubmax_profit_pct:Percentage,
167
+
/// Must be larger than min_profit_multiplier_pct.
168
+
/// The minimum value for this is 0. If set to < 100, it means the keeper may lose money on callbacks that use the full gas limit.
169
+
pubmax_profit_multiplier_pct:Percentage,
165
170
166
171
/// Minimum wallet balance for the keeper. If the balance falls below this level, the keeper will
167
172
/// withdraw fees from the contract to top up. This functionality requires the keeper to be the fee
0 commit comments