2 matches found
Incorrect constant comparison in UniswapConfig.sol.
Handle shw Vulnerability details Impact In the file UniswapOracle/UniswapConfig.sol, the return value i.e., index of the three functions getSymbolHashIndex, getCTokenIndex, and getUnderlyingIndex are compared to the constant uint-1 to check whether the cToken/underlying asset exists or not...
UniswapConfig getters return wrong token config if token config does not exist
Handle @cmichelio Vulnerability details Vulnerability Details The UniswapConfig.getTokenConfigBySymbolHash function does not work as getSymbolHashIndex returns 0 if there is no config token for that symbol uninitialized map value, but the outer function implements the non-existence check with -1...