getPriceOfOnePoolTokenInWeth has a hardcoded 1e18 amount to account for one token. For tokens like USDC, that has 6 decimals, this function would return an incorrect price. Tokens with decimals higher than 18 would also return incorrect prices.
Tokens like LowDecimals.sol and HighDecimals.sol from weird-erc20 repo are simple examples of this tokens.
Pools of tokens with decimals different than 18 would get a wrong answer when calling getPriceOfOnePoolTokenInWeth
Manual review
Make the following changes to the function:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.