Assessment reports>Bracket Fi Escrow>Threat Model>depositETH

Function: depositETH()

The function can be utilized for depositing ETH into the escrow contract.

Branches and code coverage

Intended branches

  • Wrap the deposited ETH to WETH, then increase the totalStaked value of WETH, and increase the value of usersBalance of user for that token.

Negative behavior

  • Revert if msg.value is 0.

Function call analysis

  • this._getStorage()

    • What is controllable? N/A.

    • If the return value is controllable, how is it used and how can it go wrong? Returns the storage slot.

    • What happens if it reverts, reenters or does other unusual control flow? N/A.

Zellic © 2024Back to top ↑