Since if admin
once set at zero then admin
can not be changed since only current admin can change it and it is set to zero. So to avoid this situation when admin is getting updated, we must ensure that admin must not be set at zero by placing the address(0) check before setting admin.
https://github.com/Cyfrin/2024-05-Sablier/blob/main/v2-core/src/abstracts/Adminable.sol#L34-L40
Check newAdmin
param for address(0) check before updating the admin with it.
https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity
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.