You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This mitigation succesfully mitigates the original issue. The usage of _lastPriceTimestamp and checking if block.timestamp is more than _lastPriceTimestamp + 1 days will ensure that the price can not be stale.
Suggestion
n/a
Conclusion
LGTM
The text was updated successfully, but these errors were encountered:
Lines of code
Vulnerability details
Original Issue Summary
In the original issue,
getRate()
does not check for outdated exchange rates, which can result to incorrect calculations.Mitigation
The mitigation proposes a staleness-check:
Comments
This mitigation succesfully mitigates the original issue. The usage of
_lastPriceTimestamp
and checking ifblock.timestamp
is more than_lastPriceTimestamp + 1 days
will ensure that the price can not be stale.Suggestion
n/a
Conclusion
LGTM
The text was updated successfully, but these errors were encountered: