Skillpedia
واجهات API والخوادم (backend)7.0k · #13634

jupiter-lend

ما الذي تفعله

تغطي هذه المهارة Jupiter Lend، وهو بروتوكول إقراض واقتراض على Solana فيه مجمعات سيولة وأسواق إقراض وخزائن. وتشرح مكتبات القراءة فقط ومكتبات الكتابة لفحص المعدلات وإدارة المراكز، لمطوري ميزات الإقراض والاقتراض.

متى تستخدمها

  • ✓عندما تريد عرض الخزائن أو فحص معدلات الإقراض في Jupiter Lend.
  • ✓عندما تحتاج إلى الإيداع أو السحب أو الاقتراض أو السداد عبر Jupiter Lend.
  • ✓عندما تريد فحص مراكز الإقراض للمستخدم وأرصدته.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/internet-court/internet-court-skill/blob/main/vendored/jupiter/jupiter-lend/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أريد أن يعرض تطبيقي مراكز Jupiter Lend للمستخدم وأرصدته الحالية.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يستخدم الوكيل مكتبة القراءة فقط للاستعلام عن المجمعات والأسواق ومراكز الخزائن، ومكتبة الكتابة للإيداع والسحب والاقتراض والسداد. ويشرح مصطلحات البروتوكول أولًا حتى يطابق الكود طريقة عمل 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
الترخيص
—
آخر تحديث
26‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة