The FIXEDFEE in LikeRegistry.sol is set to 10 (10%), but fees are deducted even when totalRewards is 0 due to uncredited userBalances. This results in:
Fees calculated as (0 * 10%) = 0, wasting gas on multisig deployments.
Potential underflow if userBalances are negative (though prevented by Solidity 0.8’s safemath).
Alice and Bob match, but totalRewards = 0.
Contract deploys a multisig and sends 0 ETH to it.
Gas is wasted on deployment for no value.
Unnecessary gas costs for deploying empty multisig contracts.
Protocol earns no fees, undermining revenue model.
Add validation to skip fee logic if totalRewards = 0
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.