The sendProfit function can be called by any account, as it lacks access control restrictions. This could lead to unintended profit distributions or misuse of the function.
The sendProfit function is designed to distribute profits to token holders by updating the totalProfit and transferring the specified amount of currency to the contract.
Without access control, any account can call this function, potentially leading to unauthorized or malicious profit distributions.
Unauthorized accounts could call sendProfit with arbitrary amounts, affecting the intended profit distribution model.
Manual Review
Restrict the sendProfit function to authorized roles or accounts.
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.