> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thaler.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Lending markets

> The lending leg of a Thaler vault. How the deposit-borrow loop works, why the spread is positive over time, and how the policy bounds the position.

## Role within the vault

After the staking leg, the vault holds a liquid staking token (jitoSOL or mSOL). The lending leg supplies that token as collateral on a lending market and borrows SOL against it. A portion of the borrowed SOL is restaked into the same LST; the remainder funds the perpetual hedge.

The leg simultaneously earns three rates:

| Component                         | Direction | Source                   |
| --------------------------------- | --------- | ------------------------ |
| Staking yield on the supplied LST | Income    | Solana network           |
| Lending supply yield              | Income    | Kamino borrowers         |
| SOL borrow rate                   | Cost      | Paid to Kamino suppliers |

When the sum of income components exceeds the borrow cost, the leg adds yield to the vault. The protocol selects configurations where this has been the case across the live history of the supported venues.

## Supported markets

| Market       | Status      |
| ------------ | ----------- |
| Kamino Lend  | Live        |
| Jupiter Lend | Coming next |
| MarginFi     | Coming next |

The lending leg currently runs on **Kamino Lend**. Kamino is a Solana lending market with on-chain liquidity, public reserves, and well-documented liquidation parameters. The vault uses Kamino because:

* It accepts jitoSOL and mSOL as supply collateral with reasonable loan-to-value caps.
* Its borrow rate model is curve-based and updates continuously with utilisation, which makes the spread predictable.
* It exposes a programmatic interface that the worker can use without manual intervention.

When the additional markets come online, vaults route to whichever venue offers the best risk-adjusted spread at the moment of execution, subject to the constraints in the policy.

## Loan-to-value and liquidation buffer

The vault never operates at the maximum loan-to-value that Kamino permits. The policy bakes in a buffer between the working LTV and the liquidation threshold so that ordinary market moves do not trigger a forced unwind.

The buffer is calibrated so that:

* Routine volatility does not bring the position close to liquidation.
* A large adverse move triggers a rebalance, not a liquidation.
* The worker has time to act before any external party can step in.

The exact buffer and rebalance thresholds are part of the policy extension and visible on chain once a vault is created. They are not published in aggregate because they would compose into the strategy signature.

## Why the spread is usually positive

Lending markets price borrow rates above supply rates. The vault is on both sides of the same market: it supplies a yield-bearing token (earning the supply rate plus the underlying staking yield) and borrows SOL (paying the SOL borrow rate). Across history, the supply yield plus the staking yield on the collateral has exceeded the borrow rate on SOL by a workable margin on Kamino.

When the spread compresses or inverts, the worker reduces the size of the lending leg. When it widens, the worker can extend the leg back to its normal range. The decision is made within the policy bounds; nothing the worker does can move outside them.

## Worker response to rate changes

| Event                                            | Worker response                                                                  |
| ------------------------------------------------ | -------------------------------------------------------------------------------- |
| Borrow rate rises above the configured threshold | Reduce the lending leg, increase the hedge weight                                |
| Supply yield drops on Kamino                     | Reduce the leg until the spread is positive again                                |
| LTV approaches the buffer line                   | Rebalance by repaying borrow before liquidation can be triggered                 |
| LST discount widens                              | Pause new borrows, hold existing position, route the next vault to the other LST |

Every response is bounded by the policy extension. There is no override path.

## Next read

<Columns cols={2}>
  <Card title="Perpetual markets" icon="scale" href="/strategies/perpetual-markets">
    The hedge leg that pairs with the long SOL exposure introduced here.
  </Card>

  <Card title="Custody and policy" icon="key" href="/overview/custody-and-policy">
    Where the LTV buffer, leverage cap, and rebalance thresholds live inside the policy
    extension.
  </Card>
</Columns>
