Assessment reports>StakeKit FeeWrapper>Threat Model>setFeeRecipient

Function: setFeeRecipient(address depositContract, address depositToken, address feeRecipient)

This function is used to set the fee recipient of a fee configuration. This function can only be called by the contract owner.

Inputs

  • depositContract

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the deposit contract.

  • depositToken

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the deposit token.

  • feeRecipient

    • Control: Arbitrary.

    • Constraints: Nonzero.

    • Impact: Address of the fee recipient.

Branches and code coverage

Intended branches

  • Update the fee recipient.

Negative behavior

  • Revert if the caller is not the contract owner.

  • Revert if the fee configuration does not exist.

Zellic © 2024Back to top ↑