Each (mint, market) pair can have at most one reserve. If you need multiple reserves for the same asset (e.g., separate fixed-term tracks), each one needs its own market.
Prerequisites
- SDK
- API
- Kamino CLI
Add a reserve via SDK
The SDK exposeskaminoManager.addAssetToMarketIxs(params) which returns instructions for both creating the reserve account and applying its initial config. Build the asset config using AssetReserveConfig (or AssetReserveConfigCli if you want to load a JSON-shaped config).1
Import dependencies
2
Initialize KaminoManager
3
Build the asset config
AssetReserveConfigCli and load a ReserveConfig JSON object:4
Generate the reserve keypair and admin liquidity source
5
Build and submit the transactions
addAssetToMarketIxs returns two batches of instructions — one for creating the reserve account, another for applying the config. Submit them in order.configUpdateIxs is an array because a full config update may exceed a single transaction’s size limit; the SDK splits it into chunks. Submit each chunk in order.Cloning an existing reserve config via SDK
To spawn a sibling reserve with the same parameters as an existing one, fetch the source’s config and pass it throughAssetReserveConfigCli:What the program does on-chain
- Allocates a new
Reservezero-copy account - Initializes its
ReserveConfigfrom your input - Sets
Reserve.lending_marketto your market address - Validates that the oracle accounts referenced in
tokenInfoactually match the configured pubkeys - Initializes the reserve’s
liquidityandcollateralsubstructures (zero balances) - Initializes the reserve’s
WithdrawQueue(empty)
status: 0 (Active) and depositLimit > 0. Borrows additionally require borrowLimit > 0.
Verify
After creation:
Confirm:
status: 0tokenInfo.scopeConfiguration.priceFeedis populatedborrowRateCurve.points[0].utilizationRateBps == 0depositLimit > 0andborrowLimit > 0if you want both directions usable
Common errors
What’s next
Configure oracles
Pick the right oracle source and set TWAP and staleness guards.
Risk parameters
Choose LTV, thresholds, IR curves, and caps for the asset.