-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
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
M-12 MitigationConfirmed #32
Comments
The mitigation review should include more than just links to the issue and the fix. Not much is needed, but at least a description of both. |
alcueca marked the issue as unsatisfactory: |
Original vulnerabilityThe The issue is that the function getRate() external view override returns (uint256) {
return lastPrice;
} Providing a stale exchange rate can cause the balancer pools to misprice Mitigation AnalysisThe mitigation fixes the original issue effectively by relying on the - (uint256 _lastPrice, ) = getMintRate();
+ (uint256 _lastPrice, uint256 _lastPriceTimestamp) = getMintRate();
+ if (block.timestamp > _lastPriceTimestamp + 1 days) {
+ revert OraclePriceExpired();
+ } NotesWhile the mitigation proposed effectively fixes the original issue (returning of the incorrect exchange) rate, it also introduces a new potential issue discussed in great detail here |
alcueca marked the issue as satisfactory |
Lines of code
Vulnerability details
The fix applied by the team fully mitigates M-12, but introduces a new issue.
The text was updated successfully, but these errors were encountered: