Function: settle(uint256 unSettleProfit)

This function settles a specified amount of profit, distributing it between the protocol's treasury and the strategy vault according to the carry rate.

Inputs

  • unSettleProfit

    • Control: Controlled by the caller with ADMIN_ROLE.

    • Constraints: None.

    • Impact: The amount of profit to be settled and distribute.

Branches and code coverage

Intended branches

  • Distributes profit between the protocol's treasury and the strategy vault according to the carry rate.

Negative behavior

  • Reverts if the caller does not have the ADMIN role.

  • Reverts if unSettleProfit is bigger than the current profit of the vault.

Zellic © 2025Back to top ↑