UniswapV3Oracle.sol is calling latestAnswer to get the last WETH price.
This method will return the last value, but you won't be able to check if the data is fresh.
On the other hand, calling the method latestRoundData() will instead allow you to run some extra validations, and check if the data is usuable.
Handle
tensors
Vulnerability details
UniswapV3Oracle.sol is calling latestAnswer to get the last WETH price. This method will return the last value, but you won't be able to check if the data is fresh. On the other hand, calling the method latestRoundData() will instead allow you to run some extra validations, and check if the data is usuable.