In order to participate in the protocol users have to provide funds to their BuyerAgents. As there exists no functionality to withdraw all of the funds, some amount of funds will always be stuck in BuyerAgents.
In BuyerAgent.sol, the only way users can pull funds out of their agents is by calling withdraw function:
This if check prevents users from withdrawing the full amount of tokens out of agents, and as there is no other way of withdrawing tokens, users will not be able to withdraw their funds fully if they want to quit participating.
Some amount of funds will always be stuck in BuyerAgents.
Add a functionality to let users withdraw all of their funds from BuyerAgents.
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.