Assessment reports>warpdotgreen-cli>Threat Model>rescueEther

Function: rescueEther(address[] _receivers, uint256[] _amounts)

This function is used to send stuck Ether, or Ether mistakenly sent to the contract, to a list of addresses. This function is only callable by the contract owner.

Inputs

  • _receivers

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Array of addresses to receive the Ether.

  • _amounts

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Corresponding amounts of Ether to be sent to the receivers.

Branches and code coverage

Intended branches

  • Send Ether to the receivers.

Negative behavior

  • Revert if the function is not called by the owner.

Zellic © 2024Back to top ↑