Emergency withdraw funds should go to the new treasury address instead of old treasury during Emergency situations. .
The emergencyWithdraw allows the EMERGENCY_ROLE owner to call the function during emergency situations to withdraw funds to the `tresury.
Consider the emergency situation. Admin call setTreasury to update treasury . In that period(TREASURY_UPDATE_DELAY) emergencyWithdraw is invoked due to emergency situation. Then funds is transferred to old treasury instead of new treasury.
Funds will go to the old treasury instead of the pending/new on emergency situations.
Manual review
Since the EMERGENCY_ROLE is trusted, allow the role to specify a param for where to send the funds
Or when in pending treasury is added, then send the funds to the pending tresury.
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.