Due to missing handling of received funds which transferred directly to the contract address, it can lead to the funds unable to withdraw. Both user and the contract owner are unable to withdraw the fund being sent directly to the contract lead to a loss of fund.
When a user send fund directly to LikeRegistry
contract, it will do nothing and doen't account the fund to the user who send it.
While we see there is a storage variable designed to store and account the user funds called userBalances
.
Loss of fund because no one can withdraw it
Account the fund to address by storing it in the userBalances
variable
Not the best design, but if you send money accidentally, that's a user mistake. Informational.
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.