Submitted by shw
The CTokenMultiOracle contract assumes the exchange rates (borrowing rate) of Compound always have 18 decimals, while, however, which is not true. According to the Compound documentation, the exchange rate returned from the exchangeRateCurrent function is scaled by 1 * 10^(18 - 8 + Underlying Token Decimals) (and so does exchangeRateStored). Using a wrong decimal number on the exchange rate could cause incorrect pricing on tokens. See CTokenMultiOracle.sol #L110.
Recommend following the documentation and getting the decimals of the underlying tokens to set the correct decimal of a Source.
alcueca (Yield) confirmed:
alcueca (Yield) patched:
