You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Function used in OracleRelay to get price from the chain link oracles in deprecated
Summary
The function latestAnswer() used to get price from chainlink data feeds in deprecated the official documentation can be referred.
function currentValue() externalviewoverridereturns (uint256) {
//@audit this function is deprecated by chainlink//https://docs.chain.link/data-feeds/api-reference#latestanswerint256 latest = aggregator.latestAnswer();
require(latest >0, "chainlink: px < 0");
returnuint256(latest);
}
```
### Root Cause
_No response_
### Internal pre-conditions
_No response_
### External pre-conditions
_No response_
### Attack Path
_No response_
### Impact
For nowthis doesn't really has an impact as this is not used anywhere but as the file is included in the scope the protocol might plan to use this in future for price feeds which can cause stale price issues ### PoC_No response_### Mitigation_No response_
The text was updated successfully, but these errors were encountered:
Zealous Black Grasshopper
Medium
Function used in
OracleRelay
to get price from the chain link oracles in deprecatedSummary
The function
latestAnswer()
used to get price from chainlink data feeds in deprecated the official documentation can be referred.The text was updated successfully, but these errors were encountered: