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")`;
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.