Closed code423n4 closed 1 year ago
Cmooooooooooooooon
GalloDaSballo marked the issue as duplicate of #316
GalloDaSballo marked the issue as not a duplicate
GalloDaSballo marked the issue as duplicate of #655
GalloDaSballo marked the issue as not a duplicate
L
GalloDaSballo marked the issue as grade-b
Removed duplicate tag as requested by @GalloDaSballo
GalloDaSballo marked the issue as grade-c
Lines of code
https://github.com/code-423n4/2022-12-tigris/blob/main/contracts/utils/TradingLibrary.sol#L113
Vulnerability details
Impact
ParaSpaceOracle
should uselatestRoundData()
function and not the deprecated Chainlink functionlatestAnswer
.Proof of Concept
Such functions might suddenly stop working if Chainlink stopped supporting deprecated APIs.
Tools Used
Manual Reveiw
Recommended Mitigation Steps
Use the
latestRoundData
function to get the price instead. Add checks on the return data with proper revert messages if the price is stale or the round is uncompleted.