From 579c51d2725cf213e3b0e00b4ed4c2b80db71c05 Mon Sep 17 00:00:00 2001 From: Brean0 Date: Sat, 5 Aug 2023 14:14:59 -0500 Subject: [PATCH] return 0 rather than reverting --- protocol/contracts/ecosystem/price/WellPrice.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocol/contracts/ecosystem/price/WellPrice.sol b/protocol/contracts/ecosystem/price/WellPrice.sol index d2464e02ed..95d126f2db 100644 --- a/protocol/contracts/ecosystem/price/WellPrice.sol +++ b/protocol/contracts/ecosystem/price/WellPrice.sol @@ -62,7 +62,8 @@ contract WellPrice { .mul(PRICE_PRECISION) // 1e6 .div(LibUsdOracle.getUsdPrice(address(wellTokens[tknIndex]))); // 1e18 } else { - revert("WellPrice: price is 0"); + // cannnot determine a price for bean if the other asset that bean is trading against is 0. + pool.price = 0; }