There isn't a way to withdraw the manager cut
from the ContestManager
contract
Since the ContestManager.sol
is the owner of the Pot
contracts, when the closeContest::ContestManager
function is being called, the managerCut
is being sent to the ContestManager
contract and there is no way to withdraw it from there, leading to the locking of the funds in there forever.
https://github.com/Cyfrin/2024-08-MyCut/blob/946231db0fe717039429a11706717be568d03b54/src/Pot.sol#L54
There is no way to withdraw the managerCut
from any contest and it's always going to end up locked in the ContestManager
contract.
Manual Review
Add a function to withdraw the managerCut
from the ContestManager
contract.
Something like that:
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.