Assessment reports>StakeKit FeeWrapper>Threat Model>computeFee

Function: computeFee(uint256 amount, FeeConfig feeConfig)

This function is used to compute the fee amount based on the deposit amount and fee configuration.

Inputs

  • amount

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Value of the amount that the fee is computed on.

  • feeConfig

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Fee configuration.

Branches and code coverage

Intended branches

  • Calculate the fee amount.

Zellic © 2024Back to top ↑