Assessment reports>EtherFi>Threat Models>setClaimReceiverContract

Function: setClaimReceiverContract(address _receiverContract)

Sets the contract that will receive claimed funds.

Inputs

  • _receiverContract

    • Control: Fully controlled.

    • Constraints: Cannot be address(0).

    • Impact: User funds are transferred to this contract when funds are claimed.

Branches and code coverage (including function calls)

Intended branches

  • The claim receiver contract address is set successfully.

  • The required events are emitted.

Negative behavior

  • Should fail if not called by the owner.

  • Should fail if the address of the contract is address(0).

Zellic © 2024Back to top ↑