Skip to content

Commit

Permalink
Merge pull request #339 from alpaca-finance/fix/market-price-reader
Browse files Browse the repository at this point in the history
[main][fix] market price info reader
  • Loading branch information
jr-alpaca authored Apr 27, 2023
2 parents e5e1503 + 6c885c3 commit cef4322
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 cef4322

Please sign in to comment.