The protocol’s documentation presents an inconsistency with the actual code implementation regarding the updating of the saved oracle price. The documentation specifies that the saved oracle price is updated in situations involving the decreaseCollateral()
or createLimitShort()
functions if 15 minutes have elapsed past the saved oracle time. However, the code reveals that the decreaseCollateral
function employs the getCollateralRatio
method, which, in turn, utilizes the getPrice
method to retrieve the last saved price, not updating it as suggested by the documentation.
This inconsistency has been confirmed by the protocol's developer to be a result of outdated documentation.
Manual analysis
Revise the documentation to accurately reflect the current behavior of the system in relation to the updating of the saved oracle price.
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.