Assessment reports>Lido Gateway>Threat Model>constructor

Function: constructor(address l2ScrollMessenger, address ethereumGovernanceExecutor, uint256 delay, uint256 gracePeriod, uint256 minimumDelay, uint256 maximumDelay, address guardian)

Deploys a new L2BridgeExecutor contract with l2ScrollMessenger.

Inputs

  • l2ScrollMessenger

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: The l2ScrollMessenger contract address.

  • ethereumGovernanceExecutor

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: The ethereumGovernanceExecutor contract address.

  • delay

    • Control: Fully controlled by the caller.

    • Constraints: Checked to be greater than minimumDelay and less than maximumDelay.

    • Impact: The delay before which an actions set can be executed.

  • gracePeriod

    • Control: Fully controlled by the caller.

    • Constraints: Checked to be greater than MINIMUM_GRACE_PERIOD.

    • Impact: The time period after a delay during which an actions set can be executed.

  • minimumDelay

    • Control: Fully controlled by the caller.

    • Constraints: Checked to be less than maximumDelay.

    • Impact: The minimum bound a delay can be set to.

  • maximumDelay

    • Control: Fully controlled by the caller.

    • Constraints: Checked to be greater than minimumDelay.

    • Impact: The maximum bound a delay can be set to.

  • guardian

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: The guardian address.

Branches and code coverage (including function calls)

Intended branches

  • Set all the parameters, including the L2_SCROLL_MESSENGER address.

Zellic © 2024Back to top ↑