In the claimProfit()
function, you can withdraw all the profits you gathered since you enter the DAO. This value is linked to your address and only to your address (only msg.sender
can withdraw).
Here's the snippet of claimProfit():
But if the user address is blacklisted for any reason (justified or NOT justified), the safetransfer
will failed and the user profit will be stuck in the contract.
Neither the user or the protocol will be able to retrieve this value, making it lost forever.
Value will be stuck forever in the DAO contract.
Add an arbitrary address
parameter to claimProfit()
so the user can choose which address will interact with the ERC20 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.