Function: setFee(uint256 _fee)

This function is used to set the fee for the pool.

Inputs

  • _fee

    • Control: Arbitrary.

    • Constraints: Less than or equal to 10%.

    • Impact: Value of the new fee.

Branches and code coverage

Intended branches

  • Invoke the claimFees function if the fee is greater than zero.

  • Update the fee.

Negative behavior

  • Revert if the caller does not have the governance role.

  • Revert if the fee is too high.

Zellic © 2025Back to top ↑