Assessment reports>Cove>Threat Model>notifyHarvestFee

Function: notifyHarvestFee(uint256 shares)

This function is used to notify the FeeCollector of the fees collected from the basket token and increase the claimable fees for the sponsor and treasury.

Inputs

  • shares

    • Control: Fully controlled by the basket token.

    • Constraints: None.

    • Impact: The amount of shares to be collected.

Branches and code coverage

Intended branches

  • Update claimableSponsorFees for the given basketToken with the sponsorFee split by the sponsorFeeSplit.

  • Update claimableTreasuryFees for the given basketToken with the remaining shares after the sponsor fee split.

Negative behavior

  • Revert if the caller is not a basket token.

Function call analysis

  • this._checkIfBasketToken(basketToken) -> this._basketManager.hasRole(FeeCollector._BASKET_TOKEN_ROLE, token)

    • What is controllable? basketToken.

    • If the return value is controllable, how is it used and how can it go wrong? N/A.

    • What happens if it reverts, reenters or does other unusual control flow? N/A.

Zellic © 2025Back to top ↑