Treasury setAdmin function doesn't check the new admin is a valid one. The admin has too much power to actually burn all funds by transferring them to address(0) for example.
We suggest at least check it isn't 0. Maybe even make it a two phase check that to verify you put the right address.
Handle
pants
Vulnerability details
Treasury setAdmin function doesn't check the new admin is a valid one. The admin has too much power to actually burn all funds by transferring them to address(0) for example. We suggest at least check it isn't 0. Maybe even make it a two phase check that to verify you put the right address.