private List<Wei> boundRewards(final List<Wei> rewards, final Wei nextBaseFee) {
    final Wei lowerBoundGasPrice = blockchainQueries.gasPriceLowerBound();
    final Wei lowerBoundPriorityFee = lowerBoundGasPrice.subtract(nextBaseFee);
    final Wei minPriorityFee = miningCoordinator.getMinPriorityFeePerGas();
    final Wei forcedMinPriorityFee = UInt256s.max(minPriorityFee, lowerBoundPriorityFee);
    final Wei lowerBound =
        forcedMinPriorityFee
            .multiply(apiConfiguration.getLowerBoundGasAndPriorityFeeCoefficient())
            .divide(100);
    final Wei upperBound =
        forcedMinPriorityFee
            .multiply(apiConfiguration.getUpperBoundGasAndPriorityFeeCoefficient())
            .divide(100);

    return rewards.stream().map(reward -> boundReward(reward, lowerBound, upperBound)).toList();
  }
This method returns a list of bounded rewards.

@param rewards The list of rewards to be bounded.
@param nextBaseFee The base fee of the next block.
@return The list of bounded rewards.
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/EthFeeHistory.java