Kamino Integration
Integration adapter for Kamino Lending, Kamino Vaults, and Kamino Farms. It performs CPI into Kamino programs with the GLAM vault PDA as the authority and enforces protocol enablement, delegate permissions, and market/vault policies.
Accounts owned or controlled
| Account | Owner / authority | Purpose |
|---|---|---|
| Integration authority PDA | Kamino Integration | Program-derived authority used for integration-level signing during Kamino CPI calls. |
| Kamino user, obligation, farm, and vault accounts | Kamino programs with GLAM vault authority | External protocol accounts created or updated by the integration for GLAM-managed positions. |
Integration notes
- Kamino Integration must be enabled on the vault before integration actions can run. Delegate permissions are still required for non-owner callers.
- Relevant official references: [Kamino documentation](https://kamino.com/docs/overview).
Instructions
18 total
| Instruction | Description |
|---|---|
| farms_harvest_reward | Harvests Kamino Farms rewards for a vault-owned farm position. |
| farms_initialize_user | Initializes Kamino Farms user state for a GLAM vault. |
| farms_stake | Stakes vault-held tokens into a Kamino farm. |
| farms_unstake | Unstakes vault-owned tokens from a Kamino farm. |
| farms_withdraw_unstaked_deposits | Withdraws previously unstaked Kamino farm deposits back to vault control. |
| lending_borrow_obligation_liquidity_v2 | Borrows liquidity from Kamino Lending against a vault-owned obligation. |
| lending_deposit_reserve_liquidity_and_obligation_collateral_v2 | Deposits reserve liquidity into Kamino Lending and receives obligation collateral for the vault. |
| lending_init_obligation | Initializes a Kamino Lending obligation owned by the GLAM vault. |
| lending_init_obligation_farms_for_reserve | Initializes Kamino farm state associated with a lending obligation and reserve. |
| lending_init_user_metadata | Initializes Kamino Lending user metadata for the GLAM vault. |
| lending_liquidate_obligation_and_redeem_reserve_collateral_v2 | Liquidates a Kamino obligation and redeems reserve collateral through the GLAM integration. |
| lending_repay_obligation_liquidity_v2 | Repays Kamino Lending liquidity borrowed by a vault-owned obligation. |
| lending_request_elevation_group | Requests an elevation group change for a vault-owned Kamino Lending obligation. |
| lending_withdraw_obligation_collateral_and_redeem_reserve_collateral_v2 | Withdraws Kamino obligation collateral and redeems it back to reserve liquidity for the vault. |
| set_lending_policy | Sets Kamino lending market and borrow allowlists. |
| set_vaults_policy | Sets Kamino vault account allowlist. |
| vaults_deposit | Deposits vault assets into an allowlisted Kamino vault. |
| vaults_withdraw | Withdraws shares or assets from a Kamino vault back to the GLAM vault. |