Assessment reports>warpdotgreen-cli>Threat Model>rescueAsset

Function: rescueAsset(address _assetContract, address[] _receivers, uint256[] _amounts)

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

Inputs

  • _assetContract

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the ERC-20 token to transfer.

  • _receivers

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Array of addresses to receive the tokens.

  • _amounts

    • Control: Arbitrary.

    • Constraints: None.

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

Branches and code coverage

Intended branches

  • Send tokens to the receivers.

Negative behavior

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

Zellic © 2024Back to top ↑