Fees for the owner (matchingFees
) are expected to be deducted and accumulated in totalFees
but with all the variables in matchRewards
set to 0 in LikeRegistry::matchRewards
, fees also default to 0.
LikeRegistry::withdrawFees
becomes redundant because no fees are accrued to the user because of the inaccurate fee calculations caused by improper tracking of the user's deposits. When the owner calls the withdrawFees function, it will always revert because of the require check below:
require(totalFees > 0, "No fees to withdraw");
Loss of revenue for the protocol: Owner does not get any fees for the DatingDapp being used.
Manual Review.
Adjust the user's fee tracked when they indicate interest by liking a user's profile.
Likelihood: High, always. Impact: High, loss of funds
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.