The likeUser
method is not updating the liked user's balance.
When a user likes another user the likeUser
is not updating the liked user balance with the deposited ETH. The internal function matchRewards
function does calculates the fees and rewards is assuming the userBalances[from]
and userBalances[to]
is positive. If two users match, then both the rewards and fees would be zero.
The match users won't get the accumulated balance in the MultiSig and the contract owner won't get the fees for the match.
Manual Review
Unit test
Increment the liked user's balance:
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.