Skip to content

Commit

Permalink
fix: market price info reader
Browse files Browse the repository at this point in the history
  • Loading branch information
wow-alpaca committed Apr 27, 2023
1 parent e5e1503 commit 6c885c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solidity/contracts/reader/MoneyMarketReader.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6c885c3

Please sign in to comment.