sablier-labs / v2-core

⏳ Core smart contracts of the Sablier V2 token distribution protocol
https://sablier.com
Other
307 stars 43 forks source link

Emit events prior to hook calls in `renounce` and `withdraw` #939

Closed smol-ninja closed 3 months ago

smol-ninja commented 3 months ago

As reported during the Codehawk public audit, emitting events prior to the hook calls will reduce the impact of gas bomb attacks. Thus, all events should be emitted before the hooks are called.