Closed code423n4 closed 1 year ago
https://github.com/code-423n4/2022-12-tigris/blob/0cb05a462e78c4470662e9d9a4f9ab587f266bb5/contracts/utils/TradingLibrary.sol#L113
Use of a deprecated API may produce incorrect results and/or break the protocol. The latestAnswer() API does not produce error if no answer has been reached and returns 0 instead.
Chainlink docs for latestAnswer() deprecated API.
Manual review.
Use latestRoundData() instead.
GalloDaSballo marked the issue as duplicate of #316
GalloDaSballo marked the issue as not a duplicate
L
GalloDaSballo changed the severity to QA (Quality Assurance)
GalloDaSballo marked the issue as grade-c
Lines of code
https://github.com/code-423n4/2022-12-tigris/blob/0cb05a462e78c4470662e9d9a4f9ab587f266bb5/contracts/utils/TradingLibrary.sol#L113
Vulnerability details
Impact
Use of a deprecated API may produce incorrect results and/or break the protocol. The latestAnswer() API does not produce error if no answer has been reached and returns 0 instead.
Proof of Concept
Chainlink docs for latestAnswer() deprecated API.
Tools Used
Manual review.
Recommended Mitigation Steps
Use latestRoundData() instead.