From d4788c6f721e23ea05f5e4d61ca218c2775504ff Mon Sep 17 00:00:00 2001 From: Brean0 Date: Sat, 5 Aug 2023 15:11:34 -0500 Subject: [PATCH] assetPrice --- protocol/contracts/ecosystem/price/WellPrice.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/contracts/ecosystem/price/WellPrice.sol b/protocol/contracts/ecosystem/price/WellPrice.sol index 95d126f2db..871d25e554 100644 --- a/protocol/contracts/ecosystem/price/WellPrice.sol +++ b/protocol/contracts/ecosystem/price/WellPrice.sol @@ -60,7 +60,7 @@ contract WellPrice { pool.price = well.getSwapOut(wellTokens[beanIndex], wellTokens[tknIndex], 1e6) // 1e18 .mul(PRICE_PRECISION) // 1e6 - .div(LibUsdOracle.getUsdPrice(address(wellTokens[tknIndex]))); // 1e18 + .div(assetPrice); // 1e18 } else { // cannnot determine a price for bean if the other asset that bean is trading against is 0. pool.price = 0;