Assessment reports>Falcon Finance>Threat Model>collect

Function: collect(uint256 tokenId)

This function collects accrued fees for the position.

Inputs

  • tokenId

    • Control: 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 tokensOwed to the caller.

Negative behavior

  • If yield collection is not enabled, the transaction will be reverted.

Zellic © 2025Back to top ↑