Skip to main content
Every vault supports three farm types. All three should be created during vault initialization for full functionality:
FarmPurposeSDK Support
Vault FarmDistributes rewards to depositors (receipt token holders)Available
First Loss Capital FarmHolds manager-deposited capital that absorbs losses before depositorsAvailable
Autocompound FarmDistributes rewards in the deposit token, automatically compounding into vault positionsComing soon
The SDK’s createVaultIxs method automatically generates instructions for both the Vault Farm and First Loss Capital Farm during vault initialization. See Creating a Vault for the full creation flow. If farms are not created during initialization, they can be created and attached post-creation using the methods described below.

Vault Farm

A vault farm enables reward distribution to depositors (receipt token holders). One farm per vault; it must be created and attached before rewards can be distributed.

Creating a Farm

Farm creation is a single transaction that:
  1. Creates the farm
  2. Attaches it to the vault
  3. Transfers farm authority to the protocol
Parameter: Farm (farm public key) — immutable after creation.

Cooldown Period

Configured when setting up reward distribution. The cooldown period is a delay before reward claims become available.Purpose: Prevents the exploit where depositors deposit, claim rewards immediately, and withdraw. The cooldown ensures depositors have meaningful exposure before claiming.

First Loss Capital Farm

Manager-deposited capital that absorbs vault losses before depositors incur any loss.
ParameterTypeDescription
FirstLossCapitalFarmPublic keyFarm holding the first loss capital buffer
TokenToken typeAsset deposited as first loss capital
Lockup PeriodDurationPeriod during which capital is locked and cannot be withdrawn

Loss Waterfall

Vault bad debt
  → First Loss Capital buffer absorbs losses
    → If buffer depleted, depositors incur loss
Setup: Create a vault farm → configure token and lockup period → deposit assets.
First loss capital provides depositors with a safety buffer, increasing vault attractiveness. The lockup period ensures the buffer remains available during adverse conditions.

Autocompound Farm

Parameter: VaultAutocompoundFarm (farm public key)A farm that distributes rewards in the vault’s deposit token, automatically compounding into vault positions.Example: A USDC vault with an autocompound farm distributes USDC rewards that are automatically reinvested into the vault — increasing depositor positions without manual claiming.
SDK support for creating the Autocompound Farm will be added in a future release. Currently, it can be configured via the UI.

Crank Fund Fee

Parameter: CrankFundFeePerReserve (fee amount per reserve)Fee charged per reserve to fund crank operations that maintain vault state and execute rebalancing. This covers the computational costs of off-chain bots that trigger on-chain state updates.