Skip to content

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

@pmerkleplant

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.

require(msg.sender == tx.origin); // solhint-disable-line avoid-tx-origin

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.

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