https://github.com/code-423n4/2024-05-predy/blob/a9246db5f874a91fb71c296aac6a66902289306a/src/PriceFeed.sol#L44-L58
This function returns the square root of the baseToken price quoted in quoteToken, and this price data ends up being used in core areas accross protocol. The issue explained in this report is the fact that the price used is gotten from Chainlink; however, there are no protections on popular bug cases like an attacker frontrunning the price update from Chainlink to gain the most from the system. More on how this bug can be of an affect to the protocol can be seen from:
Seems to be QA at most, considering deployment is being done on optimistic L2s.
Consider applying fees to logics that directly use the price returned from here. This way, we can always ensure minimal arbitrage is done away with since the profits might be engulfed by the fees.
