We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0xRajeev
The setDecimals() in the sample Gas Price Oracle implementation allows anyone to set the decimals value used by the contract but is not used anywhere.
Impact: It is unclear if this should be set by anyone and if that value should be used in determining the precision of the values returned.
https://github.com/code-423n4/2021-06-tracer/blob/74e720ee100fd027c592ea44f272231ad4dfa2ab/src/contracts/oracle/GasOracle.sol#L64-L66
Manual Analysis
Evaluate if this access and missing logic is correct.
The text was updated successfully, but these errors were encountered:
0xRajeev issue #78
bd09e79
Lower severity as the setDecimals function is not used by anything within the GasOracle. This can just be considered redundant code
setDecimals
GasOracle
Sorry, something went wrong.
GasOracle.setDecimals
Marking this as non-critical as the code is redundant.
No branches or pull requests
Handle
0xRajeev
Vulnerability details
Impact
The setDecimals() in the sample Gas Price Oracle implementation allows anyone to set the decimals value used by the contract but is not used anywhere.
Impact: It is unclear if this should be set by anyone and if that value should be used in determining the precision of the values returned.
Proof of Concept
https://github.com/code-423n4/2021-06-tracer/blob/74e720ee100fd027c592ea44f272231ad4dfa2ab/src/contracts/oracle/GasOracle.sol#L64-L66
Tools Used
Manual Analysis
Recommended Mitigation Steps
Evaluate if this access and missing logic is correct.
The text was updated successfully, but these errors were encountered: