```\n    // buy wETH\n    // lowest price is best price when buying\n        uint256 priceToUse = quotePrice < underlyingPrice ? quotePrice : \n            underlyingPrice;\n    RangeOrderDirection direction = inversed ? RangeOrderDirection.ABOVE \n        : RangeOrderDirection.BELOW;\n    RangeOrderParams memory rangeOrder = \n        _getTicksAndMeanPriceFromWei(priceToUse, direction);\n```\n