Beginner FriendlyFoundryDeFiOracle
100 EXP
View results
Submission Details
Severity: medium
Invalid

Pass-unprotected-Initializer

Summary

Pass-Unprotected-Initializer: Likelihood of State reverting to its original state before function is called

Vulnerability Details

Likelihood of State reverting to its original state before function is called

Impact

Pass-Unprotected-Initializer: Likelihood of State reverting to its original state before function is called

Tools Used

Slither and AI

Recommendations

modifier onlyThunderLoan() {
require(msg.sender == i_thunderLoan, "AssetToken: Only ThunderLoan can call this function");
_;
}

modifier revertIfZeroAddress(address someAddress) { // REVIEW Pass protected Initializer
require(someAddress != address(0), "AssetToken: Zero address not allowed");
_;
}
use "require" to validate inputs and "revert" to handle errors

Updates

Lead Judging Commences

0xnevi Lead Judge
over 1 year ago
0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Front-running initializers

Support

FAQs

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