After the distribution of wages and upgrading to LevelTwo
implementation there is no withdraw function for owner of protocol to call leaving the remaining fees (65%) locked in contract.
With no possibility to withdraw the remaining fees the funds are locked in protocol.
Manual code review
In LevelTwo
contract add a withdrawFees
function and give access control, either to the principal
, or a owner
which is set when initializing LevelOne
contract.
In the below example I show how to implement the code in LevelTwo
contract with onlyPrincipal
modifier:
Funds are stuck in `LevelOne()` contract after upgrade.
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.