Assessment reports>Mantle>Threat Models>depositETHTo

Function: depositETHTo(address _to, uint32 _l2Gas, byte[] _data)

Deposits ETH to address _to.

Inputs

  • _to

    • Control: User.

    • Constraints: Discarded.

    • Impact: Account to give the deposit to on L2.

  • _l2Gas

    • Control: User.

    • Constraints: Discarded.

    • Impact: Gas limit required to complete the deposit on L2.

  • _data

    • Control: User.

    • Constraints: Discarded.

    • Impact: Optional data to forward to L2.

Branches and code coverage (including function calls)

Intended branches

  • Successfully deposits ETH if all the conditions are met.

Zellic © 2024Back to top ↑