Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 596 Bytes

077.md

File metadata and controls

24 lines (16 loc) · 596 Bytes

Brief Vinyl Rat

medium

Missing emit for an admin function

Summary

Missing emit for an admin function

Vulnerability Detail

Forgotten emit on toggleExchanges function which will pause the contract. This is a function that should emit an event, because otherwise webpage will not catch that a contract is paused.

Impact

No connection between contract status and contract status of the web page

Code Snippet

https://github.com/sherlock-audit/2024-04-alchemix/blob/main/v2-foundry/src/CrossChainCanonicalBase.sol#L149-L151

Tool used

Manual Review

Recommendation

Add Emit