본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)7.0k · #13634

jupiter-lend

하는 일

이 스킬은 Solana의 대출 및 차입 프로토콜인 Jupiter Lend를 다룹니다. 유동성 풀, 대출 시장, 볼트를 포함합니다. 대출이나 차입 기능을 만드는 개발자가 이율을 확인하고 포지션을 관리할 수 있도록 읽기 전용 라이브러리와 쓰기 라이브러리를 설명합니다.

사용하는 경우

  • ✓Jupiter Lend에서 볼트 목록이나 대출 이율을 확인하고 싶을 때.
  • ✓Jupiter Lend로 예치, 출금, 차입, 상환을 해야 할 때.
  • ✓사용자의 대출 포지션과 잔액을 확인하고 싶을 때.

스킬 링크

https://github.com/internet-court/internet-court-skill/blob/main/vendored/jupiter/jupiter-lend/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/internet-court/internet-court-skill/blob/main/vendored/jupiter/jupiter-lend/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“앱에서 사용자의 Jupiter Lend 포지션과 현재 잔액을 보여 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 읽기 전용 라이브러리로 풀, 시장, 볼트 포지션을 조회하고, 쓰기 라이브러리로 예치, 출금, 차입, 상환을 처리합니다. 코드가 Jupiter Lend의 작동 방식과 맞도록 먼저 프로토콜 용어를 설명합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Jupiter Lend Protocol

Jupiter Lend (powered by Fluid Protocol) is a lending and borrowing protocol on Solana. It offers Liquidity Pools, Lending Markets (jlTokens), and Vaults for leveraged positions.

The protocol uses two main SDKs:

  • @jup-ag/lend-read: Read-only queries for all programs (Liquidity, Lending, Vaults)
  • @jup-ag/lend: Write operations (deposit, withdraw, borrow, repay)

Agent usage

Example prompts you can use to demo Jupiter Lend integrations:

  • Discover all available vaults and list them
  • Fetch all vault positions for a user
  • Deposit collateral and borrow in a single transaction
  • Repay max debt and withdraw max collateral for a position
  • Get user Earn (jlToken) positions and underlying balances
  • Build a flashloan for arbitrage or liquidation
  • Get liquidity rates and APY for a token
  • Create a new vault position (positionId 0), deposit collateral, and borrow

SDK Installation

# For read operations (queries, prices, positions)
npm install @jup-ag/lend-read

# For write operations (transactions)
npm install @jup-ag/lend

1. Key Concepts & Protocol Jargon

Understanding the architecture and terminology of Jupiter Lend will help you build better integrations.

Architecture: The Two-Layer Model

  • Liquidity Layer (Single Orderbook): The foundational layer where all assets reside. It manages token limits, rate curves, and unified liquidity. Users never interact with this directly.
  • Protocol Layer: User-facing modules (Lending and Vaults) that sit on top of the Liquidity Layer and interact with it via Cross-Program Invocations (CPIs).

Terminology

  • jlToken (Jupiter Lend Token): The yield-bearing asset you receive when supplying tokens to the Lending protocol (e.g., jlUSDC). As interest accrues, the exchange rate increases, making your jlToken worth more underlying USDC.
  • Exchange Price: The conversion rate used to translate between "raw" stored amounts and actual token amounts. It continuously increases as interest is earned on supply or accrued on debt.
  • Collateral Factor (CF): The maximum Loan-to-Value (LTV) ratio allowed when opening or managing a position.
  • Liquidation Threshold (LT): The LTV at which a position becomes undercollateralized and eligible for liquidation.
  • Liquidation Max Limit (LML): The absolute maximum LTV limit. If a position's risk ratio exceeds this boundary, it is automatically absorbed by the protocol to protect liquidity providers.
  • Liquidation Penalty: The discount percentage offered to liquidators when they repay debt on behalf of a risky position.
  • Rebalance: An operation that synchronizes the upper protocol layer's accounting (Vaults/Lending) with its actual position on the Liquidity layer. It also syncs the orderbook to account for any active accrued rewards.
  • Tick-based Architecture: The Vaults protocol groups positions into "ticks" based on their risk level (debt-to-collateral ratio). This allows the protocol to efficiently manage risk and process liquidations at scale.
  • Dust Borrow: A tiny residual amount of debt intentionally kept on positions to handle division rounding complexities.
  • Sentinel Values: Constants like MAX_WITHDRAW_AMOUNT and MAX_REPAY_AMOUNT that tell the protocol to dynamically calculate and withdraw/repay the maximum mathematically possible amount for a position.

Amounts and units

All SDK amounts use base units (smallest token unit, e.g. 1_000_000 = 1 USDC for 6 decimals).


2. Jupiter Earn (Lending)

Jupiter Earn allows users to supply assets to earn yield. In return, users receive yield-bearing jlTokens (e.g., jlUSDC).

Lending Module (jlTokens)

Access jlToken (Jupiter Lend token) markets, exchange prices, and user positions.

// Get all jlToken details at once
const allDetails = await client.lending.getAllJlTokenDetails();

// Get user's jlToken balance
const position = await client.lending.getUserPosition(USDC, userPublicKey);

Lending (Earn)

Deposit underlying assets to receive yield-bearing tokens, or withdraw them.

import { getDepositIxs, getWithdrawIxs } from "@jup-ag/lend/earn";
import BN from "bn.js";

// Deposit 1 USDC (base units: 1_000_000 for 6 decimals)
const { ixs: depositIxs } = await getDepositIxs({
  amount: new BN(1_000_000),
  asset: USDC_PUBKEY,
  signer: userPublicKey,
  connection,
});

// Withdraw 0.1 USDC (100_000 base units @ 6 decimals
자주 묻는 질문

Jupiter Lend에서 볼트란 무엇인가요?

사용자가 담보를 예치하고 그 담보로 빌릴 수 있게 하는 것이며, 이를 통해 레버리지 포지션이 생길 수 있습니다.

서명 없이 포지션을 확인할 수 있나요?

네. 읽기 전용 라이브러리가 조회를 처리하므로 트랜잭션에 서명할 필요가 없습니다.

어떤 라이브러리를 설치해야 하나요?

조회용 읽기 전용 라이브러리와, 예치나 차입 같은 쓰기 작업용 전체 라이브러리입니다.

상세 정보

작성자의 원본 설명

Interact with Jupiter Lend Protocol. Read-only SDK (@jup-ag/lend-read) for querying liquidity pools, lending markets (jlTokens), and vaults. Write SDK (@jup-ag/lend) for lending (deposit/withdraw) and vault operations (deposit collateral, borrow, repay, manage positions).

repo: internet-court/internet-court-skill

인기도

GitHub 스타
7.0k
순위
#13634
라이선스
—
업데이트
2026. 10. 26.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬