Unused local variable in _latestRoundData (ChainlinkOracleWrapper.sol) #2
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Warden finding
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
ye0lde
Vulnerability details
Impact
Code Clarity
Proof of Concept
Parameter "startedAt" is not used
https://github.com/tracer-protocol/perpetual-pools-contracts/blob/646360b0549962352fe0c3f5b214ff8b5f73ba51/contracts/implementation/ChainlinkOracleWrapper.sol#L61
Tools Used
Visual Studio Code
Recommended Mitigation Steps
Remove the unused local variable (replace with a comma)
The text was updated successfully, but these errors were encountered: