UniswapConfig getters return wrong token config if token config does not exist
The UniswapConfig contract's getter functions for token configurations incorrectly return the configuration of the first token (index 0) when queried for a non-existent token, because the non-existence check uses -1 while the index lookup returns 0. This could lead to wrong oracle prices, potentially allowing undercollateralized loans that cannot be liquidated.
Based Loans
High