Skip to content

Orchestrator's rebase protection broken due to EIP-7702 #298

Description

@pmerkleplant

The orchestrator performs a check in rebase() trying to prevent contracts from executing the rebase. IIUC the idea behind this is to prevent sandwiching AMPL's supply adjustment.

https://github.com/ampleforth/ampleforth-contracts/blob/1d13ed3bcd32772ddba91355579b87d07e3551db/contracts/Orchestrator.sol#L44

However, since the Pectra fork launched on Ethereum mainnet it's possible for EOAs to have executable logic, see EIP-7702. This update renders the check mostly useless.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions