galleon-kamino-lending
Kamino lending position
Identify the obligation
Resolve Solana cluster, wallet public key, lending program, market, obligation, deposit mints, debt mints and intended amount. A ticker is insufficient. Kamino Borrow, Earn vaults, fixed-term lending and Multiply have different contracts and risk. Keep this workflow scoped to the discovered Borrow obligation; do not introduce leverage or a standing order for a spot lending request.
Use the official public API to discover GET https://api.kamino.finance/v2/kamino-market and GET /kamino-market/{marketPubkey}/users/{userPubkey}/obligations. Use GET /oracles/prices for discovery of supported observations. Inspect current schemas from the official index rather than inventing fields. Keep response and retrieval times; API discovery is not a current-slot validity check.
Read and assess
Use a pinned, version-matched @kamino-finance/klend-sdk or program account decoder to read market, reserves and obligation at compatible slots. Confirm each account's program owner, underlying mint, token program and decimals. Read accrued debt, collateral exchange rates, risk-adjusted debt, borrow factor per debt asset, liquidation LTV, borrowing limits, reserve liquidity, caps and elevation-group eligibility. Markets are isolated; another market's collateral and cash cannot rescue this obligation's borrowing capacity.
- Value collateral and liabilities using the protocol's accepted oracles. Retain raw token quantities and scaling; an SPL account balance is not necessarily underlying deposited collateral.
- Calculate risk-adjusted debt by applying the selected reserve's borrow factor. Compare this with collateral and the applicable borrowing/liquidation limits. Do not report raw debt divided by collateral as the protocol LTV when factors differ.
- Stress collateral price, debt price and interest growth. For correlated LST/SOL positions, include depeg/basis shocks rather than treating correlation as guaranteed.
- For an unsigned action, use the current official transaction builder or SDK. Inspect every instruction, address lookup table, writable account, mint, receiver and fee payer. Verify refresh/oracle instructions and simulation at a recent slot. Rebuild an expired blockhash only after resolving whether the original signature landed.