Beginner FriendlyFoundryBridge
100 EXP
View results
Submission Details
Severity: low
Invalid

success of approve is not listened to in L1Vault::approveTo

Summary

In L1Vault, the success of approve is not listened to in theapproveTo function. If approve fails for some reason, the constructor of L1BossBridge will not revert.

Vulnerability Details

The is a chance that L1BossBridge is deployed buy the approve function in L1Vault fails. This would be bad since L1BossBridge would be deployed without having any allowance.

Impact

The impact is quite low since all funds would be secure. On the other hands the users might have a non working service for that token.

Tools Used

Slither and manual review.

Recommendations

Following best practices of the approve function would fix the issue.

function approveTo(address target, uint256 amount) external onlyOwner {
bool success = token.approve(target, amount);
require(success, "Approval failed");
}
Updates

Lead Judging Commences

0xnevi Lead Judge
almost 2 years ago
0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.