Now function getPrice in UniswapPairPriceAdapter maybe revert when call function priceOracle.getPrice in function getPrice or _getUniswapPrice. This will prevent other oracle adapters which added after UniswapPairPriceAdapter from provide price. To resolve this issue, I use try/catch clause to check revert case. When revert, new version of getPrice will return (false, 0);
Now function getPrice in UniswapPairPriceAdapter maybe revert when call function priceOracle.getPrice in function getPrice or _getUniswapPrice. This will prevent other oracle adapters which added after UniswapPairPriceAdapter from provide price. To resolve this issue, I use try/catch clause to check revert case. When revert, new version of getPrice will return (false, 0);