pub fn calculate_min_bump(base_price: u128) -> u128
Expand description
Safely calculates the minimum required gas price for a replacement transaction. Uses saturating arithmetic to prevent overflow and maintains precision.
§Arguments
base_price
- The original gas price to calculate bump from
§Returns
The minimum required price for replacement, or u128::MAX
if overflow would occur.