Assessment reports>StakeKit FeeWrapper>Threat Model>setProviderFee

Function: setProviderFee(address depositContract, address depositToken, uint16 providerFee)

This function is used to set the provider's share of the fee in 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.

  • providerFee

    • Control: Arbitrary.

    • Constraints: Value between zero and 10,000.

    • Impact: Provider's share of the fee in basis points.

Branches and code coverage

Intended branches

  • Update the provider fee.

Negative behavior

  • Revert if the caller is not the contract owner.

  • Revert if the provider fee is greater than 10,000.

  • Revert if the fee configuration does not exist.

Zellic © 2024Back to top ↑