Assessment reports>MegaETH Predeposit>Threat Model>setEthPerUser

Function: setEthPerUser(uint256 _ethPerUser)

This function is used to set Ether (that is claimable by the user) per user. It is only callable by the owner.

Inputs

  • _ethPerUser

    • Control: Arbitrary uint256.

    • Constraints: None.

    • Impact: New ETH amount per user.

Branches and code coverage

Intended branches

  • Update ethPerUser.

  • Emit the EthPerUserUpdated event.

Negative behavior

  • Revert if the caller is not the owner.

Zellic © 2025Back to top ↑