The variable useOracle
is declared as bool public useOracle;
in the StrategyMainnet.sol
file but is not explicitly initialized. In Solidity, uninitialized variables are assigned a default value of false
. However, the lack of explicit initialization can lead to potential vulnerabilities or misinterpretation of the variable's intended use.
By default, Solidity initializes boolean variables to false
. If useOracle
controls access to critical logic, such as determining whether to fetch pricing or data from an oracle, its default value might not align with the intended behavior.
If the contract logic relies on useOracle
to enable or disable critical functionality, the default false
value may unintentionally allow or block certain operations.
Manual Review.
Initialize useOracle
with a clear and deliberate value (true
or false
) in the declaration or constructor, based on the desired default behavior.
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.