getEthUsdPrice function can have collision
Two functions has the same name and returns two different paameters
1.The first getEthUsdPrice returns the libChainlinkOracle
2. The second getEthUsdPrice returns the TWAP using look back and getPrice of chainlink Oracle as the first
one
The first returns getPrice from the chainlink Oracle The second getEthUsdPrice returns 2 parameters
Having two functions with the same name increases the risk of confusion among the users and devs of the contract. This can lead to potential collision between the functions and other uninetnded behaviours resulting in uncontrolled and unpredictable outcomes.
Manual Review
Remove the declared function of getPrice so that the Lib EthUsd can use only getEthUsdPrice which returns 2 parameters.
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.