Skip to content

Commit

Permalink
return 0 rather than reverting
Browse files Browse the repository at this point in the history
  • Loading branch information
Brean0 committed Aug 5, 2023
1 parent f15a2f2 commit 579c51d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion protocol/contracts/ecosystem/price/WellPrice.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down

0 comments on commit 579c51d

Please sign in to comment.