🇺🇲
Protocolink
  • 🔮Overview
  • 🌟Why Protocolink?
  • 💡Use Cases
    • Flash Loans
    • Permit2 Amplifier
    • Zap-in & Zap-out
    • Position Management
    • Multi-Action Bundling
  • 📋Networks & Protocols
  • 🛡️Security & Audits
  • 💎Fees
  • ❓FAQ
  • Protocolink API
    • 🔮Overview
      • Swap & Supply (Example)
    • 📗Swagger
      • Request Protocols
      • Request Tokens
      • Request Quote
      • Estimate Logics Result
      • Request Transaction Data
  • Protocolink SDK
    • 🔮Overview
    • 1️⃣Install SDK
    • 2️⃣Build Logics
    • 3️⃣Estimate Router Data
    • 4️⃣Send Router Transaction
    • ⚒️API SDK Interfaces
      • Global Types
      • FlashLoan Logic
      • Aave V2
      • Aave V3
      • Balancer V2
      • Compound V3
      • Iolend
      • Magicsea
      • Morphoblue
      • OpenOcean V2
      • ParaSwap V5
      • Permit2
      • Spark
      • Stargate
      • Stargate V2
      • SyncSwap
      • Uniswap V3
      • Utility
      • Wagmi
      • ZeroEx V4
    • ⚒️Common SDK Interfaces
      • Constants
      • Network
      • Token
      • Web3Toolkit
      • Utility Functions
  • Lending SDK
    • 🔮Overview
    • ✳️SDK
      • Open By Collateral
      • Open By Debt
      • Close
      • Leverage By Collateral
      • Leverage By Debt
      • Deleverage
      • Collateral swap
      • Debt swap
      • Zap supply
      • Zap withdraw
      • Zap repay
      • Zap borrow
  • Smart Contract
    • 🔮Overview
      • Router
      • Agent
      • Callback
      • Fees
      • Utility
      • Data Type
      • ERC721/ERC1155 Support
    • 📑Deployment Addresses
    • 🧑‍💻Security Review Details
  • COMPOUND KIT
    • 🔮Overview
    • ✳️SDK
      • Leverage
      • Deleverage
      • Collateral Swap
      • Zap Supply
      • Zap Withdraw
      • Zap Repay
      • Zap Borrow
    • 📗API
  • Video Tutorials
    • 1. Introducing Protocolink
    • 2. Lending SDK
    • 3. Protocolink Q&A
  • Social medias
    • Twitter
  • Support
Powered by GitBook
On this page
  • Introduction to Lending SDK
  • Architecture Diagram
  • Developers
  • TypeScript SDK
  • Examples
  1. Lending SDK

Overview

PreviousUtility FunctionsNextSDK

Last updated 1 year ago

As Build Logics describes the general way to build logics by from scratch, Lending SDK aims to provide a user friendly tool to build around lending functions.

Introduction to Lending SDK

Lending SDK is open source tool which empowers developers to rapidly build applications and enhance the user experience with the lending protocols.

Building an application on top of the lending protocols can be a challenging and time-consuming process. This is due to the inherent risks associated with working with smart contracts, as well as the complex calculations and encoding required for various use cases, such as leverage, deleverage, collateral swap, and zaps.

Lending SDK reduces the need for developers to spend time and resources on building and maintaining their own smart contracts. The Lending SDK leverages , which provides the ability to add more use cases in a highly modular way without deploying new smart contracts, and significantly reducing user risk.

Architecture Diagram

Developers

Developers can adapt the Lending SDK into their frontend or backend services. With the use cases supported by the Lending SDK, they can easily generate transaction data, or utilize it for complex transaction scenarios. This significantly lowers the barrier for developers, allowing them to focus on providing a better user experience or infrastructure.

TypeScript SDK

Examples

The Lending SDK stands as an efficient and user-friendly tool, specifically designed to assist developers in creating their own position management tools. This SDK streamlines the development process, making it more accessible for developers to build sophisticated and effective applications in the lending space.

Here are some transactions generated through Lending SDK:

The Lending SDK generates and return transaction data based on the specified use cases. It provides estimated execution results, calculates the optimal path for each use case, and forwards protocol logics to .

An example of the SDK's application is . This dashboard effectively utilizes the Lending SDK to offer a seamless and intuitive interface. It enables users to effortlessly manage their positions across various lending platforms. This integration not only showcases the SDK's versatility but also its capability to enhance user experience through simplified position management in a complex financial ecosystem.

🔮
Protocolink
Furucombo lending dashboard
Aave V3 Deleverage on Polygon
Radiant V2 Debt swap on Arbitrum
Radiant V2 Leverage on Arbitrum
Radiant V2 Deleverage on Arbitrum
Compound V3 Deleverage on Arbitrum
Aave V3 Collateral Swap on Arbitrum
Morpho Blue Leverage on Ethereum
Morpho Blue Deleverage on Ethereum
Protocolink JS SDK
Protocolink
Logic: the above illustrates the actions performed during execution, such as: approval, swap, supply, borrow, flash loans, and so on.