DatingDapp

AI First Flight #6
Beginner FriendlyFoundrySolidityNFT
EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

`FIXEDFEE` Hardcoded Immutable — No Protocol Fee Adjustment

[LOW] FIXEDFEE Hardcoded Immutable — No Protocol Fee Adjustment

File: sources/2025-02-datingdapp/src/LikeRegistry.sol
Line: 14

Summary

The 10% platform fee is permanently set at deployment with no ability to adjust it, requiring a full redeployment for any fee change.

Vulnerability Details

uint256 immutable FIXEDFEE = 10; // Permanently 10%

Impact

Low — no direct security risk, but removes operational flexibility.

Tools Used

  • Manual review

Recommendations

uint256 public fee = 10;
uint256 constant MAX_FEE = 20;
function setFee(uint256 newFee) external onlyOwner {
require(newFee <= MAX_FEE, "Fee too high");
fee = newFee;
}
Updates

Lead Judging Commences

ai-first-flight-judge Lead Judge 6 days ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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

Give us feedback!