Function: collect(uint256 tokenId)
This function collects accrued fees for the position.
Inputs
tokenIdControl: Fully controlled by the caller.
Constraints: N/A.
Impact: ID of position NFT.
Branches and code coverage
Intended branches
Check if yield collection is enabled.
Update position with accrued fees.
Transfer
tokensOwedto the caller.
Negative behavior
If yield collection is not enabled, the transaction will be reverted.