The decimals() and symbol() function are part of the OpenZeppelin's IERC20Metadata, but aren't originally included in the official ERC-20 standard.
Therefore, indiscriminately casting all tokens to this interface and subsequently invoking this function can fail.
Context
Stabilizer::constructor() TokenToPriceFeed::setTokenPriceFeed()
Description
The
decimals()
andsymbol()
function are part of the OpenZeppelin's IERC20Metadata, but aren't originally included in the official ERC-20 standard. Therefore, indiscriminately casting all tokens to this interface and subsequently invoking this function can fail.