DatingDapp

First Flight #33
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Severity: high
Invalid

Zero Rewards

The platform is designed to facilitate payments between matched profiles, allowing them to use their deposited funds minus a 10% fee for their first date. However, due to a critical issue in the matchRewards function, users are unable to access their funds as intended.

uint256 matchUserOne = userBalances[from];
uint256 matchUserTwo = userBalances[to];

these variables will always have 0 because userBalances was never updated with msg.value so the goal of system is not achieved. user will always get 0 money for their first date.

It need to be validated.

` ` ```require(userBalances[from] > 0 && userBalances[to] > 0, "Insufficient balance")`;

Updates

Appeal created

n0kto Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality
0xzulkefal Submitter
7 months ago
n0kto Lead Judge
7 months ago
0xzulkefal Submitter
7 months ago
n0kto Lead Judge
7 months ago
0xzulkefal Submitter
7 months ago
n0kto Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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