When a user join a dao, the fee is transfered to the owpWallet and to the MembershipERC1155. The MembershipERC1155 has a function that is responsible for transfering funds, claimProfit()
But this function cannot help the DAO withdraw the funds it gets from users joining.
The claimProfit()
function lets user claim profit based on their MembershipERC1155 holdings and this accounting is done internally, which is only impacted by the sendProfit()
,used to distribute profit among holders.
No other method is avaliable for the creator to gets the funds out of the contract.
Any funds sent by the user to mint the membership will be stuck in the contract, unless for the very first mint.
Manual Review
Add a function that allows only the creator to withdraw funds from the contract.
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.