ikigai-labs-xyz / DeFi-Circuit-Breaker-EIPs

The Ethereum Improvement Proposal repository
https://eips.ethereum.org/
Creative Commons Zero v1.0 Universal
3 stars 2 forks source link

Adding Nomad hack replica with circuit breaker implementation protecting from the exploit #15

Closed deliriusz closed 11 months ago

deliriusz commented 11 months ago

This PR handles issue #11 . It's a complete, self-contained Nomad hack replica with Circuit Breaker enabled. This code modifies original Nomad code to show how the attack could be prevented by using Circuit Breaker.

Running the tests requires no additional action - it reuses Circuit Breaker from src/ folder and is set as a part of test suite under test/hack-replica/nomad. Running forge test automatically runs Nomad test as well.

valeriofichera commented 11 months ago

great job, thanks a lot :)