Submitted by Alex the Entreprenerd, also found by gzeon
Due to the generalized nature of withdraw the function is a clear rug-vector, allowing the owner to steal all funds.
Ideally, you should add some validation logic to limit the tokens or the amounts that the owner can withdraw.
Additionally, its important that you disclose the level of admin privilege and the risk it can cause to your users and depositors.
Disclose the admin privilege in your docs.
Refactor the code to reduce it.
kphed (Redacted Cartel) disputed and commented:
Alex the Entreprenerd (judge) closed as Invalid and commented:
kphed (Redacted Cartel) commented:
Alex the Entreprenerd (judge) reopened as Valid and commented:
kphed (Redacted Cartel) commented:
Alex the Entreprenerd (judge) commented:
