The initializeOracle
function in the LibWellMinting contract contains error handling when initializing the Well Minting Oracle. Specifically, the function fails to handle the scenario where readCumulativeReserves
fails.
The initializeOracle
function attempts to read the cumulative reserves using readCumulativeReserves
. However, if this call fails, the function catches the error and emits an event with an empty byte array. This simplistic error handling approach can result in an uninitialized oracle state.
Inaccurate Event Emission: Emitting an event with an empty byte array may not provide sufficient information for the failure.
An uninitialized can cause incorrect delta B values and affect the contract's overall functionality.
Manual Review
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.