ContestManager::createContest
deploy the pot contract hence the owner of the pot
is the ContestManager
contract which can't handle the ownerCut
When ContestManager::createContest
deploy the pot contract the owner of the pot
is the ContestManager
contract.so when the 90 days pass and there is unclaimed rewards and the owner call pot::closeContest
to get the ownerCut
the ownerCut
transfered to the ContestManager
instead of the owne of the contestManger
.since the contestManager
has no withdraw mechanism the ownerCut
will be locked forever.
Use the following POC in TestMyCut.t.sol
Losing of funds aka the ownerCut
Manual Review + Foundry
Use the following steps to implement this recommendation in pot::closeContest
import contestManager
in pot contract
Pass the contestManager
contract address in the constructor
add the contestManager
address in contestManager::createContest
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.