> ## Documentation Index
> Fetch the complete documentation index at: https://pessoal-86816071.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Kamino

> How Kamino is integrated, which bundle path is supported, and how to validate it.

# Kamino

`kamino-stable-carry` is the main carry sleeve in the MVP.

The implementation lives in [services/adapters/src/kamino.ts](/Users/giovanna-britto/Documents/PROJETOS/vault-solana/services/adapters/src/kamino.ts).

## Supported paths

### Fixture mode

Used for deterministic offline demos and tests.

### SDK mode

Used when `KAMINO_RPC_URL` is set.

The adapter can emit:

* refresh instructions
* ATA creation instructions
* obligation initialization when needed
* deposit and withdraw actions from the Kamino SDK

## Main environment variables

| Variable                | Purpose                               |
| ----------------------- | ------------------------------------- |
| `KAMINO_RPC_URL`        | Solana RPC used by the Kamino adapter |
| `KAMINO_OWNER_ADDRESS`  | Kamino owner expected by the SDK      |
| `KAMINO_MARKET_ADDRESS` | Kamino market address                 |
| `KAMINO_RESERVE_SYMBOL` | Reserve symbol, default `USDC`        |

## Validation order

1. `node --experimental-strip-types services/ranger/src/kamino-smoke.ts`
2. confirm `executionSource` is `kamino-sdk`
3. confirm `instructionEnvelopes` are present
4. only then wire the flow into a vault rebalance

## Practical note

The current repo validates Kamino in build-only mode before using it as part of the full vault lifecycle.
