Location: MultiHopOracle.sol (lines 47-51)
The contract performs multiple divisions and multiplications with oracle
data that could potentially overflow or underflow, especially when dealing with large
numbers in price calculations.
Location: MultiHopOracle.sol (lines 47-51)
The contract performs multiple divisions and multiplications with oracle
data that could potentially overflow or underflow, especially when dealing with large
numbers in price calculations.
Code Snippet:
Incorrect calculations leading to fund loss or broken contract logic.
Implement SafeMath operations and add input validation to
ensure oracle values are within acceptable ranges. Consider using a decimal math
library for precise calculations.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.