result.gasPrice = baseFee + min(result.maxPriorityFee, result.maxFee - baseFee) cannot be simplified into result.gasPrice = min(result.maxPriorityFee + baseFee, result.maxFee) the expression is not commutative