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
sharesControl: Fully controlled by the basket token.
Constraints: None.
Impact: The amount of shares to be collected.
Branches and code coverage
Intended branches
Update
claimableSponsorFeesfor the givenbasketTokenwith thesponsorFeesplit by thesponsorFeeSplit.Update
claimableTreasuryFeesfor the givenbasketTokenwith the remainingsharesafter 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.