Assessment reports>Gasp Node and Monorepo>Threat Model>deposit_native

Function: deposit_native()

This function is for depositing ETH to the contract.

Branches and code coverage

Intended branches

  • Add the request for the deposit.

  • Emit the events DepositAcceptedIntoQueue by using depositRequest's information.

Negative behavior

  • Revert when the msg.value is zero.

Zellic © 2025Back to top ↑