If any stable depegs, oracle will fail, disabling swaps
If any stable depegs, oracle will fail, disabling swaps\\nWhen swapping, the price of the asset/stable is fetched from OracleX. After fetching the price, the deviation is checked in the `_checkPrice` function.\\nIf the price of an asset/stable depegs, the following require will fail:\\n```\\n _require(minPrice <= price && price <= maxPrice, Errors.PRICE_INVALID);\\n```\\n\\nDue to the fail in the deviation, any swapping activity will be disabled by default and transactions will not go through
Use a secondary oracle when the first one fails and wrap the code in a try catch and store the last fetched price in a variable
Core functionality of the protocol will fail to work if any token they fetch depegs and its price goes outside the bounds.
```\\n _require(minPrice <= price && price <= maxPrice, Errors.PRICE_INVALID);\\n```\\n