From 6c885c3e858f057e721eb8795672a53140db4471 Mon Sep 17 00:00:00 2001 From: wow-alpaca Date: Thu, 27 Apr 2023 12:33:51 +0700 Subject: [PATCH] fix: market price info reader --- solidity/contracts/reader/MoneyMarketReader.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solidity/contracts/reader/MoneyMarketReader.sol b/solidity/contracts/reader/MoneyMarketReader.sol index 5b92bd8d..1e1f3f53 100644 --- a/solidity/contracts/reader/MoneyMarketReader.sol +++ b/solidity/contracts/reader/MoneyMarketReader.sol @@ -356,7 +356,7 @@ contract MoneyMarketReader is IMoneyMarketReader { marketPriceInfo.underlyingTokenPrice = _getPriceUSD(_underlyingToken); marketPriceInfo.underlyingToIbRate = _ibToken.convertToShares(1e18); - marketPriceInfo.ibTokenPrice = (marketPriceInfo.underlyingTokenPrice * marketPriceInfo.underlyingToIbRate) / 1e18; + marketPriceInfo.ibTokenPrice = _getPriceUSD(address(_ibToken)); return marketPriceInfo; }