```\nuint256 maxPrice = curPrice +\n ((curPrice \*\n self.PERIOD\_PRICE\_INCREASE\_LIMIT \*\n \_periodsSinceUpdate) / PERCENTAGE\_DENOMINATOR);\n\nuint256 minPrice = curPrice -\n ((curPrice \*\n self.PERIOD\_PRICE\_DECREASE\_LIMIT \*\n \_periodsSinceUpdate) / PERCENTAGE\_DENOMINATOR);\n\nrequire(\n \_newPrice >= minPrice && \_newPrice <= maxPrice,\n "OracleUtils: price is insane"\n```\n