#43314 [SC-Insight] Oracle functions mislead integrators as it is not compatible with Chainlink Price feed behaviour
Description
Vulnerability Details
function getRoundData(
uint80
)
external
view
returns (
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
)
{ // @audit - `latestRoundData` return same output, regardless of the input passed in `getRoundData`
@> return (0, int256(_getQuoteAmount()), 0, 0, 0);
}
/** @dev See {AggregatorV3Interface-latestRoundData}. */
function latestRoundData()
external
view
returns (
uint80 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
)
{ // @audit - `latestRoundData` and `getRoundData` return same output, regardless of the input passed in `getRoundData`
@> return (0, int256(_getQuoteAmount()), 0, 0, 0);
}Impact Details
Recommendation
Proof of Concept
Proof of Concept
Previous#43469 [SC-Low] Return value of low level call not checked can cause silent RevertsNext#43659 [SC-Low] Silent ETH transfer failure in `Dispatcher.sol` leads to permament freezing of funds
Was this helpful?