| Farm | Purpose | SDK Support |
|---|---|---|
| Vault Farm | Distributes rewards to depositors (receipt token holders) | Available |
| First Loss Capital Farm | Holds manager-deposited capital that absorbs losses before depositors | Available |
| Autocompound Farm | Distributes rewards in the deposit token, automatically compounding into vault positions | Coming 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.- UI
- SDK
- API
- Kamino CLI
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:- Creates the farm
- Attaches it to the vault
- Transfers farm authority to the protocol
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.| Parameter | Type | Description |
|---|---|---|
FirstLossCapitalFarm | Public key | Farm holding the first loss capital buffer |
| Token | Token type | Asset deposited as first loss capital |
| Lockup Period | Duration | Period during which capital is locked and cannot be withdrawn |
Loss Waterfall
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.