galleon-save-lending

Installation
SKILL.md

Save lending on Solana

Resolve Save identity

Identify cluster, wallet, lending program, specific market, reserve and obligation. Save retains Solend-named SDK and program interfaces. Do not treat the old integration guide's one-market wording as a current deployment inventory. Discover live markets and verify program ownership and mint identities before applying an example.

Use the maintained solendprotocol/public repository for @solendprotocol/solend-sdk; the older standalone SDK repository is read-only. Pin a reviewed release and follow its matching types. A symbol lookup is only a candidate: validate reserve address, liquidity mint, decimals and oracle accounts before computing amounts.

Collect the lending state

The official SDK documents SolendMarket.initialize(connection, environment, marketPublicKey), loadReserves(), refreshAll() and fetchObligationByWallet(wallet). Await the version's asynchronous methods and inspect returned failures. Retain RPC slot and API timestamps. Cross-check cached/API prices with current reserve and oracle accounts for a proposed transaction.

Read reserve available liquidity, borrowed amount, collateral mint supply/exchange rate, rate curve, fees, supply/borrow limits and configuration. Read obligation collateral entries, borrowed amounts, accrued interest and risk-adjusted limits. WAD-valued fields use fixed-point scaling; do not treat borrowedAmountWads as native token units or convert through an imprecise JavaScript Number.

Decide and prepare

Installs
3
GitHub Stars
11
First Seen
Oct 31, 2026