Assessment reports>MegaETH Predeposit>Threat Model>setPermitSigner

Function: setPermitSigner(address newPermitSigner)

This function is used to set the new permit signer. It is only callable by the owner.

Inputs

  • newPermitSigner

    • Control: Arbitrary address.

    • Constraints: Must not be zero.

    • Impact: New permit signer.

Branches and code coverage

Intended branches

  • Emit the PermitSignerUpdated event.

  • Update permitSigner.

Negative behavior

  • Revert if the caller is not the owner.

  • Revert if the new permit signer is zero.

Zellic © 2025Back to top ↑