-
Notifications
You must be signed in to change notification settings - Fork 1
bin2chen - changeTreasury() Lack of check and remove old #208
Comments
Keeping it separate from 435 because of whitelist observation (1) |
You've created a valid escalation for 10 USDC! To remove the escalation from consideration: Delete your comment. You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final. |
fix Pr: Y2K-Finance/Earthquake#137 |
Escalation accepted Added relevant duplicates based on whitelist observation |
This issue's escalations have been accepted! Contestants' payouts and scores will be updated according to the changes made on this issue. |
Fixes look good. Carousel now directly uses the treasury address sent on factory |
bin2chen
medium
changeTreasury() Lack of check and remove old
Summary
changeTreasury() Lack of check and remove old
Vulnerability Detail
changeTreasury() used to set new treasury
The code is as follows:
The above code has the following problem:
Impact
whiteListAddress abnormal
Code Snippet
https://github.com/sherlock-audit/2023-03-Y2K/blob/main/Earthquake/src/v2/VaultFactoryV2.sol#L228
Tool used
Manual Review
Recommendation
The text was updated successfully, but these errors were encountered: