bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 70쪽
urity during which rollover *into the same or another fixed-term reserve* is allowed. `0` disables fixed→fixed rollover entirely. |
| `open_term_rollover_window_duration_seconds` | The window before maturity during which rollover *from a fixed-term borrow into an open-term (floating) reserve* is allowed. `0` disables fixed→open rollover. |
A typical configuration sets both windows to the same duration (e.g. 24 hours). The windows must be long enough that the rollover keeper bot can complete the operation across all eligible positions before each cohort of maturities passes. Past the term end, rollover is no longer possible — the borrow transitions directly to liquidation eligibility.
`obligation_borrow_migration_to_fixed_execution_enabled` enables a third, separate rollover mode — open-term to fixed-term — which has no time window; it can be performed at any time once the flag is on.
## Post-maturity liquidation throttle
| Parameter | Effect |
| - | - |
| `term_based_full_liquidation_duration_secs` | When a borrow passes its term without rollover or repay, the liquidatable fraction ramps linearly from 0% (at term end) to 100% over this duration. `0` disables the throttle (full liquidation immediately at term end). |
| `min_partial_rollover_value` | Minimum value for a partial rollover. Below this, partial rollover is rejected to avoid dust state. |
The throttle gives borrowers a graceful window to react after they've missed the rollover window — partial liquidation provides increasing pressure rather than a cliff. Set it long enough that a missed-rollover position has time to be repaid voluntarily before being fully unwound, but short enough that capital doesn't sit indefinitely against expired terms. A few days is typical.
The per-reserve `min_deleveraging_bonus_bps`, `max_liquidation_bonus_bps`, and `deleveraging_bonus_increase_bps_per_day` (set on each reserve, not the market) drive the *bonus* paid to liquidators across the throttle window. If those are zero, liquidators have no incentive — set them to produce meaningful per-day increase capped at a reasonable maximum.
## Configuring market settings
All of the above parameters live in the market config JSON and are applied through the standard `update-lending-market-from-config` flow:
```bash theme={null}
# Download current config
yarn kamino-manager download-lending-market-config \
--lending-market <MARKET_ADDRESS>
# Edit ./configs/{MARKET_ADDRESS}/market-{MARKET_ADDRESS}.json
# Set the FR-related flags and durations
# Preview
yarn kamino-manager update-lending-market-from-config \
--lending-market <MARKET_ADDRESS> \
--lending-market-config-path ./configs/<MARKET_ADDRESS>/market-<MARKET_ADDRESS>.json \
--mode inspect
# Apply
yarn kamino-manager update-lending-market-from-config \
--lending-market <MARKET_ADDRESS> \
--lending-market-config-path ./configs/<MARKET_ADDRESS>/market-<MARKET_ADDRESS>.json \
--mode execute
```
See [Market Settings](/docs/curators/markets/market-settings) for the broader market-config workflow including ownership transfer and multisig mode.
## What's next
<CardGroup>
<Card title="Lifecycle Operations" icon="timeline" href="/docs/curators/markets/fixed-rates/lifecycle-operations">
Updating an existing fixed-rate reserve and sunsetting patterns.
</Card>
<Card title="Risk Considerations" icon="shield" href="/docs/curators/markets/fixed-rates/risk">
Risks specific to running fixed-rate reserves.
</Card>
</CardGroup>
# Reserve Configuration
Source: https://kamino.com/docs/curators/markets/fixed-rates/reserve-configuration
Anatomy of a fixed-rate reserve and how to create one
A fixed-rate reserve uses the same primitives as a floating reserve plus four config fields that pin the rate and impose a term. This page covers what those fields mean and the workflow for creating a reserve.
## What pins a fixed-rate reserve
| Field | Type | Meaning |
| - | - | - |
| `borrow_rate_curve` | piecewise-linear curve | For a fixed-rate reserve, configured as a **flat curve** at the target rate. Borrowers pay this rate regardless of utilization. |
| `host_fixed_interest_rate_bps` | u16 | Optional **additional** spread layered on top of the curve, charged to the borrower and accruing 100% to the protocol (not lenders). Default `0`. |
| `debt_term_seconds` | u64 | Per-borrow term. The borrower's loan matures at `last_borrowed_at_timestamp + debt_term_seconds`. `0` = open-term (the reserve behaves as floating). |
| `debt_maturity_timestamp` | u64 | Reserve-wide sunset timestamp. After this, no new borrows are accepted and existing borrows become liquidatable. `0` = no sunset. |
| `early_repay_remaining_interest_pct` | u8 (0–100) | Penalty for repaying inside the first term. Penalty = projected interest for the remaining term × this percentage. Accrues to protocol fees on the debt reserve. |
`debt_term_seconds` and `debt_maturity_timestamp` are independent. Set neither (effectively a floating reserve), one, or both. Use `debt_term_seconds` to express *every borrow gets a 3-month clock starting at borrow time*. Use `debt_maturity_timestamp` to express *this whole reserve sunsets on January 1*. The two compose: a reserve with both constraints requires every borrow to fit inside the remaining time until reserve maturity.
<Info>
**The borrower's effective rate is the `borrow_rate_curve` value at current utilization plus `host_fixed_interest_rate_bps`.** For most fixed-rate reserves you want a flat `borrow_rate_curve` at the desired rate and `host_fixed_interest_rate_bps = 0`. Set a non-zero `host_fixed_interest_rate_bps` only when you intentionally want a protocol-side spread on top of the lender-facing rate.
</Info>
## Creating a fixed-rate reserve
A fixed-rate reserve is created the same way as a floating one — the difference is in the config you supply.
<Tabs>
<Tab title="Kamino CLI">
<Steps>
<Step title="Add the reserve to your market">
```bash theme={null}
yarn kamino-manager add-asset-to-market \
--market <MARKET_ADDRESS> \
--token-mint <DEBT_TOKEN_MINT> \
--mode execute
```
This creates a new reserve account against the specified mint. Multiple reserves for the same mint can coexist in a market — each one is its own independent pool with its own config.
</Step>
<Step title="Download the default reserve config">
```bash theme={null}
yarn kamino-manager download-reserve-config \
--market <MARKET_ADDRESS> \
--reserve <RESERVE_ADDRESS> \
--output ./configs/fixed_rate_reserve_config.json \
--mode inspect
```
</Step>
<Step title="Edit the config for fixed-rate behaviour">
In the JSON, set:
* `borrowRateCurve.points` — flat curve at the target rate. Both endpoints set to the same `borrowRateBps`. See pattern below.
* `debtTermSeconds` — term in seconds (e.g. `7776000` for 90 days, `2592000` for 30 days).
* `debtMaturityTimestamp` — only if you want the entire reserve to sunset on a specific date; otherwise leave at `0`.
* `earlyRepayRemainingInterestPct` — typical values are 10–25% (the first-term-only penalty).
* `hostFixedInterestRateBps` — usually `0`. Only set if you want a protocol-side spread.
**Example flat curve at 5.5%:**
```json theme={null}
"borrowRateCurve": {
"points": [
{ "utilizationRateBps": 0, "borrowRateBps": 550 },
{ "utilizationRateBps": 10000, "borrowRateBps": 550 }
]
}
```
The remaining points in the curve array should be padded to the same final value (the SDK and CLI handle padding automatically when you start from a flat curve).
</Step>
<Step title="Set risk parameters">
Standard reserve risk params still apply — set them appropriate to the collateral, not to the term:
* `loanToValuePct`, `liquidationThresholdPct` — the same curve as the floating-rate reserve for the same debt token typically applies. Term doesn't change credit risk; collateral does.
* `minLiquidationBonusBps`, `maxLiquidationBonusBps`, `deleveragingBonusIncreaseBpsPerDay` — these matter especially for fixed-rate because protocol-enforced liquidation (term/maturity breach) ramps the bonus from min to max linearly per day. Set values that produce a meaningful incentive curve for liquidators.
See [Reserve Parameters](/docs/curators/markets/reserve-parameters) for the full parameter reference.
</Step>
<Step title="Preview and apply">
```bash theme={null}
yarn kamino-manager update-reserve-config \
--market <MARKET_ADDRESS> \
--reserve <RESERVE_ADDRESS> \
--reserve-config ./configs/fixed_rate_reserve_config.json \
--mode inspect
```
Then re-run with `--mode execute` (or `--mode multisig` to produce a Squads payload).
</Step>
</Steps>
<Warning>
Reserve config changes typically have a lock time (\~4 hours) before they take effect on-chain. Plan parameter changes ahead of testing windows; the change won't be live immediately even after the multisig executes.
</Warning>
</Tab>
<Tab title="SDK">
<Info>
**Reserve creation and configuration are not available via the TypeScript SDK.** Use the Kamino CLI for these admin operations. The SDK supports reading reserve data and building borrower-facing transactions.
</Info>
For reading FR-specific reserve fields:
```typescript theme={null}
import { KaminoReserve, Reserve } from '@kamino-finance/klend-sdk';
const reserve = await KaminoReserve.fetch(rpc, reserveAddress);
const kind = reserve.getKind();
if (kind.isFixedRate()) {
console.log({
borrowRateBps: kind.borrowRateBps,
debtTermSeconds: kind.debtTermSeconds.toString(),
fixedHostRate: reserve.getFixedHostInterestRate().toString(),
});
}
```
For market-level discovery:
```typescript theme={null}
import { KaminoMarket } from '@kamino-finance/klend-sdk';
const market = await KaminoMarket.load(rpc, marketAddress);
// All reserves for a debt token, split by rate model:
const allUsdcReserves = market.getReservesByMint(usdcMint);
const floatingUsdcReserves = market.getFloatReservesByMint(usdcMint);
const fixedUsdcReserves = market.getFixedReservesByMint(usdcMint);
```
</Tab>
<Tab title="API">
<Info>
**Reserve creation and configuration are not available via the REST API.** Use the Kamino CLI. The API supports reading reserve metrics and historical data.
</Info>
To read raw reserve account data including FR-specific fields:
```bash theme={null}
GET /kamino-market/reserves/account-data
```
Returns base64-encoded reserve accounts. Decode using the SDK's `Reserve` codegen to access `hostFixedInterestRateBps`, `debtTermSeconds`, `debtMaturityTimestamp`, and `earlyRepayRemainingInterestPct`. The standard metrics endpoint `GET /kamino-market/{pubkey}/reserves/metrics` does not currently surface these fields.
</Tab>
</Tabs>
## What's next
<CardGroup>
<Card title="Market Settings" icon="toggle-on" href="/docs/curators/markets/fixed-rates/market-settings">
Enable the market-level features that fixed-rate reserves depend on.
</Card>
<Card title="Lifecycle Operations" icon="timeline" href="/docs/curators/markets/fixed-rates/lifecycle-operations">
Update or sunset an existing fixed-rate reserve.
</Card>
</CardGroup>
# Risk Considerations
Source: https://kamino.com/docs/curators/markets/fixed-rates/risk
Risks specific to running fixed-rate reserves and the parameters that mitigate them
Running a fixed-rate reserve introduces a few risk surfaces that don't exist for floating reserves. This page is the framework for thinking about them and the parameters you control to manage them.
## Risk-mitigation matrix
| Risk | Description | Mitigation |
| - | - | - |
| **Term too short for asset volatility** | A 1-month term on a volatile collateral may not give borrowers enough time to manage drawdowns through one cycle. | Match term to collateral volatility profile. Stable collateral can carry longer terms; volatile collateral should be capped at shorter durations. |
| **Rate too low → no demand** | Set below floating-market clearing rates and conditional liquidity won't be deployed; reserve sits empty. | Reference the floating reserve's recent borrow rate and add a small term premium. Adjust based on the rate grid's emerging shape. |
| **Rate too high → no fills** | Set well above floating, and vaults won't allocate, borrowers won't post matching orders. | Same — calibrate against the floating curve. |
| **Insufficient rollover window** | Window too short for the keeper bot to clear a maturity cohort. | Set windows long enough to accommodate the largest expected cohort. Watch keeper success rates as live signal. |
| **Throttle ramp too aggressive** | Liquidatable fraction climbs faster than borrowers can react after a missed rollover. | Pair `term_based_full_liquidation_duration_secs` with reasonable bonus parameters. The ramp should give voluntary repay time before forced unwind. |
| **`mature_reserve_debt_liquidation_enabled` flipped on prematurely** | A reserve passes its `debt_maturity_timestamp` and immediately becomes fully liquidatable with no warning. | Coordinate the maturity-liquidation flag with reserve maturity dates. Only enable when liquidator infrastructure is ready and the maturity is intentional. |
| **Stale `host_fixed_interest_rate_bps`** | Setting a non-zero host fixed rate creates a permanent protocol spread on top of the curve, invisible to lenders looking at the curve alone. | Default `host_fixed_interest_rate_bps` to `0` unless the protocol-side spread is intentional. Document publicly when non-zero. |
| **Liquidation bonus parameters unset** | Without `min_deleveraging_bonus_bps` / `deleveraging_bonus_increase_bps_per_day` / `max_liquidation_bonus_bps`, post-maturity liquidations carry no incentive. | Configure all three on every fixed-rate reserve. Mirror typical floating-reserve values, adjusted for the protocol-enforced nature of these liquidations. |
## Pricing the rate
The fixed rate you set should fall in a corridor:
* **Floor:** the floating reserve's expected average borrow rate over the term — below this and lenders prefer floating.
* **Ceiling:** what borrowers will actually accept — above this and demand evaporates.
Read the floating reserve's recent borrow-rate history (over a duration matching your fixed term) and add the term premium you observe in adjacent cells of the rate grid. If you're the first reserve at that duration, start near the floating rate's recent average and adjust as demand develops.
## Calibrating windows
Two windows work together — the pre-expiration rollover window and the post-expiration liquidation throttle.
* **Rollover window** should be long enough that the keeper can rollover an entire maturity cohort even under network congestion. Default suggestion: 24 hours. Shorter than 4 hours starts risking missed cohorts.
* **Liquidation throttle** should be long enough that a borrower who missed the rollover window has time to come back, repay, and exit cleanly. Default suggestion: 2–7 days. Shorter creates a cliff; longer means matured capital sits unproductive.
Together, the two define the borrower's "off-ramp" between voluntary action and forced liquidation. A reasonable shape: rollover window 24h, throttle 3 days, bonus ramp from 50 bps at term-end to 500 bps over the throttle duration.
## Calibrating bonuses
The liquidator's incentive ramp is governed by three reserve-level parameters:
* `min_deleveraging_bonus_bps` — what a liquidator earns at term-end + 0 seconds.
* `deleveraging_bonus_increase_bps_per_day` — how fast the bonus grows.
* `max_liquidation_bonus_bps` — the cap.
Set these such that:
* The bonus is just attractive enough at the start of the throttle that a fast liquidator will take action.
* The bonus grows enough across the throttle window that a slow liquidator is incentivised to act before others outrun them.
* The cap is high enough to ensure the liquidation actually clears even on adverse market movement.
Mirror your floating-reserve liquidation-bonus shape, then tune slightly — protocol-enforced liquidations typically warrant slightly higher bonuses since they're not price-driven.
## Coordinating with vault curators
Vaults are the primary source of fixed-rate liquidity (both Standard and Conditional). Operational coordination matters:
* **Communicate parameter changes ahead of the lock time** so vault curators can adjust.
* **Surface new fixed-rate reserves** through your curator-relations channel before going live, so vault curators can plan allocation strategy.
* **Confirm vault versions support withdrawal-queue accounting** before enabling the queue features. Vaults running older kvault versions cannot interact correctly with queued tickets.
## What's next
<CardGroup>
<Card title="Reserve Configuration" icon="sliders" href="/docs/curators/markets/fixed-rates/reserve-configuration">
Back to the reserve creation walkthrough.
</Card>
<Card title="Allocator's view" icon="chart-pie" href="/docs/curators/vaults/fixed-rates">
How vault curators allocate into the reserves you create.
</Card>
</CardGroup>
# Glossary
Source: https://kamino.com/docs/curators/markets/glossary
Definitions for terms used across Kamino Markets documentation
| Term | Definition |
| - | - |
| **Auto-Deleverage** | Margin-call mechanism that gives a borrower a grace period to self-deleverage before forced liquidation. Configured per reserve and at the market level. |
| **Bad Debt** | A position where debt value exceeds collateral value; even a fully-priced liquidation cannot make the depositor whole. Triggers the `badDebtLiquidationBonusBps` and may require socialize-loss to clear. |
| **Borrow Factor** | A multiplier on the debt-side valuation of an asset (`borrowFactorPct`). `100` = no adjustment; values above `100` make borrowing the asset more expensive in risk terms. |
| **Borrow Order** | A limit-order request placed by a borrower specifying max acceptable rate, min term, and expiry. Lenders fill it via `fill-borrow-order`. One open order per obligation. |
| **Borrow Rate Curve** | Piecewise linear function mapping reserve utilization to borrow rate. Defined as up to 11 `(utilizationRateBps, borrowRateBps)` breakpoints. |
| **Cached Owner** | The `lending_market_owner_cached` field. A staging slot used in the two-step ownership transfer flow. |
| **Close Factor** | The maximum portion of debt a liquidator can repay in a single liquidation round. Configured market-wide via `liquidation_max_debt_close_factor_pct`. |
| **Collateral Farm** | A reward farm attached to a reserve that distributes incentives to depositors. |
| **Crank** | Off-chain bot that triggers on-chain state updates (interest accrual, oracle refreshes, queue progression). |
| **cToken** | Receipt token issued to depositors representing their share of a reserve's deposits. Burned on withdrawal. |
| **Debt Farm** | A reward farm attached to a reserve that distributes incentives to borrowers. |
| **Debt Maturity Timestamp** | The Unix timestamp at which all debt on a fixed-term reserve matures. `0` = per-borrow rolling term. |
| **Debt Reserve** (in eMode) | The single reserve that members of an elevation group are permitted to borrow. |
| **Debt Term Seconds** | Duration of fixed-term borrows on a reserve. `0` = open-term (no maturity). |
| **Early Repay Penalty** | A penalty (`earlyRepayRemainingInterestPct`) applied when a fixed-term borrower repays during the first term before maturity. Charged as a percentage of remaining interest. After rollover, no penalty applies. |
| **Elevation Group** (eMode) | A cluster of correlated assets with relaxed risk parameters when used together. Up to 32 groups per market. |
| **Emergency Council** | A separate authority (often a fast-response multisig) configured via `emergency_council` to call emergency-only handlers. |
| **Emergency Mode** | Market-wide or reserve-level pause. Halts most operations until reset. Reversible. |
| **Flash Loan** | An uncollateralized loan that must be borrowed and repaid within the same transaction. |
| **Heuristic** (price) | Sa프로젝트로 돌아가기