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

Scroll OO Issue #1 - Improve Circuit Breaker Contract #9

Open valeriofichera opened 11 months ago

valeriofichera commented 11 months ago

Description The goal of of this issue is to improve the current Circuit Breaker implementation in regards to

This will contribute to the success and adoption of Circuit Breakers as a novel security measure for asset-sensitive smart contracts.

Circuit Breaker Contracts follow the ethos of the development under EIP-7265 -> https://ethereum-magicians.org/t/eip-7265-circuit-breaker-standard/14909

Requirements

  1. Add natspec in base CircuitBreaker contract https://docs.soliditylang.org/en/latest/natspec-format.html

  2. Use the latest Circuit Breaker Implementation here: https://github.com/ikigai-labs-xyz/DeFi-Circuit-Breaker-EIPs/tree/new-architecture/assets/eip-7265

  3. Do gas-estimation of how costly it is to update parameter

    • check status if it is in one transaction (for example a swap on a protocol or a deposit on an LP position)
  4. Pre-requisites

    • Merge periods
    • all gas-optimize tasks
    • all simplify tasks

    Stack

Pull Request Structure