Submitted by shw
According to Chainlinks documentation (Deprecated API Reference, Migration Instructions, and API Reference), the latestAnswer function is deprecated. This function does not throw an error if no answer has been reached, but instead returns 0, causing an incorrect price to be fed to the Buoy3Pool. See Buoy3Pool.sol L207 and
L214-L216.
Recommend using the latestRoundData function to get the price instead. Also recommend adding checks on the return data with proper revert messages if the price is stale or the round is incomplete, for example:
kristian-gro (Gro) disagreed with severity:
kristian-gro (Gro) confirmed:
ghoul-sol (Judge) commented:
