# Table of Contents - [HyperLend](#hyperlend) - [Why Hyperliquid EVM? | HyperLend](#why-hyperliquid-evm-hyperlend) - [What is HyperLend? | HyperLend](#what-is-hyperlend-hyperlend) - [Add to Home Screen (Mobile App) | HyperLend](#add-to-home-screen-mobile-app-hyperlend) - [Key Features and Benefits | HyperLend](#key-features-and-benefits-hyperlend) - [Partners | HyperLend](#partners-hyperlend) - [How to HyperLend? | HyperLend](#how-to-hyperlend-hyperlend) - [↪ How to Borrow from HyperLend | HyperLend](#-how-to-borrow-from-hyperlend-hyperlend) - [Oracle | HyperLend](#oracle-hyperlend) - [Points | HyperLend](#points-hyperlend) - [Fees | HyperLend](#fees-hyperlend) - [Tokenization | HyperLend](#tokenization-hyperlend) - [Referrals | HyperLend](#referrals-hyperlend) - [Risks | HyperLend](#risks-hyperlend) - [↪How to Lend on HyperLend | HyperLend](#-how-to-lend-on-hyperlend-hyperlend) - [Fees and Yield | HyperLend](#fees-and-yield-hyperlend) - [Core Components | HyperLend](#core-components-hyperlend) - [↪ How to Refer on HyperLend | HyperLend](#-how-to-refer-on-hyperlend-hyperlend) - [↪ How to Loop on HyperLend | HyperLend](#-how-to-loop-on-hyperlend-hyperlend) - [↪ How to Share your Yield in Style | HyperLend](#-how-to-share-your-yield-in-style-hyperlend) - [Borrow Against L1 Spot Positions | HyperLend](#borrow-against-l1-spot-positions-hyperlend) - [HyperLoop | HyperLend](#hyperloop-hyperlend) - [Liquidations | HyperLend](#liquidations-hyperlend) - [Liquid Hyperliquidity Provider (wHLP) | HyperLend](#liquid-hyperliquidity-provider-whlp-hyperlend) - [HyperLend Architecture | HyperLend](#hyperlend-architecture-hyperlend) - [Data & Indexers | HyperLend](#data-indexers-hyperlend) - [HyperTrack | HyperLend](#hypertrack-hyperlend) - [Getting Started | HyperLend](#getting-started-hyperlend) - [SDK | HyperLend](#sdk-hyperlend) - [FAQ | HyperLend](#faq-hyperlend) - [Core Pools | HyperLend](#core-pools-hyperlend) - [Contract Addresses | HyperLend](#contract-addresses-hyperlend) - [Bot Functions | HyperLend](#bot-functions-hyperlend) - [↪ oracles | HyperLend](#-oracles-hyperlend) - [↪ key-concepts | HyperLend](#-key-concepts-hyperlend) - [↪ overview | HyperLend](#-overview-hyperlend) - [↪ Health Factor | HyperLend](#-health-factor-hyperlend) - [↪ Remove Address | HyperLend](#-remove-address-hyperlend) - [↪ Liquidations Alert | HyperLend](#-liquidations-alert-hyperlend) - [↪ Watch Address | HyperLend](#-watch-address-hyperlend) - [↪ Borrow Rate | HyperLend](#-borrow-rate-hyperlend) - [↪ flash-loans | HyperLend](#-flash-loans-hyperlend) - [API | HyperLend](#api-hyperlend) - [↪ Advanced Approach | HyperLend](#-advanced-approach-hyperlend) - [Isolated Pools | HyperLend](#isolated-pools-hyperlend) - [↪ liquidations | HyperLend](#-liquidations-hyperlend) - [↪ interest rates | HyperLend](#-interest-rates-hyperlend) - [↪ interest rate strategy | HyperLend](#-interest-rate-strategy-hyperlend) - [↪ pool | HyperLend](#-pool-hyperlend) --- # HyperLend HyperLend is a high-performance lending protocol on [Hyperliquid](https://x.com/HyperliquidX) , built for capital efficiency. It offers real-time leverage, dynamic rates, and deep liquidity access. **Built for traders, quants, and market makers in need of efficient lending.** ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FY8yKLKb1Z87PCsUJFNdz%252Fhyperlend-5.png%3Falt%3Dmedia%26token%3D6d5d0fa7-b557-4540-b14a-747d1659aa50&width=768&dpr=4&quality=100&sign=a841c331&sv=2) [NextWhat is HyperLend?](https://docs.hyperlend.finance/essentials/what-is-hyperlend) Last updated 7 months ago --- # Why Hyperliquid EVM? | HyperLend ![Page cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FY8yKLKb1Z87PCsUJFNdz%252Fhyperlend-5.png%3Falt%3Dmedia%26token%3D6d5d0fa7-b557-4540-b14a-747d1659aa50&width=1248&dpr=4&quality=100&sign=a841c331&sv=2) ### [](https://docs.hyperlend.finance/essentials/why-hyperliquid-evm#performance) • Performance Hyperliquid's L1 chain is optimized for **high performance**, with **block latency of under one second** and support for up to **200,000 orders per second**, ensuring **fast and efficient operations**. * * * ### [](https://docs.hyperlend.finance/essentials/why-hyperliquid-evm#transparency) • Transparency Every transaction, order, cancel, trade, and liquidation occurs **transparently on-chain**, promoting **trust and visibility**. * * * ### [](https://docs.hyperlend.finance/essentials/why-hyperliquid-evm#custom-consensus-algorithm) • Custom Consensus Algorithm HyperLiquid uses **HyperBFT**, a custom consensus algorithm inspired by Hotstuff, **optimized for speed and reliability**. * * * ### [](https://docs.hyperlend.finance/essentials/why-hyperliquid-evm#native-components) • Native Components The chain supports a **fully on-chain order book perpetual futures exchange** and other developments such as a **native token standard**, **spot trading**, and **permissionless liquidity**. * * * ### [](https://docs.hyperlend.finance/essentials/why-hyperliquid-evm#ecosystem-support) • Ecosystem Support It enables a **fully on-chain open financial system** with **user-built applications** interfacing with native components without compromising the **end-user experience**. * * * For more details, you can visit [**Hyperliquid Docs**](https://hyperliquid.gitbook.io/hyperliquid-docs) . [PreviousWhat is HyperLend?](https://docs.hyperlend.finance/essentials/what-is-hyperlend) [NextAdd to Home Screen (Mobile App)](https://docs.hyperlend.finance/essentials/add-to-home-screen-mobile-app) Last updated 7 months ago --- # What is HyperLend? | HyperLend ![Page cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FY8yKLKb1Z87PCsUJFNdz%252Fhyperlend-5.png%3Falt%3Dmedia%26token%3D6d5d0fa7-b557-4540-b14a-747d1659aa50&width=1248&dpr=4&quality=100&sign=a841c331&sv=2) HyperLend is a decentralized lending platform designed to optimize efficiency in cryptocurrency lending and borrowing. Built on **Hyperliquid's EVM blockchain**, HyperLend provides secure, **transparent**, and highly liquid financial services. **Our goal:** To become the equivalent of modern banking infrastructure, with better transparency and stronger foundations. [PreviousHyperLend](https://docs.hyperlend.finance/) [NextWhy Hyperliquid EVM?](https://docs.hyperlend.finance/essentials/why-hyperliquid-evm) Last updated 7 months ago --- # Add to Home Screen (Mobile App) | HyperLend This feature was built so you can **see your personal wallet positions anytime**, directly from your phone. **How to set it up:** 1. Click the mobile app button in the bottom-left corner 2. Scan the QR code with your phone 3. Tap “Add to Home Screen” when prompted You can view a simple video guide [here](https://x.com/hyperlendx/status/1914016238163870088) . [PreviousWhy Hyperliquid EVM?](https://docs.hyperlend.finance/essentials/why-hyperliquid-evm) [NextKey Features and Benefits](https://docs.hyperlend.finance/essentials/key-features-and-benefits) Last updated 6 months ago --- # Key Features and Benefits | HyperLend ![Page cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FY8yKLKb1Z87PCsUJFNdz%252Fhyperlend-5.png%3Falt%3Dmedia%26token%3D6d5d0fa7-b557-4540-b14a-747d1659aa50&width=1248&dpr=4&quality=100&sign=a841c331&sv=2) HyperLend is a decentralized finance (DeFi) platform designed to simplify and secure the process of lending and borrowing cryptocurrencies. **Key Features:** * **Decentralized Protocol:** Operates transparently using secure, audited, and open-source smart contracts. * **Flexible Lending & Borrowing:** Users can generate interest by supplying assets or obtain loans using deposited collateral. * **Flash Loans:** Enables instant and secure loans for efficient execution of financial strategies. * **Robust Security:** Employs **audited** and **battle-tested** smart contracts, ensuring maximum protection of user assets. Learn more [here](https://hyperlend.finance/security) . * **Referral Rewards:** Promotes community expansion by incentivising users who refer others to the platform. * **Incentive Programs:** Offers diverse engagement programs to increase user activity and optimize returns. * * * **User Benefits:** * **Earn Passive Income:** Supply assets to liquidity pools to earn competitive interest. * **Versatile Choices:** Customize your investment strategy by selecting assets and pools aligned with your objectives and risk tolerance. * **Complete Transparency:** Regularly audited, fully transparent, open-source codebase. [PreviousAdd to Home Screen (Mobile App)](https://docs.hyperlend.finance/essentials/add-to-home-screen-mobile-app) [NextPartners](https://docs.hyperlend.finance/essentials/partners) Last updated 7 months ago --- # Partners | HyperLend Our valued partners play a crucial role in supporting and advancing our mission. We are proud to collaborate with industry leaders and innovators who share our vision for the future, such as: ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FbXqV2tItMzYPHvKRh00g%252Faave-docs.jpg%3Falt%3Dmedia%26token%3D6a5e065a-d884-43f7-b6e6-cde0b6c3ba8d&width=490&dpr=4&quality=100&sign=186217a2&sv=2) Aave ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FWbshe3MilP7HeJF4jCuc%252FHL2-2%2520%281%29.jpg%3Falt%3Dmedia%26token%3D9d96bf58-1ce5-4894-b475-2c1a0e61e1b3&width=490&dpr=4&quality=100&sign=5ce98d45&sv=2) Block Analitica ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FGNvWKdi9x8Y1XVdAttl7%252FHL2-8.jpg%3Falt%3Dmedia%26token%3D4ebd6477-f05c-424d-882c-8055fa39eb65&width=490&dpr=4&quality=100&sign=439c3ac5&sv=2) LayerZero ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FRlYkOnxcu7QHJJD3kI5i%252FHL2-1.jpg%3Falt%3Dmedia%26token%3Dd0bc56a2-1d27-433e-9ea8-384473b52405&width=490&dpr=4&quality=100&sign=6267d6c6&sv=2) ThunderHead ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252F8VariP78jD8n7mkIRFcb%252FHL2-5.jpg%3Falt%3Dmedia%26token%3D818dee02-8b4f-4d54-88c7-6f1e721065c9&width=490&dpr=4&quality=100&sign=9cdfbc6b&sv=2) RedStone ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FjLNFi3WRmkZ7OqEvOFXZ%252FHL2-6.jpg%3Falt%3Dmedia%26token%3D809f526b-7b2e-47d5-84df-d4bfec45ad92&width=490&dpr=4&quality=100&sign=62baccb4&sv=2) Pyth ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FGKICZF6Lp5rJlinvUS3q%252FHL2-4.jpg%3Falt%3Dmedia%26token%3Db0d11783-a9f4-42f0-9c5d-8cb474bf51db&width=490&dpr=4&quality=100&sign=6efd28c0&sv=2) Theo Network ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FyEWgDWvoMWScTP73XYCl%252FHL2-7.jpg%3Falt%3Dmedia%26token%3De7a510c8-888e-4d65-9f9f-ee81d25e8f6c&width=490&dpr=4&quality=100&sign=27a9e45a&sv=2) Stargate ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FTRcX7f3JGWgR5t6ssMkN%252FHL2-3.jpg%3Falt%3Dmedia%26token%3Df183b4ed-ffee-43b0-9eee-bcb6bd045471&width=490&dpr=4&quality=100&sign=50617f81&sv=2) Resolv ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FzKSvxMXRW9ZsvOVVTF0T%252FHL2-2.jpg%3Falt%3Dmedia%26token%3D5645275a-3fb3-4bb2-8aa8-2e0b5f7d856a&width=490&dpr=4&quality=100&sign=7366ddc0&sv=2) Swell ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FWtwBVLojRsQaSf4uo8Qc%252FHL2-3%2520%281%29.jpg%3Falt%3Dmedia%26token%3D652404fa-0447-4b5b-bd86-c46d4af46317&width=490&dpr=4&quality=100&sign=8dd54523&sv=2) Hypernative ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252F2Db5tce4BufdRWjIfYfL%252FHL2-1%2520%281%29.jpg%3Falt%3Dmedia%26token%3D563fc6af-923e-4243-bcfe-7ee9aad279c8&width=490&dpr=4&quality=100&sign=443beb5b&sv=2) Ackee Blockchain Security ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FHNOnJcLESodaLQtRGzDQ%252FHL2%2520%281%29.jpg%3Falt%3Dmedia%26token%3Dca3921ee-6d05-4289-bad3-01fcff8c8566&width=490&dpr=4&quality=100&sign=e0c6d75f&sv=2) Cantina ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FD7kGaCz53ZGyTgS570aV%252FHL2-4%2520%281%29.jpg%3Falt%3Dmedia%26token%3D7438664e-98a9-4075-82e7-d6baf0e66d5c&width=490&dpr=4&quality=100&sign=1e4db32a&sv=2) Pashov Audit Group [PreviousKey Features and Benefits](https://docs.hyperlend.finance/essentials/key-features-and-benefits) [NextHow to HyperLend?](https://docs.hyperlend.finance/essentials/how-to-hyperlend) Last updated 7 months ago --- # How to HyperLend? | HyperLend ![Page cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FY8yKLKb1Z87PCsUJFNdz%252Fhyperlend-5.png%3Falt%3Dmedia%26token%3D6d5d0fa7-b557-4540-b14a-747d1659aa50&width=1248&dpr=4&quality=100&sign=a841c331&sv=2) [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-lend-on-hyperlend) ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FzBOnYkb0ucAOY3MKwG03%252FLend%2520%281%29.gif%3Falt%3Dmedia%26token%3D9e68ea64-a519-4f55-a1aa-296571c75236&width=490&dpr=4&quality=100&sign=13fef0cd&sv=2) **LEND** How to Lend on HyperLend? [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend) ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FvhTz700sD5CrYDh4zxCV%252FBorrow.gif%3Falt%3Dmedia%26token%3D49639de8-2d0a-40f2-be70-aea2af7303d5&width=490&dpr=4&quality=100&sign=261fbd7b&sv=2) **BORROW** How to Borrow on HyperLend? [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-loop-on-hyperlend) ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252Fsam5n5umTAYjekErQ4gL%252Floop.gif%3Falt%3Dmedia%26token%3D43699509-510e-4377-a8d3-ba62ce81e8f5&width=490&dpr=4&quality=100&sign=884a772c&sv=2) **LOOPING** How to Loop on HyperLend? [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-refer-on-hyperlend) ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252F9XBcDXn5kAE8nC2NdGgM%252FRefferal.gif%3Falt%3Dmedia%26token%3D0e419074-0ca1-4c11-9e6e-11eb8241b621&width=490&dpr=4&quality=100&sign=4150b3dc&sv=2) **REFER** How to Refer a Friend? [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-share-your-yield-in-style) ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252F7a9N937nLa4V6f3T4ovs%252FShare.gif%3Falt%3Dmedia%26token%3Dea808c08-ddbc-45d2-95ad-4289aed7bf22&width=490&dpr=4&quality=100&sign=6c5834da&sv=2) **SHARE** How to Share your Yield in Style! ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FOFZlTCQUeLmFXeIQUuqE%252FGovernance.gif%3Falt%3Dmedia%26token%3D74345e54-8478-433d-adec-355e761804fb&width=490&dpr=4&quality=100&sign=ab50bc73&sv=2) **GOVERNANCE** How to Create a Proposal [PreviousPartners](https://docs.hyperlend.finance/essentials/partners) [Next↪How to Lend on HyperLend](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-lend-on-hyperlend) Last updated 7 months ago --- # ↪ How to Borrow from HyperLend | HyperLend ![Page cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FY8yKLKb1Z87PCsUJFNdz%252Fhyperlend-5.png%3Falt%3Dmedia%26token%3D6d5d0fa7-b557-4540-b14a-747d1659aa50&width=1248&dpr=4&quality=100&sign=a841c331&sv=2) ### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend#why-borrow-instead-of-selling-your-assets) • Why Borrow Instead of Selling Your Assets? ↝ Advantages of Borrowing * **Liquidity**: Borrowing provides liquidity (working capital) without selling your assets. * **Asset Appreciation**: By keeping your assets, you can still benefit from any potential increase in their value. * **Financial Flexibility**: Users typically borrow for unexpected expenses, leveraging holdings, or pursuing new investment opportunities. * * * ### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend#how-to-borrow) • How to Borrow #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend#steps-to-borrow) ↝ Steps to Borrow 1. **Supply any asset** to be used as collateral (refer to the "Supplying & Earning" section for more information). 2. Navigate to the **"Borrow" section** and select the asset you wish to borrow. 3. **Set the desired amount** based on your available collateral. ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FvW2unKTOcVGwFP5djhLt%252Fimage.png%3Falt%3Dmedia%26token%3D00cb4199-8ac6-4557-890d-dff7306ce916&width=768&dpr=4&quality=100&sign=ff170347&sv=2) #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend#borrowing-limits) ↝ Borrowing Limits * The maximum borrow amount depends on the **value of your supplied assets** and the **available liquidity**. * You cannot borrow more than the available liquidity or beyond what your **health factor allows**. * Check the **risk parameters section** for details on collateral requirements and specific borrowing limits. #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend#repayment-details) ↝ Repayment Details * Loans must be repaid in the **same asset** that was borrowed. For example, if you borrow 1 ETH, you repay 1 ETH plus any accrued interest. * You can also repay with **stablecoins** such as USDC or USDT if you prefer to repay based on USD value. **You can also repay your debt using collateral directly.** To do this: * Toggle on the “Repay with Collateral” option. * Select the collateral asset you wish to use for repayment. * Choose the desired amount and proceed with the repayment. This method allows you to reduce your debt without needing to withdraw or swap assets manually. #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend#interest-rate-types) ↝ Interest Rate Types * **Variable Rate**: Fluctuates based on **market conditions** and the **supply-demand ratio** for the asset. This rate can change over time. #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend#interest-payment) ↝ Interest Payment * Interest rates are derived from the **supply-demand ratio** of the asset. * **Variable rates** change constantly, while **stable rates** provide more predictable costs. * You can view your current borrowing rate in the **Borrowings section** of your dashboard. #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend#health-factor) ↝ Health Factor * The health factor measures the **safety** of your deposited assets against your borrowed assets. * A higher health factor indicates a **safer position**. * If the health factor drops to 1 or below, **liquidation** of your deposits may occur. * Detailed information on collateral parameters and health factor calculations can be found in the **risk parameters section**. ↝ **Impact of Health Factor Changes** * Fluctuations in the value of your supplied assets will affect your health factor. * An **increased health factor** improves your borrow position, reducing liquidation risk. * A **decreased health factor** increases the risk of liquidation. For **safety reasons**, the default UI only allows borrowing or withdrawing up to the point where your health factor remains at or above 1.2 * * * ### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend#loan-repayment) • Loan Repayment #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend#when-to-repay) When to Repay * There is no **fixed period** for loan repayment. You can borrow for an indefinite period as long as your position remains safe. * Over time, accrued interest will reduce your health factor, potentially increasing the risk of liquidation. #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend#how-to-repay) How to Repay 1. Go to the **Borrowings section** of your dashboard and select the **repay option** for the borrowed asset. 2. Choose the **amount to repay** and confirm the transaction. * * * ### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend#avoiding-liquidation) • Avoiding Liquidation #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend#strategies-to-prevent-liquidation) ↝ Strategies to Prevent Liquidation * **Repay the loan** to improve your health factor. * **Deposit more assets** to increase your collateral value. * * * By following these guidelines, you can manage your borrowings effectively on HyperLend, ensuring **liquidity** while maintaining the potential for **asset value appreciation**. [Previous↪How to Lend on HyperLend](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-lend-on-hyperlend) [Next↪ How to Loop on HyperLend](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-loop-on-hyperlend) Last updated 14 days ago --- # Oracle | HyperLend We use _the industry standard_ [Chainlink](https://x.com/chainlink) decentralized oracles as our primary and most reliable oracle provider. [Pyth](https://x.com/PythNetwork) and [Redstone](https://x.com/redstone_defi) are integrated as secondary fallback options, activated only if Chainlink becomes unavailable You can find the list of oracle adapter contracts [here](https://docs.hyperlend.finance/developer-documentation/contract-addresses) . ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252F0gvbgzqk7RSxbvMRVlPj%252FTwitter%2520post%2520-%252044.png%3Falt%3Dmedia%26token%3D2cdcde77-c7d7-4675-a6e8-e556898829d6&width=768&dpr=4&quality=100&sign=8fd3d11b&sv=2) [PreviousRisks](https://docs.hyperlend.finance/hyperlend-1/risks) [NextPoints](https://docs.hyperlend.finance/hyperlend-1/points) Last updated 5 months ago --- # Points | HyperLend The HyperLend points program began with 24.3.2025, points are designed to reward users who actively contribute to the success of the protocol. Points are distributed on a **weekly basis**, with the distribution formula remaining undisclosed. The calculation methodology is updated on a recurring basis to align with protocol priorities and growth strategies. **HyperLend reserves the right to modify past point distributions at its sole discretion.** * * * [](https://docs.hyperlend.finance/hyperlend-1/points#boosts) Boosts ------------------------------------------------------------------------ The following boosts are currently available: * **Hypurr NFT Holders Boost** – Users holding Hypio NFTs gain additional point multipliers. * **Hypio NFT Holders Boost** – Users holding Hypio NFTs gain additional point multipliers (A higher boost is allocated to holders of NFTs with the Hyperlend trait). * **Referral Tiers Boost** – Higher referral tiers unlock increased point rewards based on referred users' contributions, learn more [here](https://docs.hyperlend.finance/hyperlend-1/referrals) . Boosts are subject to change and are updated regularly to align with ecosystem incentives. * * * ### [](https://docs.hyperlend.finance/hyperlend-1/points#daily-claim) Daily Claim Users can claim a **Daily Drop** once every 24 hours, provided they have a minimum of **100 points** and **$50 deposited** on the platform. This daily claim is designed to reward consistent participation and grows in value with your **rank**—the higher your rank, the greater your daily XP gain. Claiming the daily drop grants you **XP**, which accumulates throughout the week. At the end of each week, this XP is **converted into points** during the regular point distribution cycle. [PreviousOracle](https://docs.hyperlend.finance/hyperlend-1/oracle) [NextTokenization](https://docs.hyperlend.finance/hyperlend-1/tokenization) Last updated 14 days ago --- # Fees | HyperLend ![Page cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FY8yKLKb1Z87PCsUJFNdz%252Fhyperlend-5.png%3Falt%3Dmedia%26token%3D6d5d0fa7-b557-4540-b14a-747d1659aa50&width=1248&dpr=4&quality=100&sign=a841c331&sv=2) HyperLend does **not** charge any fees on deposits or withdrawals. Users can freely supply or withdraw assets at any time. We only charge fees in two cases: 1. **Flashloan Fee** – A 0.04% fee is applied to all flashloans executed on the platform. 2. **Reserve Factor** – A small percentage of interest paid by borrowers is set aside as a reserve, helping sustain the protocol long-term. [PreviousTokenization](https://docs.hyperlend.finance/hyperlend-1/tokenization) [NextLiquidations](https://docs.hyperlend.finance/hyperlend-1/liquidations) Last updated 6 months ago --- # Tokenization | HyperLend ![Page cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FY8yKLKb1Z87PCsUJFNdz%252Fhyperlend-5.png%3Falt%3Dmedia%26token%3D6d5d0fa7-b557-4540-b14a-747d1659aa50&width=1248&dpr=4&quality=100&sign=a841c331&sv=2) ### [](https://docs.hyperlend.finance/hyperlend-1/tokenization#htoken) • hToken **hToken** represents a **tokenized supply position**, functioning as a **yield-bearing ERC-20 token**. These tokens are minted when assets are deposited into the Pool and are burned when the underlying assets are redeemed. * * * ### [](https://docs.hyperlend.finance/hyperlend-1/tokenization#debttoken) • DebtToken **DebtTokens** are **non-transferrable interest-accruing tokenized debt positions**. These tokens represent the debt incurred by users and accumulate interest over time. [PreviousPoints](https://docs.hyperlend.finance/hyperlend-1/points) [NextFees](https://docs.hyperlend.finance/hyperlend-1/fees) Last updated 1 year ago --- # Referrals | HyperLend You can generate your personal referral code directly within the HyperLend app by opening the "Referrals" pop-up. Your referral rewards and tier details, structured across **13 different tiers**, depend on the total amount of points earned by users you've invited. With each higher tier, you earn a **greater percentage of points** from the activity of users you've referred — effectively compounding your rewards as your network grows. Each tier shows your current **boost in percentage** next to the tier rank (e.g., _Tier 2 (+2%)_), so you always know exactly how much additional yield you're getting from your referrals. Specific rewards and tier benefits are clearly outlined within the referrals pop-up. Share your referral link to invite other traders (the code matches with the username you have set in the dahsboard page): `https://app.hyperlend.finance/?ref=CODE` [PreviousLiquidations](https://docs.hyperlend.finance/hyperlend-1/liquidations) [NextFees and Yield](https://docs.hyperlend.finance/hyperlend-1/fees-and-yield) Last updated 6 months ago --- # Risks | HyperLend As with all DeFi platforms, there are certain risks associated with using HyperLend, and users should be aware of them before engaging with our platform. We strive to protect user assets to the best of our abilities, but no system is completely safe. * * * ### [](https://docs.hyperlend.finance/hyperlend-1/risks#smart-contract-risk) • Smart Contract Risk Our smart contracts have undergone **rigorous auditing processes** conducted by reputable auditors, including Cantina, Ackee Blockchain and Pashov Audit Group (Everything can be seen [here](https://hyperlend.finance/security) ). We will also provide a **bug-bounty program**, available at [Github](https://github.com/hyperlendx/bug-bounty) . While these audits significantly mitigate risks, residual vulnerabilities may persist despite our best efforts to eliminate them entirely. Additionally, our smart contract will undergo extensive **"battle-testing"** through prolonged periods of both **test-net and real-world deployment** and a high volume of transactions. This phase aims to mature the code by exposing it to various scenarios and interactions, thereby refining its **reliability and security**. ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FgRm3bq4N2dHxQ3yktYnl%252Fphoto_2024-11-09%252016.15.20.jpeg%3Falt%3Dmedia%26token%3D64335a85-4db4-4dac-a721-cba66ac44b7a&width=768&dpr=4&quality=100&sign=2180aff6&sv=2) * * * ### [](https://docs.hyperlend.finance/hyperlend-1/risks#market-and-volatility-risk) • Market and Volatility Risk Since HyperLend allows the **borrowing and lending of volatile tokens**, there is always a market risk. The most common risk is a **rapid devaluation of an asset** used as collateral. If the protocol is unable to liquidate unhealthy loans, it will result in **bad debt** (a situation where the market value of total debt is greater than the value of collateral, making the protocol insolvent). To mitigate this risk, we carefully consider which assets to list, considering both **on-chain (DEX)** and **off-chain (CEX, OTC) liquidity**. We are working with [Block Analitica](https://blockanalitica.com/) to provide comprehensive risk assessments, collateral onboarding, dynamic parameter management, and continuous market monitoring. We are also working with [Hypernative](https://www.hypernative.io/) to provide real-time monitoring and incident response, mitigating threats before they happen with automated detection and onchain actions. [PreviousCore Components](https://docs.hyperlend.finance/hyperlend-1/core-components) [NextOracle](https://docs.hyperlend.finance/hyperlend-1/oracle) Last updated 8 months ago --- # ↪How to Lend on HyperLend | HyperLend ![Page cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252F62PmI2UvsTunSbqkvBIf%252Fhyperlend-5.png%3Falt%3Dmedia%26token%3D5bbbbed3-efce-4214-8e14-0207e72f7b4c&width=1248&dpr=4&quality=100&sign=3922c926&sv=2) ### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-lend-on-hyperlend#steps-to-lend) • Steps to Lend 1. **Navigate to the "Supply" section** of the HyperLend platform. 2. **Select the asset** you wish to supply and click on **"Supply."** 3. **Specify the amount** you intend to supply and submit your transaction. * **Note:** The initial supply of an asset requires an additional approval transaction. 4. Once your transaction is confirmed, your supply is successfully registered, and you begin **earning interest immediately**. ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FEhL7o7dNW7NOtJl4caH3%252Fimage.png%3Falt%3Dmedia%26token%3Dd8cd1b75-3288-433b-9666-41d0893ff7db&width=768&dpr=4&quality=100&sign=6f97e09d&sv=2) * * * ### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-lend-on-hyperlend#earnings-potential) • Earnings Potential #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-lend-on-hyperlend#interest-and-earnings) Interest and Earnings * **Interest Rate Payments:** Earnings are derived from the **interest paid by borrowers**. Suppliers receive a share of these payments based on the average borrow rate multiplied by the utilization rate. **Higher reserve utilization** results in higher yields for suppliers. * **Flash Loan Fees:** Suppliers also earn a portion of the **Flash Loan fees**, which are currently set at **0.04% of the Flash Loan volume**. Each asset on HyperLend has its own market dynamics, influencing its **Annual Percentage Yield (APY)**. The average annual rate over the past 30 days is available for evaluating rate trends, and additional data can be accessed in the **reserve overview section** of the platform. * * * ### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-lend-on-hyperlend#supply-parameters) • Supply Parameters #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-lend-on-hyperlend#minimum-and-maximum-supply) Minimum and Maximum Supply * There is **no minimum amount required to supply**. However, it is prudent to consider transaction costs, as they may exceed the earnings for very low supply amounts. * HyperLend employs a **supply cap parameter**, which is governed by **HyperLend Governance**. This cap limits the total amount of an asset that can be supplied. * * * ### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-lend-on-hyperlend#borrowing-details) • Borrowing Details #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-lend-on-hyperlend#interest-rate-selection) Interest Rate Selection Users can borrow at either a **stable or variable rate** for each asset, but not both simultaneously. **Switching rates** will apply to the entire debt on that asset. However, different assets can have different borrow rates. * * * ### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-lend-on-hyperlend#withdrawal-process) • Withdrawal Process #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-lend-on-hyperlend#steps-to-withdraw) Steps to Withdraw 1. Access the **"Markets -> Click on HYPE" section** and select **"Withdraw."** 2. Choose the **amount you wish to withdraw** and submit the transaction. 3. You can use your supplied assets as liquidity without withdrawing. Ensure **sufficient liquidity** is available (i.e., not borrowed by others) to complete a withdrawal. If liquidity is insufficient, you must wait for more supply or borrower repayments. * * * ### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-lend-on-hyperlend#collateral-management) • Collateral Management #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-lend-on-hyperlend#opting-out-of-collateral) Opting Out of Collateral * After supplying assets, you can **opt out of using them as collateral**. This option is available in the **"Supply" section** of your dashboard. Toggle the **"use as collateral" button off** for the specific asset you wish to exclude from collateral use. * You can withdraw assets without opting out, provided they are not actively used for borrowing and their withdrawal does not trigger a liquidation of your loans. * * * By following these guidelines, you can effectively manage your supplies, earnings, and collateral on HyperLend, ensuring a **streamlined and efficient experience** on the platform. [PreviousHow to HyperLend?](https://docs.hyperlend.finance/essentials/how-to-hyperlend) [Next↪ How to Borrow from HyperLend](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend) Last updated 14 days ago --- # Fees and Yield | HyperLend ![Page cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FY8yKLKb1Z87PCsUJFNdz%252Fhyperlend-5.png%3Falt%3Dmedia%26token%3D6d5d0fa7-b557-4540-b14a-747d1659aa50&width=1248&dpr=4&quality=100&sign=a841c331&sv=2) HyperLend charges **three types of fees**: * **Reserve factor**: Part of the interest paid by borrowers goes to the **insurance fund and treasury**. * **Liquidation fees**: When a position is liquidated, a portion of the **liquidation bonus** is paid to the treasury. * **Flash-loan fees**: A small **0.04% fee** for utilizing flash loans. * **Deposits & Withdrawals: ZERO FEES** * * * ### [](https://docs.hyperlend.finance/hyperlend-1/fees-and-yield#yield) • Yield HyperLend offers **dynamic and competitive yield rates** for lenders. **Interest rates** are determined by supply and demand within the liquidity pool, with higher demand resulting in higher returns. Additionally, **E-Mode** in Core Pools enhances capital efficiency for assets with correlated prices, maximizing **yield opportunities**. [PreviousReferrals](https://docs.hyperlend.finance/hyperlend-1/referrals) [NextHyperLoop](https://docs.hyperlend.finance/hyperlend-1/hyperloop) Last updated 6 months ago --- # Core Components | HyperLend ![Page cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FY8yKLKb1Z87PCsUJFNdz%252Fhyperlend-5.png%3Falt%3Dmedia%26token%3D6d5d0fa7-b557-4540-b14a-747d1659aa50&width=1248&dpr=4&quality=100&sign=a841c331&sv=2) ### [](https://docs.hyperlend.finance/hyperlend-1/core-components#core-pools) • Core Pools Core Pools are the lending pools that allow the supplying or borrowing of multiple tokens in a single pool. This increases the capital efficiency, but also the risk, since if one of the assets in the pool fails (e.g. market manipulation, infinite mint exploits...), the entire pool is at risk. * * * ### [](https://docs.hyperlend.finance/hyperlend-1/core-components#e-mode-efficiency-mode) • **E-mode (Efficiency Mode):** E-mode allows users to borrow with higher LTV when both the collateral and borrowed assets are from the same correlated category, such as stablecoins or staking derivatives. It increases capital efficiency while keeping risk isolated. When enabled, borrowing and supplying are restricted to assets within that category. * * * ### [](https://docs.hyperlend.finance/hyperlend-1/core-components#isolated-pools) • Isolated Pools Isolated Pools isolate the risk since each market only consists of 2 tokens, one that can be used as collateral and one that can be borrowed. * * * [Previous↪ How to Share your Yield in Style](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-share-your-yield-in-style) [NextRisks](https://docs.hyperlend.finance/hyperlend-1/risks) Last updated 7 months ago --- # ↪ How to Refer on HyperLend | HyperLend ↝ **Steps to Refer** 1. **Connect Your Wallet** * Navigate to the **Referrals** section on the dashboard and click **Connect** to link your wallet. 2. **Create Your Unique Referral Name** * Enter a personalized referral name in the provided field. * Ensure it’s unique and memorable to share easily. * Click **Save** to finalize your referral name. 3. **Share Your Referral Link** * Share the generated referral link with your network. * Your link automatically tracks referred users for rewards. 4. **Track Your Referrals** * Visit the **Referrals** section to monitor the number of referrals and your earned rewards. ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FqzP4pH1ekHX7tTWIFepi%252Fimage.png%3Falt%3Dmedia%26token%3Db8973bbf-aeda-4357-a58e-fd6a2a7def4e&width=768&dpr=4&quality=100&sign=127047c9&sv=2) * * * HyperLend's referral system makes it easy to invite others while earning rewards for growing the community. Start now and make the most of your network! [Previous↪ How to Loop on HyperLend](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-loop-on-hyperlend) [Next↪ How to Share your Yield in Style](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-share-your-yield-in-style) Last updated 7 months ago --- # ↪ How to Loop on HyperLend | HyperLend * * * **Earn up to 2x your staking yield with stHYPE or kHYPE — automatically.** Looping is a yield-maximizing strategy that uses your liquid staking tokens (stHYPE or kHYPE) as collateral, borrows wHYPE, and re-deposits it — compounding your exposure and returns automatically. * * * #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-loop-on-hyperlend#steps-to-loop) • Steps to Loop 1. **Navigate to the “Loop” section** of the HyperLend platform. 2. **Select your Yield Asset** Choose **stHYPE** or **kHYPE** — both are liquid staking tokens for HYPE and will earn interest. 3. **Select your Debt Asset** Set **wHYPE** as the debt asset. This is what you'll borrow to loop back into your yield position. 4. **Adjust Your Leverage** Use the slider to set your desired leverage. Higher leverage means higher potential returns — and higher risk. 5. **Enter the Amount You Want to Loop** Choose how much of your stHYPE or kHYPE to deposit into the strategy. 6. **Click “Open Position”** HyperLend will automatically handle the looping process via Liquid Launch (aggregator). > Once your position is opened, it appears in the **“Your Positions”** section. From there, you can track your performance and make changes. * * * #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-loop-on-hyperlend#managing-your-position) • Managing Your Position * **Click “Modify”** next to your active position. * You can **Add** more collateral or **Remove** some, adjusting your exposure dynamically without closing the loop. * * * #### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-loop-on-hyperlend#risk-considerations) ⚠️ Risk Considerations Looping with leverage can boost your returns — but it introduces serious risks you must manage: * **Liquidation Risk**: If the price of your collateral drops or your **Health Factor** falls too low, your position may be liquidated. * **LST Depeg Risk**: Since you're swapping and looping between **HYPE** and its liquid staking derivatives (**stHYPE** or **kHYPE**), any **depeg** from the underlying HYPE value can put your position at risk. If stHYPE or kHYPE trades below its expected redemption value, it can cause unexpected losses and accelerate liquidation risk. * **Leverage Risk**: Leveraging amplifies both your gains and your downside. A 3x position falls apart 3x faster in volatile markets. * **Swap Impact**: The protocol performs swaps automatically to rebalance your loop. In thin markets or large positions, this can cause **price impact** and affect your final execution price. * **Borrow Rate Volatility**: Borrow rates on wHYPE are dynamic and can spike with utilization. That can erode your net yield and flip your position negative. **Always monitor your Health Factor and price relationships between HYPE and its LSTs.** Stay well within your risk tolerance and adjust your position proactively when needed. [Previous↪ How to Borrow from HyperLend](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-borrow-from-hyperlend) [Next↪ How to Refer on HyperLend](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-refer-on-hyperlend) Last updated 6 months ago --- # ↪ How to Share your Yield in Style | HyperLend ### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-share-your-yield-in-style#why-share-your-yield) Why Share Your Yield? ↝ **Advantages of Sharing** * **Showcase Your Success**: Display your earnings and APY to inspire others. * **Earn Referrals**: Boost your rewards by sharing your personalized referral link embedded in the graphic. * **Community Engagement**: Join the HyperLend community by sharing your unique designs. * * * ### [](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-share-your-yield-in-style#how-to-share-your-yield) How to Share Your Yield ↝ **Steps to Create and Share Graphics** 1. **Access the Share Feature** * Go to the **Markets** section, select your supplied asset, and click the **Share** button in the bottom right. ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FUDN6LyER6RfdRdNzy1e8%252FUntitled%2520design-152.png%3Falt%3Dmedia%26token%3Defd0c675-504a-41d4-a3f6-0733ee29f8ec&width=768&dpr=4&quality=100&sign=edc74be6&sv=2) 1. **Customize Your Graphic** 1. **Choose a Design**: Select from four stylish graphics to match your vibe. 2. **Add Your Twitter Username**: Enter your handle to personalize the design. 3. **Profile Picture Option**: Toggle on/off to include your Twitter profile picture. 2. **Preview Your Design** * Verify your earnings, APY, and personalization are displayed correctly. 3. **Share or Download** * **Share**: Instantly post on social media platforms. * **Download Image**: Save the graphic for manual sharing. Start sharing your yield today and join the vibrant HyperLend community! ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FhYlb5AC241bIs08tzWpn%252Fhyperlend-card%2520%2816%29.png%3Falt%3Dmedia%26token%3Dee67daae-cd43-4563-8952-f172b34c2dfa&width=768&dpr=4&quality=100&sign=ab9b2e4e&sv=2) [Previous↪ How to Refer on HyperLend](https://docs.hyperlend.finance/essentials/how-to-hyperlend/how-to-refer-on-hyperlend) [NextCore Components](https://docs.hyperlend.finance/hyperlend-1/core-components) Last updated 14 days ago --- # Borrow Against L1 Spot Positions | HyperLend This section lets you borrow assets against your Hyperliquid L1 assets such as HYPE, USDT0, uBTC, all from one simple interface. Instead of selling your position, you can deposit your tokens as collateral and borrow directly against them, giving you access to instant liquidity while keeping your core holdings intact. **From depositing to borrowing, its all done in just a few clicks.** When you deposit your L1 collateral, it is bridged to the EVM layer to be used for borrowing. Once you borrow, the stablecoins (borrowed assets) are bridged back from the EVM to L1, making them immediately usable on Hyperliquid Core. * **Want to see it in action?** [Watch the video here](https://x.com/hyperlendx/status/1929626448882463079) to see exactly how the borrowing interface works step-by-step. [PreviousHyperLoop](https://docs.hyperlend.finance/hyperlend-1/hyperloop) [NextLiquid Hyperliquidity Provider (wHLP)](https://docs.hyperlend.finance/hyperlend-1/liquid-hyperliquidity-provider-whlp) Last updated 5 months ago --- # HyperLoop | HyperLend **HyperLoop** lets you open a leveraged loop position using any two tokens: one is supplied, one is borrowed. * **Yield asset**: The token you supply to earn interest or rewards. * **Debt asset**: The token you borrow in the looped position, which accrues interest. When you deposit, HyperLoop uses a flashloan to instantly build your leveraged position in a single transaction. It works like this: 1. A flashloan of the **debt asset** is taken. 2. That debt token is **swapped** into the **yield asset**. 3. The resulting **yield asset** is supplied as collateral. 4. The same **debt asset** is then borrowed against the new collateral. 5. The borrowed amount, along with your initial supplied funds, is used to **repay the flashloan** (since the collateral's LTV is less than 100%). Note: Each position is held in an isolated contract, but any points earned still accrue to the user's main address. Please keep in mind that the HyperLoop position won't be shown on your dashboard page. The entire process is completed atomically using flashloans — no manual steps or repeated cycles required — and incurs a **0.04% flashloan** **fee** on the amount used during the transaction. [PreviousFees and Yield](https://docs.hyperlend.finance/hyperlend-1/fees-and-yield) [NextBorrow Against L1 Spot Positions](https://docs.hyperlend.finance/hyperlend-1/borrow-against-l1-spot-positions) Last updated 4 months ago --- # Liquidations | HyperLend ![Page cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FY8yKLKb1Z87PCsUJFNdz%252Fhyperlend-5.png%3Falt%3Dmedia%26token%3D6d5d0fa7-b557-4540-b14a-747d1659aa50&width=1248&dpr=4&quality=100&sign=a841c331&sv=2) ### [](https://docs.hyperlend.finance/hyperlend-1/liquidations#overview) • Overview Each account's health on HyperLend is determined by a single value known as the **health factor**. This figure summarizes how well your portfolio is collateralized, effectively measuring its overall health. Hf\=∑Collaterali in ETH×Liquidation ThresholdiTotal Borrows in ETHH\_f = \\frac{\\sum \\text{Collateral}\_i \\text{ in ETH} \\times \\text{Liquidation Threshold}\_i}{\\text{Total Borrows in ETH}}Hf​\=Total Borrows in ETH∑Collaterali​ in ETH×Liquidation Thresholdi​​ * * * ### [](https://docs.hyperlend.finance/hyperlend-1/liquidations#liquidation) • Liquidation **Liquidation** occurs when a borrower's health factor falls below 1, indicating that their **collateral value** no longer sufficiently covers their **loan/debt value**. This situation can arise if the collateral decreases in value or the borrowed debt increases in value relative to each other. During a liquidation, a portion of the borrower's debt is repaid, and this amount plus a **liquidation fee** is deducted from the available collateral. Consequently, the liquidated debt portion is repaid. * * * ### [](https://docs.hyperlend.finance/hyperlend-1/liquidations#liquidation-penalty) • Liquidation Penalty The **liquidation penalty**, or bonus for liquidators, varies based on the collateral asset. You can find the liquidation fee for each asset in the risk parameters section. For example, Joe deposits 5 ETH (when ETH is worth 1000 USDC) and borrows 4000 USDC. The next day, ETH value falls to $810, at which point Joe's health factor falls below 1. Since it's now below the liquidation threshold, a liquidator can repay the 4000 USDC loan and claim the 5 ETH (worth 4050 USDC, which they can immediately sell for a profit). * * * ### [](https://docs.hyperlend.finance/hyperlend-1/liquidations#avoiding-liquidation) • Avoiding Liquidation To **prevent liquidation**, you can improve your health factor by depositing more collateral assets or repaying part of your loan. Generally, **repayments** boost your health factor more significantly than deposits. It's crucial to monitor your health factor and maintain it at a high level to avoid liquidation. For instance, keeping your health factor above 2 provides a greater margin of safety. * * * ### [](https://docs.hyperlend.finance/hyperlend-1/liquidations#becoming-a-liquidator) • Becoming a Liquidator Liquidations on HyperLend are open to anyone. If you spot an under-collateralized position, you can repay part of the borrower’s debt and claim a portion of their collateral at a discount — no whitelisting, no permissions. Whether you're running a custom keeper or just getting started, it's all composable. * **Example Bot**: [github.com/hyperlendx/liquidator](https://github.com/hyperlendx/liquidator) – a reference Rust bot that monitors positions and executes profitable liquidations. * **Developer Docs**: The core entry point for liquidations is the [`liquidationCall()`](https://docs.hyperlend.finance/developer-documentation/core-pools/pool) function. Review the ABI, required parameters, and operational flow here. * * * [](https://docs.hyperlend.finance/hyperlend-1/liquidations#liquidation-strategies-and-cross-chain-execution) Liquidation Strategies & Cross-Chain Execution ---------------------------------------------------------------------------------------------------------------------------------------------------------------- **1\. Onchain Flash Loan + DEX Liquidation (HyperEVM-native)** * Execute full liquidation atomically in one EVM transaction. * Ideal for low-latency trades with sufficient onchain liquidity. * Uses a flash loan to repay the borrow, sells collateral via DEX, and captures the bonus. ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FkMELm7Pkb3Tf40LLEEj9%252Fimage.png%3Falt%3Dmedia%26token%3Dfd5c2cb2-3c1b-4fc4-96bd-973555f95c88&width=768&dpr=4&quality=100&sign=f2322ae4&sv=2) A traditional DEX liquidity based liquidation **2\. Upfront Capital + Orderbook Exit (Cross-Chain)** * Liquidator uses own capital to repay debt on HyperEVM. * Collateral is bridged to HyperCore and sold via the deeper L1 orderbook. * Favored for assets like uBTC or uETH where orderbook liquidity is superior. ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252F9sPHHVfsewgeCP8cE1hi%252Fimage.png%3Falt%3Dmedia%26token%3Dce03cf8d-f2cd-47a7-9656-7b027f47da19&width=768&dpr=4&quality=100&sign=2edfa5e9&sv=2) Liquidation based on paying debt token upfront without bridging **3\. Debt Bridging + Orderbook Liquidation** * Liquidator bridges debt token from Core → EVM, repays loan, acquires collateral. * Collateral is bridged back to Core and sold on the orderbook. * This is the **default strategy** assumed for protocol parameter tuning. * Higher latency and price risk but aligns with real-world liquidator setups. ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FEUCIkaehZz7r4Zzu8S7J%252Fimage.png%3Falt%3Dmedia%26token%3D1274ca51-809e-4297-bd94-0d7d22c150b0&width=768&dpr=4&quality=100&sign=60e5fb45&sv=2) Liquidation based on paying debt and selling collateral completely via orderbook ### [](https://docs.hyperlend.finance/hyperlend-1/liquidations#guidance-for-liquidators) Guidance for Liquidators: Liquidators interacting with Hyperlend should be aware of the multiple viable strategies for executing liquidations, depending on their liquidity profile and desired execution venue. If operating natively on HyperEVM, liquidations can be performed atomically using flash loans, repaying debt and liquidating collateral via DEXs in a single transaction. Alternatively, if capital is concentrated on HyperCore, liquidators may bridge tokens to HyperEVM using the `spotSend` mechanism—ensuring the token is properly linked—then repay debt, obtain collateral, and bridge assets back to HyperCore for sale on a deeper L1 orderbook. When bridging from EVM to Core, ERC20 transfers should be directed to the system address of the linked token contract. Note that fungibility between Core and EVM spot assets is not always guaranteed; liquidators must refer to system caveats to assess slippage or market divergence risks during cross-chain transfers. [PreviousFees](https://docs.hyperlend.finance/hyperlend-1/fees) [NextReferrals](https://docs.hyperlend.finance/hyperlend-1/referrals) Last updated 5 months ago --- # Liquid Hyperliquidity Provider (wHLP) | HyperLend The **Hyperliquid Provider Vault (HLP)** is a decentralized liquidity pool within Hyperliquid that allows users to deposit assets and collectively provide liquidity for trading. Participants earn yield from trading fees and share both profits and losses generated by trading activities. **Why make it available as collateral?** - it enables capital efficiency by allowing depositors to borrow against their liquidity positions, maximizing their flexibility without needing to withdraw assets from the vault. * * * ### [](https://docs.hyperlend.finance/hyperlend-1/liquid-hyperliquidity-provider-whlp#how-to-make-it-available-as-collateral) How to make it available as collateral? ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FTxomJnN6P8oO5GRsUFym%252Fhlp.png%3Falt%3Dmedia%26token%3Dce6c6ca8-08d7-402f-b109-7d0759d91e1c&width=768&dpr=4&quality=100&sign=210c941b&sv=2) Users deposit USDC into the vault, which then transfers it to Hyperliquid L1 exchange, where it's deposited into the HLP vault. Vault shares (represented as ERC20 tokens) can then be used as collateral in Isolated Pools. To redeem the underlying USDC, shares are burned, a proportional portion of the vault position is withdrawn and USDC is transferred back to the Liquid HLP vault where it can be claimed. `sharePrice = totalHlpDepositBalance / totalShares` For more information on the _liquid_ HLP vault: [https://x.com/hyperlendx/status/1866200186915266716](https://x.com/hyperlendx/status/1866200186915266716) * * * ### [](https://docs.hyperlend.finance/hyperlend-1/liquid-hyperliquidity-provider-whlp#example) Example; Imagine you deposit **$10,000 USDC** into the Hyperliquid Provider Vault (HLP). In return, you receive tokenized shares representing your vault position (wHLP tokens). Currently, HLP offers an attractive yield of approximately **1.75% per month (~23% annually)**, coupled with low volatility (annualized volatility of 17.89%) and strong risk-adjusted returns (Sharpe ratio of 2.89 lifetime, recently as high as 5.2). **Because HLP shares are collateralizable, you can borrow and loop your position multiple times.** * **Without loop:** Deposit into HLP → total exposure = **$10,000** _(Earning $175/month or $2,100/year)_ * **First loop:** Borrow $5,000 (50% LTV), deposit back into HLP → total exposure = **$15,000** _(Earning $262.50/month or $3,150/year)_ * **Second loop:** Borrow another $2,500 (50% of the $5,000), deposit again → total exposure = **$17,500** _(Earning $306/month or $3,672/year)_ * **Third loop:** Borrow another $1,250 → total exposure = **$18,750;** _(Earning $328/month or $3,936/year)_ * **Fourth loop:** Borrow another $625 → total exposure = **$19,375** _(Earning $339/month or_ _$4,068/year)_ * **Fifth loop:** Borrow another $312.50 → total exposure = **$19,687.50** _(Earning $344/month or $4,128/year)_ These yield estimates are based on the historical performance analysis detailed [here](https://medium.com/@RyskyGeronimo/a-risk-return-analysis-of-hyperliquids-hlp-vault-7c164cd00a0d) . Please be aware that leveraging your position through looping inherently introduces **additional risks**, including increased exposure to liquidation risks if market conditions shift. Always manage your risk carefully and monitor positions closely when employing leveraged strategies. [PreviousBorrow Against L1 Spot Positions](https://docs.hyperlend.finance/hyperlend-1/borrow-against-l1-spot-positions) [NextHyperLend Architecture](https://docs.hyperlend.finance/hyperlend-1/hyperlend-architecture) Last updated 4 months ago --- # HyperLend Architecture | HyperLend ![Page cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FY8yKLKb1Z87PCsUJFNdz%252Fhyperlend-5.png%3Falt%3Dmedia%26token%3D6d5d0fa7-b557-4540-b14a-747d1659aa50&width=1248&dpr=4&quality=100&sign=a841c331&sv=2) HyperLend's design centers around a **lending pool** where users can **deposit and borrow cryptocurrency**. The platform employs an **algorithm** to set **interest rates** based on **supply and demand**, ensuring **competitive rates**. It also offers **flash loans**, allowing users to borrow funds **without collateral** for **short-term needs**. **Governance** is decentralized, meaning users with tokens can **vote on important decisions**. **Security** is a top priority, with all **smart contracts audited by third parties** to **protect user funds**. ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FCxjRxmYR5s9RIZzQxea7%252FHyperLend%2520User%2520%281500%2520x%25201500%2520px%29-3.png%3Falt%3Dmedia%26token%3D399f98f3-aa3c-44e6-b4fe-8aaacda6f903&width=768&dpr=4&quality=100&sign=e26798cb&sv=2) [PreviousLiquid Hyperliquidity Provider (wHLP)](https://docs.hyperlend.finance/hyperlend-1/liquid-hyperliquidity-provider-whlp) [NextHyperTrack](https://docs.hyperlend.finance/hyperlend-1/hypertrack) Last updated 1 year ago --- # Data & Indexers | HyperLend ### [](https://docs.hyperlend.finance/developer-documentation/data-and-indexers#ponder-indexer) Ponder Indexer Docs are available at [ponder.hyperlend.finance](https://ponder.hyperlend.finance/) . ### [](https://docs.hyperlend.finance/developer-documentation/data-and-indexers#hyperlend-indexer) HyperLend Indexer See [API](https://docs.hyperlend.finance/developer-documentation/api) (`/data/transactions`) ### [](https://docs.hyperlend.finance/developer-documentation/data-and-indexers#rpcs) RPCs You can query raw blockchain data using our RPC (located in Singapore) * [https://rpc.hyperlend.finance](https://rpc.hyperlend.finance/) * eRPC load balancer, using multiple standard and archive nodes (both public and private) * more info in [HyperEVM RPC docs](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/hyperevm/json-rpc) * maximum _eth\_getLogs_ query range is 50 blocks. For higher limits, use the archive endpoint * [https://rpc.hyperlend.finance/archive](https://rpc.hyperlend.finance/archive) * [Nanoreth](https://github.com/sprites0/nanoreth) \-based nodes, with full history Rate limits are set to 30 requests/second per IP, but can be changed at any time. [PreviousAPI](https://docs.hyperlend.finance/developer-documentation/api) [NextSDK](https://docs.hyperlend.finance/developer-documentation/sdk) Last updated 6 months ago --- # HyperTrack | HyperLend The **HyperLend Alerts Bot** is designed to keep you updated on critical activities within your HyperLend account. With customizable alerts for health factors, borrow rates, and liquidations, you can track specific addresses and receive timely notifications straight to your Telegram. Whether you're monitoring transactions or managing risk thresholds, this bot makes it easy to stay informed and respond quickly to changes that matter most. We value your feedback, and any suggestions will be rewarded—just send us a DM on [Twitter](https://x.com/hyperlendx) . [PreviousHyperLend Architecture](https://docs.hyperlend.finance/hyperlend-1/hyperlend-architecture) [NextGetting Started](https://docs.hyperlend.finance/hyperlend-1/hypertrack/getting-started) Last updated 14 days ago --- # Getting Started | HyperLend #### [](https://docs.hyperlend.finance/hyperlend-1/hypertrack/getting-started#id-2.-getting-started) 2\. Getting Started **Adding the Bot** 1. **Open Telegram**: Ensure you have Telegram installed on your device and are logged in to your account. 2. **Search for the HyperLend Tracking Bot**: In the search bar, type "@hypertrackbot" and look for the official bot. ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FCQLIzjBiwDRKRDpPY8wS%252Fimage.png%3Falt%3Dmedia%26token%3Dcc0cebd5-f7fe-4a89-859a-68afcc0faf9a&width=768&dpr=4&quality=100&sign=9e3f83b6&sv=2) 1. **Start the Bot**: Click on the bot and press the **Start** button at the bottom of the chat to initiate the bot. You’ll see a welcome message with a list of commands and features. 2. **Grant Permissions**: Some alerts may require you to enable notifications in your Telegram settings. Make sure notifications are turned on so you don’t miss any important alerts. * * * **Setting Up Alerts** 1. **Add an Address**: To start tracking an address, use the **Add Address** command from the bot's menu or type `/addaddress [address]` in the chat. This will add the address for transaction and health factor monitoring. 2. **Enable Specific Alerts**: Use the bot’s menu to configure different types of alerts: * **Liquidation Alerts**: Go to the **Liquidation Alerts** option to toggle liquidation notifications on or off. * **Borrow Rate Alerts**: Select **Borrow Rate** in the menu to set specific thresholds for borrow rate alerts. * **Health Factor Alerts**: Use **Health Factor** to receive notifications if the health factor of a tracked address reaches critical levels. 3. **View and Manage Subscriptions**: You can view all active alerts and tracked addresses by selecting the **View My Alerts** option in the menu. From here, you can also adjust or remove any alerts as needed. * * * **Need Help?** If you run into any problems or have questions, feel free to send us a direct message on [Twitter](https://x.com/hyperlendx) . We're here to help and will get back to you as soon as possible. With these steps, you're ready to monitor your HyperLend activity and receive timely updates on key metrics. [PreviousHyperTrack](https://docs.hyperlend.finance/hyperlend-1/hypertrack) [NextBot Functions](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions) Last updated 1 year ago --- # SDK | HyperLend TypeScript SDK & docs are available at [https://github.com/hyperlendx/hyperlend-sdk-ts](https://github.com/hyperlendx/hyperlend-sdk-ts) [PreviousData & Indexers](https://docs.hyperlend.finance/developer-documentation/data-and-indexers) [NextContract Addresses](https://docs.hyperlend.finance/developer-documentation/contract-addresses) Last updated 6 months ago --- # FAQ | HyperLend How do I add an address to track?[](https://docs.hyperlend.finance/hyperlend-1/hypertrack/faq#how-do-i-add-an-address-to-track) Use the **Add Address** command from the menu or type `/add [address]` in the chat. This will start tracking the specified address for transactions and health factor alerts. What types of alerts can I receive?[](https://docs.hyperlend.finance/hyperlend-1/hypertrack/faq#what-types-of-alerts-can-i-receive) The bot provides the following alerts: * **Health Factor Alerts**: Notifies you if the health factor of a tracked address reaches a certain threshold. * **Borrow Rate Alerts**: Alerts you when the borrow rate of a tracked address hits specified levels. * **Liquidation Alerts**: Informs you of liquidation events for any tracked address. How often will I receive alerts?[](https://docs.hyperlend.finance/hyperlend-1/hypertrack/faq#how-often-will-i-receive-alerts) Health factor and borrow rate alerts are updated hourly, with one notification per day. Liquidation alerts are sent immediately when an event occurs. How do I enable or disable liquidation alerts?[](https://docs.hyperlend.finance/hyperlend-1/hypertrack/faq#how-do-i-enable-or-disable-liquidation-alerts) Use the **Liquidation Alerts** option in the menu to toggle liquidation notifications on or off for tracked addresses. What should I do if I'm not receiving notifications?[](https://docs.hyperlend.finance/hyperlend-1/hypertrack/faq#what-should-i-do-if-im-not-receiving-notifications) Try the following troubleshooting steps: * Ensure notifications are enabled in your Telegram settings. * Use the **Refresh Data** option in the menu to reload your settings. * Make sure you have correctly added addresses for tracking. * Check if the alert frequency settings are set as desired. How do I update my notification settings?[](https://docs.hyperlend.finance/hyperlend-1/hypertrack/faq#how-do-i-update-my-notification-settings) Go to **Settings** in the menu to adjust your notification preferences, including sound, frequency, and type of alerts. Can I track multiple addresses at once?[](https://docs.hyperlend.finance/hyperlend-1/hypertrack/faq#can-i-track-multiple-addresses-at-once) Yes, you can add multiple addresses for tracking. Each address will have its name and a own set of alerts that you can customize. Is my data secure with this bot?[](https://docs.hyperlend.finance/hyperlend-1/hypertrack/faq#is-my-data-secure-with-this-bot) Yes, your data privacy is a priority. The bot only tracks the addresses you add and does not store personal information beyond the tracking requirements. Who should I contact for support?[](https://docs.hyperlend.finance/hyperlend-1/hypertrack/faq#who-should-i-contact-for-support) Use the **Help & Support** option in the menu for assistance or visit the [**Official Twitter**](https://x.com/hyperlendx) or [**Website**](https://hyperlend.finance/home) for more resources and contact options. [Previous↪ Advanced Approach](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/advanced-approach) [NextAPI](https://docs.hyperlend.finance/developer-documentation/api) Last updated 8 months ago --- # Core Pools | HyperLend ![Page cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FY8yKLKb1Z87PCsUJFNdz%252Fhyperlend-5.png%3Falt%3Dmedia%26token%3D6d5d0fa7-b557-4540-b14a-747d1659aa50&width=1248&dpr=4&quality=100&sign=a841c331&sv=2) **HyperLend Core Pools are based on Aave V3 contracts.** The source code of the HyperLend Core contracts is available on [GitHub](https://github.com/hyperlendx/hyperlend-core) . * * * **Pool** The `Pool` contract is the main entry point into the Hyperlend Core Pools. Most user interactions with the protocol occur through this contract. **PoolConfigurator** The `PoolConfigurator` provides configuration methods for the `Pool` contract. The write methods in this contract can only be called by addresses with the appropriate permissioned system roles managed by the `ACLManager`. * * * **PoolAddressesProvider** The `PoolAddressesProvider` acts as a registry for various protocol components, including the `Pool`contract. It also can modify the implementation of proxy contracts. * * * **Oracle** The `Oracle` is the registry of oracles used to fetch asset prices and manage price sources. **ProtocolDataProvider** The `ProtocolDataProvider`collects and preprocesses information from the `Pool`contract, making it easier to use. **InterestRateStrategy** The `InterestRateStrategy` contract calculates the interest rates based on the state of the reserve. * * * **hToken** `hTokens` are yield-generating tokens minted and burned upon the supply and withdrawal of assets to and from the Hyperlend Pool. **VariableDebtToken** `VariableDebtTokens` are non-transferable tokens that accrue interest, representing borrow positions with variable borrow rates. * * * [PreviousContract Addresses](https://docs.hyperlend.finance/developer-documentation/contract-addresses) [Next↪ pool](https://docs.hyperlend.finance/developer-documentation/core-pools/pool) Last updated 6 months ago --- # Contract Addresses | HyperLend **Core Pools contracts** Name Address Pool 0x00A89d7a5A02160f20150EbEA7a2b5E4879A1A8b PoolImplementation 0xc19d68383Ed7AB130c15cEad839e67A7Ed9d7041 PoolConfigurator 0x8CB4310dD38F6fD59388C9DE225f328092bdC379 PoolConfigurator (impl) 0xdc1f036389fc0Ad122D96893576C1C6434215eAB PoolAddressesProvider 0x72c98246a98bFe64022a3190e7710E157497170C PoolAddressesProviderRegistry 0x24E301BcBa5C098B3b41eA61a52bFe95Cb728b20 hToken (impl) 0x7D4b11BC3f57C2BE2274e5C8Aa8e93a5315bbEee VariableDebtToken (impl) 0x849140d62D1A298218EC974D2339BFC61fdf7D5C Oracle 0xC9Fb4fbE842d57EAc1dF3e641a281827493A630e ACLManager 0x10914Ee2C2dd3F3dEF9EFFB75906CA067700a04A DefaultInterestRateStrategy 0xD01E9AA0ba6a4a06E756BC8C79579E6cef070822 ProtocolDataProvider 0x5481bf8d3946E6A3168640c1D7523eB59F055a29 WrappedTokenGateway 0x49558c794ea2aC8974C9F27886DDfAa951E99171 RewardsController (impl) 0x484b0C602819d5A85bFFaC26E5B28c69F38c2941 RewardsController 0x2aF0d6754A58723c50b5e73E45D964bFDD99fE2F StaticATokenFactory (impl) 0xe1A9577C8c9ca4182669E192C8167ACd9F7325df StaticATokenFactory 0x561879b3430dbFc0071004aE3BF640020a1aa9AD StaticAToken (impl) 0x4376C06D866557faC5d0B5813526639c403BfcF5 TransparentProxyFactory 0x390d2B4AFCCB4071fd163bcED7c715Bde06F0f4a ProxyAdmin 0xdb3Bf3e22380780F75D7F57C772e71fCa7EBA027 Treasury 0xA9A7e0E91689C49bf9F2A15a768cAebBA6A5EEC5 Treasury (impl) 0x6A14A52bC00F60F6f13b960790Cf9a3D90267503 EmissionManager 0xF8f60F84a43D05316ccff66407fC466b50c3c2B3 ConfigEngine 0x3e6c029ae09A851A958172605EB77e08E3631F0e UiPoolDataProvider 0x3Bb92CF81E38484183cc96a4Fb8fBd2d73535807 UiIncentiveDataProvider 0xD47dc1F30994539B3fA000C70bB5E5D0bE203b54 WalletBalanceProvider 0x99478e5c8d0597730844Fd93dB8AB4723b96e149 **Oracles** Name Address Pyth - HYPE/USD 0xdE8d22d022261c9Fb4b5338DA8ceFb029175D0F5 Pyth - wstHYPE/stHYPE 0xe6E8baDBB469d16e2060e1Ebeb60F92B2a1250A9 Pyth - wstHYPE/USD 0x92E86F458CA07351CC31f9DbeEb55715FCF9C272 ChainlinkConsumer 0x2F81b130ce13337f4eAc9e205E5eA710b492dbA4 Chainlink - HYPE/USD 0xf1CeE6FD8464a059B6d2F3e8A0754cD530e78c17 Chainlink - USDT/USD 0x5d5EE47c6bCf6B05B2a3F65c4e37312Dc978d30D Chainlink - USDe/USD 0x6926d2C4f5aecD82192A9faf7B8e09A1d103bf23 **Governance** Name Address Governance Multisig 0x2110E7B8e925C387A88259CEac9bd82c47868E9C Timelock A 0xaAaaaAAAa810beD1EDA93A18FEC940857ED17879 Timelock B 0xbbBBbbBB81e9B92918AA51e0CDfB3B53f7D72432 Executor 0x1a54A8C3C49127FcF17F45B842d760f877746B22 Treasury Multisig 0xCBF400610DBF462fE316D8A7db6Ba78d57E43d7b EmergencyAdmin Multisig 0xC2A0F2c78dd7E37C82aA3A8e37fc712a3ddb7cAc Timelock C (isolated pools) 0xCCcCCcCCC4B6CD09594E7c5bF108695F79313115 ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FXXwgZQt5xMKE4ANtrRMb%252FNeimenovano.png%3Falt%3Dmedia%26token%3D2692a5e9-2d18-477a-8ff0-181bde63a574&width=768&dpr=4&quality=100&sign=12dbf50&sv=2) Governance Overview #### [](https://docs.hyperlend.finance/developer-documentation/contract-addresses#assets) Assets Ticker Contract hToken VariableDebtToken wHYPE 0x5555555555555555555555555555555555555555 0x0D745EAA9E70bb8B6e2a0317f85F1d536616bD34 0x747d0d4Ba0a2083651513cd008deb95075683e82 wstHYPE 0x94e8396e0869c9F2200760aF0621aFd240E1CF38 0x0Ab8AAE3335Ed4B373A33D9023b6A6585b149D33 0x45686A849e77CCb909F5d575F51C372bf26103D6 UBTC 0x9FDBdA0A5e284c32744D2f17Ee5c74B284993463 0xd2012c6DfF7634f9513A56a1871b93e4505EA851 0xE16a14972bcDE3f9Bd637502C86384533F27DA07 UETH 0xBe6727B535545C67d5cAa73dEa54865B92CF7907 0xdBA3B25643C11be9BDF457D6b3926992A735c523 0x14E10FA4E016183a024c74ACF539bb875c54e70C USDe 0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34 0x333819c04975554260AaC119948562a0E24C2bd6 0x1EFA0f7A12cEF73e23dE30b7013a252231Ea50f9 USDT0 0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb 0x10982ad645D5A112606534d8567418Cf64c14cB5 0x1EF897622D62335e7FC88Fb0605FbBa28eC0b01d sUSDe 0x211Cc4DD073734dA055fbF44a2b4667d5E5fE5d2 0xf6ba4169e1a1B467D32B8884C4B42de6454B4E4f 0x044388Eed86eF67c126Db5A66428F30797B0ABF5 USDHL 0xb50A96253aBDF803D85efcDce07Ad8becBc52BD5 0x0b936DE4370E4B2bE947C01fe0a6FB5f987c4709 0x94c03Ed369B706Ad6957cF42aFB0b5b02F924099 kHYPE 0xfD739d4e423301CE9385c1fb8850539D657C296D 0xa55DE93CDE5A34c5521B7584022846829CB74366 0x185697d814330430b8D4B3121fAB9c811B59798D **Looping** Name Contract StrategyManagerFactory 0xc3Ed646181Ca80562e96d9e6CF4AF317d22F34b0 LoopingHelper 0x2f5F23ED499ABcDef7116f75e3365C553D2b4913 [PreviousSDK](https://docs.hyperlend.finance/developer-documentation/sdk) [NextCore Pools](https://docs.hyperlend.finance/developer-documentation/core-pools) Last updated 3 months ago --- # Bot Functions | HyperLend ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FzlmCLuapvqu7Aqv0NJKu%252Ftrack%2520wallets.gif%3Falt%3Dmedia%26token%3D086cbe78-173e-47a0-a6ab-c54bc34d5767&width=490&dpr=4&quality=100&sign=be02c0ee&sv=2) **WATCH ADDRESS** Monitor wallet activity and stay updated in real-time. ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FkRmXGfSnFYkMWl0aviFz%252FRemove%2520wallet.gif%3Falt%3Dmedia%26token%3D0ceaa898-3a48-4406-96fe-dbae97fac032&width=490&dpr=4&quality=100&sign=83c41575&sv=2) **REMOVE ADDRESS** Effortlessly delete tracked wallets from your list. ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FLD1FxUKgzJYgBvjExXMR%252Falerts.gif%3Falt%3Dmedia%26token%3Da0bfac4f-bd2c-42ed-a4e0-54fe4191f335&width=490&dpr=4&quality=100&sign=9fdd3f75&sv=2) **LIQUIDATIONS ALERT** Get notified instantly when liquidation risks emerge. ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FWBy6JZ2Y3DdHu863o4x3%252Fhealth%2520factor.gif%3Falt%3Dmedia%26token%3D8ba1b9a0-ed84-49fd-95f8-c635e3c3f229&width=490&dpr=4&quality=100&sign=ae4bbec5&sv=2) **HEALTH FACTOR** Track the stability and safety of your collateral. ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FZ75PWnEyc0JfHQjf4gpQ%252Fborrow%2520rate.gif%3Falt%3Dmedia%26token%3D78bbc108-8f6d-4195-adf6-3b497675efad&width=490&dpr=4&quality=100&sign=d224ee30&sv=2) **BORROW RATE** Keep an eye on interest rates for optimal borrowing. ![Cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FtQCAyZgBOPHRBByuR5ax%252Fadvanced%2520search.gif%3Falt%3Dmedia%26token%3Dd41df127-c4b5-4617-be0c-daa063d4827c&width=490&dpr=4&quality=100&sign=6408b2c&sv=2) **ADVANCED APPROACH** Customize alerts and track insights tailored to your needs. [PreviousGetting Started](https://docs.hyperlend.finance/hyperlend-1/hypertrack/getting-started) [Next↪ Watch Address](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/watch-address) Last updated 7 months ago --- # ↪ oracles | HyperLend #### [](https://docs.hyperlend.finance/developer-documentation/core-pools/oracles#hyperlendoracle) HyperlendOracle Contract for obtaining asset prices and managing price sources. This contract is governed by Hyperlend Governance. * * * **View Methods** `**getAssetPrice**` Copy solidityCopy codefunction getAssetPrice(address asset) public view override returns (uint256) Retrieves the price of the supported `asset` in the `BASE_CURRENCY` of the Hyperlend Market, denominated in wei. **Input Parameters:** Name Type Description asset address The address of the asset **Return Values:** Type Description uint256 The price of the asset in the `BASE_CURRENCY` of Hyperlend Market in wei * * * `**getAssetsPrices**` Copy solidityCopy codefunction getAssetsPrices(address[] calldata assets) external view override returns (uint256[] memory) Retrieves a list of prices for a given list of supported `assets` in the `BASE_CURRENCY` of the Hyperlend Market. All prices are denominated in wei. **Input Parameters:** Name Type Description assets address\[\] The list of asset addresses to query prices for **Return Values:** Type Description uint256\[\] The prices of the specified assets in the `BASE_CURRENCY` of Hyperlend Market in wei * * * `**getSourceOfAsset**` Copy solidityCopy codefunction getSourceOfAsset(address asset) external view override returns (address) Returns the address of the price source for a specific `asset`. **Input Parameters:** Name Type Description asset address The address of the asset **Return Values:** Type Description address The address of the price source * * * `**getFallbackOracle**` Copy solidityCopy codefunction getFallbackOracle() external view returns (address) Retrieves the address of the fallback oracle. **Return Values:** Type Description address The address of the fallback oracle [Previous↪ pool](https://docs.hyperlend.finance/developer-documentation/core-pools/pool) [Next↪ interest rate strategy](https://docs.hyperlend.finance/developer-documentation/core-pools/interest-rate-strategy) Last updated 6 months ago --- # ↪ key-concepts | HyperLend **HyperLend Borrowing and Lending Overview** **Token Pairs** Each market pair in HyperLend operates as an isolated environment for borrowing one ERC-20 token, called the Asset Token, by providing another ERC-20 token as collateral, referred to as the Collateral Token. Isolated market pair contracts are ERC-4626 compatible. Lenders who supply Asset Tokens to a market receive hTokens, which are ERC-20 tokens that represent their share of the deposited assets. These hTokens can be redeemed for the original Asset Tokens, which accrue interest over time, meaning that the value of hTokens increases as interest accumulates. Borrowers, on the other hand, deposit Collateral Tokens into the pair, enabling them to borrow Asset Tokens in return. * * * **Loan-To-Value (LTV) Ratio** Each borrowing position in HyperLend is defined by a Loan-To-Value (LTV) ratio, which compares the value of borrowed assets to the value of the provided collateral. This ratio fluctuates with changes in the exchange rate between Asset and Collateral Tokens or when interest is added to the loan. If the LTV exceeds the maximum allowable level, the position becomes unhealthy. To remedy this, borrowers can either deposit more collateral or repay a portion of their loan to bring the LTV back within a safe range, otherwise they can get liquidated. * * * **Interest Rate Mechanisms** Interest rates for each pair are determined by the specific rate calculator applied during deployment. 1. **Linear Time-Weighted Variable Interest Rate**: Provides immediate rate adjustments based on utilization, with faster changes when utilization crosses the target threshold. Over time, prolonged periods of high or low utilization will alter the rate curve to fit the conditions. * * * * * * **hToken Share Price** When lenders provide Asset Tokens, they receive hTokens based on the current share price. These tokens represent their portion of the total assets in the market, including capitalized interest. As interest accrues, the share price of the hTokens increases, meaning lenders can redeem them for a larger amount of Asset Tokens. * * * [Previous↪ overview](https://docs.hyperlend.finance/developer-documentation/isolated-pools/overview) [Next↪ liquidations](https://docs.hyperlend.finance/developer-documentation/isolated-pools/liquidations) Last updated 10 months ago --- # ↪ overview | HyperLend ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FyXrB6JmK4xR9Pt9nNJNz%252FPair%2520overview.png%3Falt%3Dmedia%26token%3Dfb44b60f-9185-4f0e-a635-907ab2941d5e&width=768&dpr=4&quality=100&sign=f4dfe0db&sv=2) [PreviousIsolated Pools](https://docs.hyperlend.finance/developer-documentation/isolated-pools) [Next↪ key-concepts](https://docs.hyperlend.finance/developer-documentation/isolated-pools/key-concepts) Last updated 1 year ago --- # ↪ Health Factor | HyperLend ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FwpVx6dEPcefYlFzAYnsb%252Fimage.png%3Falt%3Dmedia%26token%3Db3e0f609-1045-42a7-a320-976dee7d666c&width=768&dpr=4&quality=100&sign=f7162118&sv=2) * * * Configure alerts based on the health factor of tracked addresses. Set a threshold, and the bot will notify you if any address’s health factor reaches that level. * * * #### [](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/health-factor#how-to-use-health-factor-alert) How to Use "Health Factor Alert" 1. **Access the Feature**: * Click on the **"Health Factor Alert"** button in the bot interface. A menu will appear with the options to either add a new alert or manage existing ones. 2. **Choose Your Action**: * Select **"Add Health Factor Alert"** to set up a new alert. * Alternatively, choose **"Manage Existing Alerts"** if you wish to adjust or remove current health factor alerts. 3. **Input Details**: * The bot will prompt you to enter the name, wallet address, and the minimum health factor threshold. * An example is provided for clarity: **JohnDoe 0x123...abc 1.5**. Follow this format carefully. * Enter the details like this: `testing 0xB6D69449d5EEb5c7a6490d30cE9a71e34EDB933 1.3`. 4. **Confirmation**: * Once you submit the details, the bot will confirm that the health factor alert has been added. * You’ll receive a message indicating: * The name associated with the alert. * The wallet address being monitored. * The trigger condition, which specifies the health factor threshold. 5. **Alert Functionality**: * The bot will now monitor the specified address, and if the health factor drops below your set threshold (e.g., 1.3), you will be notified immediately. * * * [Previous↪ Liquidations Alert](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/liquidations-alert) [Next↪ Borrow Rate](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/borrow-rate) Last updated 12 months ago --- # ↪ Remove Address | HyperLend ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FzbjDDvDMxQ21l7riRnUG%252Fimage.png%3Falt%3Dmedia%26token%3Df1e8274f-d3c8-495d-8f93-6c0e88bf123b&width=768&dpr=4&quality=100&sign=5f8e2a93&sv=2) * * * Select this option to stop tracking an address. This will remove it from your list, and you’ll no longer receive notifications for it. * * * #### [](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/remove-address#how-to-use-remove-address) How to Use "Remove Address" 1. **Access the Feature**: * Click on the **"Remove Address"** button in the bot interface. This will take you to a list of addresses you are currently monitoring. 2. **Select an Address**: * The bot will display a list of names and addresses you have previously added for monitoring. * Choose the name or address you wish to stop monitoring. If the address you want is listed, simply click on it. If not, you can manually enter the name or address. 3. **Confirmation**: * Once you select or input the address, the bot will confirm that monitoring for the chosen address has been removed. * You’ll see a message indicating that monitoring has been successfully stopped, along with the address that was removed. * * * [Previous↪ Watch Address](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/watch-address) [Next↪ Liquidations Alert](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/liquidations-alert) Last updated 1 year ago --- # ↪ Liquidations Alert | HyperLend ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FToHQgIk0FiTpgLmZiYLd%252Fimage.png%3Falt%3Dmedia%26token%3Da9db8303-73bd-4cce-80ed-1338f39b4287&width=768&dpr=4&quality=100&sign=935f4c55&sv=2) * * * Toggle liquidation alerts on or off for tracked addresses. When enabled, you’ll receive notifications if an address you’re tracking is at risk of liquidation. * * * #### [](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/liquidations-alert#how-to-use-liquidation-alert) How to Use "Liquidation Alert" 1. **Access the Feature**: * Click on the **"Liquidation Alert"** button in the bot interface. You’ll be given the option to add a new address for liquidation monitoring or remove an existing one. 2. **Choose an Option**: * The bot will present you with buttons: * **Add New Address**: Select this to start monitoring a new address. * **Remove Address**: Choose this if you wish to stop monitoring an existing address. * Click **"Add New Address"** to proceed with setting up a new liquidation alert. 3. **Input Details**: * You’ll be prompted to enter the name and wallet address you want to track for liquidation events. * An example format, **JohnDoe 0x123...abc**, is displayed to assist you. * Enter your information in the correct format, like: `testing 0xB6D69449d5EEb5c7a6490d30cE9a71e34EDB933`. 4. **Confirmation**: * Once you input the name and address, the bot will confirm that the address has been added to the liquidation alerts. * You will receive a message indicating that monitoring is active for the address you specified. * * * [Previous↪ Remove Address](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/remove-address) [Next↪ Health Factor](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/health-factor) Last updated 12 months ago --- # ↪ Watch Address | HyperLend ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FUcQ0KiV8Ucimf05BszHD%252Fimage.png%3Falt%3Dmedia%26token%3D810032e9-477e-4d3f-a3e4-cc9714443583&width=768&dpr=4&quality=100&sign=42ed73f1&sv=2) * * * Use this option to add an address for tracking. Once added, you’ll receive alerts for any relevant activities on that address, such as health factor changes and liquidation risks. Here's the revised step-by-step guide for the "Watch Address" feature: * * * #### [](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/watch-address#how-to-use-watch-address) How to Use "Watch Address" 1. **Access the Feature**: * Click on the **"Watch Address"** button in the bot interface. This will initiate the process to monitor a specific wallet address. 2. **Input Details**: * The bot will prompt you to enter the name and address you want to monitor for transactions. * You’ll see a helpful message with an example: **JohnDoe 0x123...abc**. Use this format when entering your information. * Type in the name you wish to assign to the address and then the wallet address itself. For example, input `testing 0xB6D69449d5EEb5c7a6490d30cE9a71e34EDB933`. 3. **Receive Confirmation**: * After you submit the details, the bot will activate transaction monitoring for the address and display a confirmation message. * The message will confirm that monitoring has been activated and will include: * The name you assigned to the address. * The wallet address being monitored. * You’ll now receive alerts for all transactions related to this address, ensuring you are promptly informed of any activity. * * * [PreviousBot Functions](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions) [Next↪ Remove Address](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/remove-address) Last updated 12 months ago --- # ↪ Borrow Rate | HyperLend ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252Fz34bm1Qm4M7HEcBVbBfZ%252Fimage.png%3Falt%3Dmedia%26token%3D5a4296e4-34df-4138-b0db-d970d9f21dcf&width=768&dpr=4&quality=100&sign=f6051b24&sv=2) * * * Set up alerts for specific borrow rate thresholds. You’ll be notified if the borrow rate for a tracked address reaches or exceeds the threshold you set. * * * #### [](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/borrow-rate#how-to-use-borrow-rate-alert) How to Use "Borrow Rate Alert" 1. **Access the Feature**: * Click on the **"Borrow Rate Alert"** button in the bot interface. A menu will appear, allowing you to set up a new alert or manage existing ones. 2. **Choose Your Action**: * Select **"Add Borrow Rate Alert"** if you want to set up a new alert. * Choose **"Manage Existing Alert"** if you need to edit or remove an existing one. 3. **Input Details**: * The bot will prompt you to enter the name, asset address, and the maximum borrow rate (APY) you want to monitor. * An example format will be shown for clarity: **JohnDoe 0x123...abc 15**. Here, the number "15" represents the maximum Annual Percentage Yield (APY) in percentage terms. * Enter your details in the correct format, ensuring that the APY threshold reflects your risk tolerance or interest in monitoring specific borrowing conditions. 4. **Confirmation**: * After you input the details, the bot will confirm that the borrow rate alert has been added. * You will receive notifications if the APY for the specified asset exceeds the set threshold, helping you manage your exposure to changing borrowing costs. 5. **Alert Functionality**: * Once configured, the bot will keep an eye on the borrow rate and notify you when it reaches or surpasses your specified limit (e.g., 15% APY), keeping you informed about important interest rate fluctuations. * * * [Previous↪ Health Factor](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/health-factor) [Next↪ Advanced Approach](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/advanced-approach) Last updated 1 year ago --- # ↪ flash-loans | HyperLend [](https://docs.hyperlend.finance/developer-documentation/core-pools/flash-loans#flash-loans) Flash Loans -------------------------------------------------------------------------------------------------------------- Flash Loans are unique transactions that allow users to borrow assets without upfront collateral, provided that the borrowed amount plus a fee is returned within the same transaction (also known as "one-block borrows"). Since there is no real-world equivalent, understanding how blockchain state transitions occur within blocks is essential. _**Note:**_ _Flash Loans are an advanced feature intended for developers. A solid grasp of the Ethereum Virtual Machine (EVM), programming, and smart contract development is necessary to utilize this functionality._ * * * ### [](https://docs.hyperlend.finance/developer-documentation/core-pools/flash-loans#overview) Overview Flash Loans enable users to access the pool's liquidity for a single transaction, on the condition that the borrowed amount plus a fee is returned or a debt position is opened (if permitted) by the end of the transaction. This feature is applicable only to reserves where borrowing is enabled. HyperLend offers two methods for flash loans: 1. `**flashLoan()**` Allows borrowers to access liquidity from multiple reserves within a single flash loan transaction. Borrowers also have the option to open a variable-rate borrowing position backed by supplied collateral or via credit delegation. _Note:_ The flash loan fee is waived for approved flash borrowers managed by the `ACLManager`. 2. `**flashLoanSimple()**` Enables borrowers to access liquidity from a single reserve in a transaction. In this case, the flash loan fee is not waived, and borrowers cannot open any debt positions at the end of the transaction. This method is more gas-efficient for those seeking a straightforward flash loan with a single asset. * * * ### [](https://docs.hyperlend.finance/developer-documentation/core-pools/flash-loans#execution-flow) Execution Flow For developers, here's a conceptual framework to assist in building your solution: 1. **Initiate the Flash Loan** Your contract calls the `Pool` contract, requesting a flash loan of specific amounts of reserves using either `flashLoanSimple()` or `flashLoan()`. 2. **Funds Transfer and Callback** After performing necessary checks, the `Pool` transfers the requested amounts to your contract and then calls `executeOperation()` on your contract. 3. **Execute Custom Logic** With the flash-loaned funds now in your contract, you can perform any arbitrary operations within your code. 4. **Repayment or Debt Opening** * **For** `**flashLoanSimple()**`**:** After your operations, you must approve the `Pool` to pull the flash-loaned amount plus the fee. * **For** `**flashLoan()**`**:** Depending on the `interestRateMode` for each asset, you must either approve the `Pool` for the amount plus fee or ensure sufficient collateral or credit delegation is available to open a debt position. 5. **Transaction Completion** If the owed amount is not available due to insufficient balance, lack of approval, or inadequate collateral for debt, the transaction will revert. **All these steps occur within a single transaction, meaning they happen within one Ethereum block.** * * * ### [](https://docs.hyperlend.finance/developer-documentation/core-pools/flash-loans#applications-of-flash-loans) Applications of Flash Loans Flash Loans have various practical applications, including: * **Arbitrage Opportunities** Execute arbitrage between assets without needing the principal amount upfront. * **Liquidation of Positions** Liquidate borrowing positions without repaying the debt upfront by using the discounted collateral obtained to repay the flash loan amount plus the fee. * * * ### [](https://docs.hyperlend.finance/developer-documentation/core-pools/flash-loans#flash-loan-fee) Flash Loan Fee The flash loan fee is initially set to **0.04%** at deployment and can be adjusted via a governance vote. Use `FLASHLOAN_PREMIUM_TOTAL` to retrieve the current value. The fee is shared between liquidity providers (LPs) and the protocol treasury: * **Fee to LPs:** `FLASHLOAN_PREMIUM_TOTAL` minus `FLASHLOAN_PREMIUM_TO_PROTOCOL` * **Fee to Protocol Treasury:** `FLASHLOAN_PREMIUM_TO_PROTOCOL` _Initially,_ `_FLASHLOAN_PREMIUM_TO_PROTOCOL_` _is set to 0._ * * * ### [](https://docs.hyperlend.finance/developer-documentation/core-pools/flash-loans#step-by-step-guide) Step-by-Step Guide #### [](https://docs.hyperlend.finance/developer-documentation/core-pools/flash-loans#id-1.-setting-up) 1\. Setting Up * **Implement the Receiver Interface** Your contract that will receive the flash-loaned funds must implement the `IFlashLoanSimpleReceiver` or `IFlashLoanReceiver` interface by defining the appropriate `executeOperation()` function. * **Grant Allowance** Since the owed amounts will be pulled from your contract, you must grant the `Pool` contract an allowance to transfer the funds needed to repay the flash loan amount plus premiums. #### [](https://docs.hyperlend.finance/developer-documentation/core-pools/flash-loans#id-2.-invoking-flashloan-or-flashloansimple) 2\. Invoking `flashLoan()` or `flashLoanSimple()` There are three ways to call the flash loan methods: * **From an Externally Owned Account (EOA):** Send a transaction to the `Pool` contract calling `flashLoan()` or `flashLoanSimple()`. Refer to the `Pool`documentation for parameter details, ensuring you use your contract address from step 1 as the `receiverAddress`. * **From a Different Contract:** Similar to the EOA method but initiated from another contract. Ensure the `receiverAddress` is your contract address from step 1. * **From the Same Contract:** If you're using the same contract as in step 1, use `address(this)` for the `receiverAddress` parameter. **Security Tip:** Never store funds permanently on your flash loan receiver contract, as they could be vulnerable to 'griefing' attacks where an attacker exploits the stored funds. #### [](https://docs.hyperlend.finance/developer-documentation/core-pools/flash-loans#completing-the-flash-loan) Completing the Flash Loan * **Repayment:** After executing your custom logic in `executeOperation()`, you need to repay the flash-loaned amounts if you used `flashLoanSimple()` or set `interestRateModes = 0` in `flashLoan()`. * **Calculating the Amount Owed:** Ensure your contract holds the required amount plus the premium. This can be calculated by summing the relevant entries in the `amounts` and `premiums` arrays provided in `executeOperation()`. * **Automatic Pull of Funds:** You don't need to manually transfer the owed amount back to the `Pool`; the funds will be automatically pulled at the end of your operation. #### [](https://docs.hyperlend.finance/developer-documentation/core-pools/flash-loans#incurring-a-debt-deferred-repayment) Incurring a Debt (Deferred Repayment) If you used `mode=1` or `mode=2` for any assets in the `modes` parameter, the `onBehalfOf` address will incur the debt, provided that it has authorized the `msg.sender` to incur debts on its behalf. This allows for a mix of assets—some can be repaid immediately, while others result in an open debt position. * * * [Previous↪ interest rate strategy](https://docs.hyperlend.finance/developer-documentation/core-pools/interest-rate-strategy) [NextIsolated Pools](https://docs.hyperlend.finance/developer-documentation/isolated-pools) Last updated 6 months ago --- # API | HyperLend Base URL: [https://api.hyperlend.finance](https://api.hyperlend.finance/) Available chains: `hyperEvm` **NOTE: Addresses must be checksummed, since API is case-sensitive.** * * * `GET /data/interestRateHistory` Query interest rate hourly history. * required params: `chain` and `token` (contract address) * example: `/data/interestRateHistory?chain=hyperEvm&token=0x5555555555555555555555555555555555555555` * `currentLiquidityRate` and `currentVariableBorrowRate` are expressed in Ray (unit of measurement with 27 decimals), * response format: Copy [\ {\ "_id": "66d90e9aa6e4d9c524ef729a",\ "timestamp": 1725501082135,\ "0x5555555555555555555555555555555555555555": {\ "currentLiquidityRate": "7901245102880645706451431",\ "currentVariableBorrowRate": "29629649382709465022770918"\ }\ },\ {\ "_id": "66d91caaa6e4d9c524ef72b2",\ "timestamp": 1725504682074,\ "0x5555555555555555555555555555555555555555": {\ "currentLiquidityRate": "6971805824458391305412",\ "currentVariableBorrowRate": "880139245577900154208182"\ }\ },\ ...\ ] * * * `GET /data/user/valueChange` Query the user's 24-hour balance change. * required params: `address` and `chain` * example: `/data/user/valueChange?chain=hyperEvm&address=0x0E61A8fb14f6AC999646212D30b2192cd02080Dd` * response format: Copy { "prevPos": { "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": { "tokenValue": 36.492697000000135, "usdValue": 36.4105784364399, "name": "tether" }, "0xaf88d065e77c8cC2239327C5EDb3A432268e5831": { "tokenValue": -0.505677, "usdValue": -0.5047376206695895, "name": "usd-coin" }, "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f": { "tokenValue": 0.00033692, "usdValue": 19.147241624351143, "name": "bitcoin" } }, "newPositions": { "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": { "tokenValue": 36.492697000000135, "usdValue": 36.44846785123614, "name": "tether" }, "0xaf88d065e77c8cC2239327C5EDb3A432268e5831": { "tokenValue": -0.505677, "usdValue": -0.505194584142, "name": "usd-coin" }, "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f": { "tokenValue": 0.00033692, "usdValue": 19.70038624, "name": "bitcoin" } }, "tokenDiff": { "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": 0, "0xaf88d065e77c8cC2239327C5EDb3A432268e5831": 0, "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f": 0 }, "usdDiff": { "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": 0.03788941479623986, "0xaf88d065e77c8cC2239327C5EDb3A432268e5831": -0.00045696347241053203, "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f": 0.5531446156488578 }, "tokenPercentageDiff": { "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": 0, "0xaf88d065e77c8cC2239327C5EDb3A432268e5831": 0, "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f": 0 }, "usdPercentageDiff": { "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9": 0.10400744101600679, "0xaf88d065e77c8cC2239327C5EDb3A432268e5831": 0.09049389062620931, "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f": 2.847765210171073 }, "totalBalanceChange": 0.5905770669726849, "totalBalanceChangePercentage": 1.0670179746650437 } * * * `GET /data/user/historicalNetWorth` Query the user's hourly USD net worth. * required params: `address` and `chain` * example: `/data/user/historicalNetWorth?chain=hyperEvm&address=0x0E61A8fb14f6AC999646212D30b2192cd02080Dd` * response format: Copy [\ {\ "timestamp": 1725886951424,\ "usdValue": 605.9349161471797\ },\ {\ "timestamp": 1725890548453,\ "usdValue": 604.8168613233992\ },\ {\ "timestamp": 1725894410263,\ "usdValue": 604.4794076893005\ },\ ...\ ] * * * `GET /data/markets` Query current reserves state * required params: `chain` * response format: Copy { "reserves": [\ {\ "chain": "arbitrum",\ "underlyingAsset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",\ "name": "USD Coin",\ "symbol": "USDC",\ "decimals": "6",\ "baseLTVasCollateral": "8000",\ "reserveLiquidationThreshold": "8500",\ "reserveLiquidationBonus": "11000",\ "reserveFactor": "2000",\ "usageAsCollateralEnabled": true,\ "borrowingEnabled": true,\ "stableBorrowRateEnabled": false,\ "isActive": true,\ "isFrozen": false,\ "liquidityIndex": "1000000000000000000000000000",\ "variableBorrowIndex": "1000000000000000000000000000",\ "liquidityRate": "400000000000000000000000",\ "variableBorrowRate": "5000000000000000000000000",\ "stableBorrowRate": "60625000000000000000000000",\ "lastUpdateTimestamp": "1722973930",\ "aTokenAddress": "0x4ed318353e3aB859F614aB41BFC33f98Cca8B3aE",\ "stableDebtTokenAddress": "0x6a970b349D8B60b57a335C0bdd16b8EEbD19Fa8F",\ "variableDebtTokenAddress": "0x82bf3C188d6397f2b9dE6D9F3834381C9C205585",\ "interestRateStrategyAddress": "0xa18DE0E9fd605be95026130FDFb592431Fc7a9B7",\ "availableLiquidity": "900000",\ "totalPrincipalStableDebt": "0",\ "averageStableRate": "0",\ "stableDebtLastUpdateTimestamp": "0",\ "totalScaledVariableDebt": "100000",\ "priceInMarketReferenceCurrency": "99996000",\ "priceOracle": "0x50834F3163758fcC1Df9973b6e91f0F0F0434aD3",\ "variableRateSlope1": "40000000000000000000000000",\ "variableRateSlope2": "750000000000000000000000000",\ "stableRateSlope1": "5000000000000000000000000",\ "stableRateSlope2": "750000000000000000000000000",\ "baseStableBorrowRate": "60000000000000000000000000",\ "baseVariableBorrowRate": "0",\ "optimalUsageRatio": "800000000000000000000000000",\ "isPaused": false,\ "isSiloedBorrowing": false,\ "accruedToTreasury": "0",\ "unbacked": "0",\ "isolationModeTotalDebt": "0",\ "flashLoanEnabled": true,\ "debtCeiling": "0",\ "debtCeilingDecimals": "2",\ "eModeCategoryId": "0",\ "borrowCap": "0",\ "supplyCap": "10000",\ "eModeLtv": "0",\ "eModeLiquidationThreshold": "0",\ "eModeLiquidationBonus": "0",\ "eModePriceSource": "0x0000000000000000000000000000000000000000",\ "eModeLabel": "",\ "borrowableInIsolation": false\ }\ ] } * * * `GET /data/markets/rates` Returns borrow and supply APYs for all assets and isolated markets. * required params: `chain` Returns APY and APR as percentage. For isolated markets, the key is the pair address, and data includes underlying and collateral asset addresses. Copy { "0xb7379d395F3c83952ad794896205f7E33E358735": { "supplyAPR": 0, "supplyAPY": 0, "borrowAPR": 0, "borrowAPY": 0 }, "0x068f321Fa8Fb9f0D135f290Ef6a3e2813e1c8A29": { "supplyAPR": 0.46472160368365606, "supplyAPY": 0.4658031092092507, "borrowAPR": 2.278023538318724, "borrowAPY": 2.3041686476535927 }, "0x06Fd9D03b3d0F18E4919919b72D30c582f0a97E5": { "underlying": "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb", "collateral": "0x1359b05241cA5076c9F59605214f4F84114c0dE8", "supplyAPR": 14.7000269211344, "supplyAPY": 14.700027160359502, "borrowAPR": 22.5325064089296, "borrowAPY": 22.5325067756188 } } * * * `GET /data/user/transactionHistory` Returns all transactions the user was involved in. * required params: `chain` and `address` * optional params: `limit` (default: 100) and `skip` (default: 0) * example: `/data/user/transactionHistory?chain=hyperEvm&address=0x5748ae796AE46A4F1348a1693de4b50560485562&limit=1000&skip=0` Copy { data: [\ {\ "_id": "67eb00824c256fa8358a4d55",\ "uniqueId": "0x4183db849780dcdf8249ee5b419f0e28c752e155e3c6ee2b26adf4e26e026690_8",\ "chain": "hyperEvm",\ "contractId": "pool",\ "blockNumber": 1861952,\ "timestamp": 1743454326,\ "txHash": "0x4183db849780dcdf8249ee5b419f0e28c752e155e3c6ee2b26adf4e26e026690",\ "logIndex": 8,\ "event": "Supply",\ "data": {\ "reserve":"0x94e8396e0869c9F2200760aF0621aFd240E1CF38",\ "user":"0x5748ae796AE46A4F1348a1693de4b50560485562",\ "onBehalfOf":"0x5748ae796AE46A4F1348a1693de4b50560485562",\ "amount":"399999999999999966445568",\ "referralCode":"0"\ }\ }\ ] } * * * `GET /data/transactions` Query events data. * optional params: * `chain`, `contractId`, `blockNumber`, `txHash`, `logIndex`, `event` * on data field: `see available event parameters below` * example: `/data/transaction?chain=hyperEvm&event=Borrow&reserve=0x5555555555555555555555555555555555555555` * response format: Copy { uniqueId: "0x4839ef5e7ca3e0cf8eea625a2a640277980fbc0406542fcd4604fba15a325504_6" chain: "arbitrum" contractId: "pool" blockNumber 240136270 txHash: "0x4839ef5e7ca3e0cf8eea625a2a640277980fbc0406542fcd4604fba15a325504" logIndex: 6 event: "Borrow" data: { ...eventParameters } } All indexed events: Copy [\ {\ "name": "BackUnbacked",\ "parameters": [\ ["reserve", "address"],\ ["backer", "address"],\ ["amount", "uint256"],\ ["fee", "uint256"]\ ]\ },\ {\ "name": "Borrow",\ "parameters": [\ ["reserve", "address"],\ ["user", "address"],\ ["onBehalfOf", "address"],\ ["amount", "uint256"],\ ["interestRateMode", "uint8"],\ ["borrowRate", "uint256"],\ ["referralCode", "uint16"]\ ]\ },\ {\ "name": "FlashLoan",\ "parameters": [\ ["target", "address"],\ ["initiator", "address"],\ ["asset", "address"],\ ["amount", "uint256"],\ ["interestRateMode", "uint8"],\ ["premium", "uint256"],\ ["referralCode", "uint16"]\ ]\ },\ {\ "name": "IsolationModeTotalDebtUpdated",\ "parameters": [\ ["asset", "address"],\ ["totalDebt", "uint256"]\ ]\ },\ {\ "name": "LiquidationCall",\ "parameters": [\ ["collateralAsset", "address"],\ ["debtAsset", "address"],\ ["user", "address"],\ ["debtToCover", "uint256"],\ ["liquidatedCollateralAmount", "uint256"],\ ["liquidator", "address"],\ ["receiveAToken", "bool"]\ ]\ },\ {\ "name": "MintUnbacked",\ "parameters": [\ ["reserve", "address"],\ ["user", "address"],\ ["onBehalfOf", "address"],\ ["amount", "uint256"],\ ["referralCode", "uint16"]\ ]\ },\ {\ "name": "MintedToTreasury",\ "parameters": [\ ["reserve", "address"],\ ["amountMinted", "uint256"]\ ]\ },\ {\ "name": "RebalanceStableBorrowRate",\ "parameters": [\ ["reserve", "address"],\ ["user", "address"]\ ]\ },\ {\ "name": "Repay",\ "parameters": [\ ["reserve", "address"],\ ["user", "address"],\ ["repayer", "address"],\ ["amount", "uint256"],\ ["useATokens", "bool"]\ ]\ },\ {\ "name": "ReserveDataUpdated",\ "parameters": [\ ["reserve", "address"],\ ["liquidityRate", "uint256"],\ ["stableBorrowRate", "uint256"],\ ["variableBorrowRate", "uint256"],\ ["liquidityIndex", "uint256"],\ ["variableBorrowIndex", "uint256"]\ ]\ },\ {\ "name": "ReserveUsedAsCollateralDisabled",\ "parameters": [\ ["reserve", "address"],\ ["user", "address"]\ ]\ },\ {\ "name": "ReserveUsedAsCollateralEnabled",\ "parameters": [\ ["reserve", "address"],\ ["user", "address"]\ ]\ },\ {\ "name": "Supply",\ "parameters": [\ ["reserve", "address"],\ ["user", "address"],\ ["onBehalfOf", "address"],\ ["amount", "uint256"],\ ["referralCode", "uint16"]\ ]\ },\ {\ "name": "SwapBorrowRateMode",\ "parameters": [\ ["reserve", "address"],\ ["user", "address"],\ ["interestRateMode", "uint8"]\ ]\ },\ {\ "name": "UserEModeSet",\ "parameters": [\ ["user", "address"],\ ["categoryId", "uint8"]\ ]\ },\ {\ "name": "Withdraw",\ "parameters": [\ ["reserve", "address"],\ ["user", "address"],\ ["to", "address"],\ ["amount", "uint256"]\ ]\ }\ ] [PreviousFAQ](https://docs.hyperlend.finance/hyperlend-1/hypertrack/faq) [NextData & Indexers](https://docs.hyperlend.finance/developer-documentation/data-and-indexers) Last updated 2 months ago --- # ↪ Advanced Approach | HyperLend ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252F18wJfBiXmzHRcJttKuH3%252Fimage.png%3Falt%3Dmedia%26token%3Db3f7396d-04e0-4342-a259-8054a5963a8a&width=768&dpr=4&quality=100&sign=716f3d3f&sv=2) * * * #### [](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/advanced-approach#advanced-approach) Advanced Approach For those who prefer a more hands-on and customizable tracking experience, HyperTrack offers an "Advanced Search" functionality. This feature allows users to manually input commands for tailored monitoring and alerts. Here's how to leverage these commands: * **/add** `**name**` `**address**`: Begin tracking transactions for a specific address. Ideal for monitoring high-priority wallets or contracts. * **/remove** `**name**` **or** `**address**`: Stop receiving alerts for a given name or address. Use this to declutter your tracking list. * **/add\_liquidations** `**name**` `**address**`: Enable alerts for liquidation events at the specified address. A crucial tool for risk management. * **/remove\_liquidations** `**name**` **or** `**address**`: Disable liquidation alerts when they are no longer needed. * **/hf\_add** `**name**` `**address**` `**min-health-factor**`: Monitor and get notified if the health factor of an address drops below a specified threshold. * **/hf\_remove** `**name**` **or** `**address**`: Stop health factor monitoring for a particular address. * **/rates\_add** `**name**` `**asset-address**` `**max-borrow-rate-%**`: Set alerts for when an asset's borrow rate hits a predetermined limit. Useful for optimizing borrowing strategies. * **/rates\_remove** `**name**` **or** `**asset-address**`: Remove alerts for borrow rate thresholds. * **/list**: Display all your active alert subscriptions for easy management. Feel free to experiment and fine-tune your setup to get the most out of HyperTrack's monitoring capabilities! * * * [Previous↪ Borrow Rate](https://docs.hyperlend.finance/hyperlend-1/hypertrack/bot-functions/borrow-rate) [NextFAQ](https://docs.hyperlend.finance/hyperlend-1/hypertrack/faq) Last updated 7 months ago --- # Isolated Pools | HyperLend [↪ overview](https://docs.hyperlend.finance/developer-documentation/isolated-pools/overview) [↪ key-concepts](https://docs.hyperlend.finance/developer-documentation/isolated-pools/key-concepts) [↪ liquidations](https://docs.hyperlend.finance/developer-documentation/isolated-pools/liquidations) [↪ interest rates](https://docs.hyperlend.finance/developer-documentation/isolated-pools/interest-rates) [Previous↪ flash-loans](https://docs.hyperlend.finance/developer-documentation/core-pools/flash-loans) [Next↪ overview](https://docs.hyperlend.finance/developer-documentation/isolated-pools/overview) Last updated 1 year ago --- # ↪ liquidations | HyperLend **Liquidations** If a borrower’s LTV rises above the maximum limit, any user can liquidate the position by repaying the loan. In return, the liquidator receives collateral, along with a liquidation fee. The liquidation fee is different if the liquidator repays the entire position (`cleanLiquidationFee`) or only a portion (`dirtyLiquidationFee`, 90% of the clean fee). [Previous↪ key-concepts](https://docs.hyperlend.finance/developer-documentation/isolated-pools/key-concepts) [Next↪ interest rates](https://docs.hyperlend.finance/developer-documentation/isolated-pools/interest-rates) Last updated 10 months ago --- # ↪ interest rates | HyperLend **Interest Rate Models in Isolated Pools** In HyperLend, each market pair features an interest rate model that adjusts according to the utilization of deposited assets. Utilization reflects the percentage of deposited tokens currently lent out to borrowers. * * * #### [](https://docs.hyperlend.finance/developer-documentation/isolated-pools/interest-rates#linear-rate) Linear Time-Weighted Variable Interest Rate When a new interest rate contract is deployed, the following settings are determined: * vertex utilization: The utilization at which the interest rate slope increases * vertex rate delta: Determines how far the vertex rate sits between the base rate and the max rate. * minimum target utilization: The minimum utilization wherein no adjustment to full utilization and vertex rates occurs * maximum target utilization: The maximum utilization wherein no adjustment to full utilization and vertex rates occurs * zero utilization interest rate: The interest rate when utilization is 0% * minimum full utilization interest rate: The minimum interest rate at 100% utilization * maximum full utilization interest rate: The maximum interest rate at 100% utilization * interest rate half-life: The half-life for interest rate adjustments Linear Time-Weighted Variable Interest Rate uses a linear formula to calculate the current interest rate, but changes vertex and max rate based on time. If utilization is low, the vertex and max rate will slowly decrease over time (if utilization is 0%, it will decrease by 50% per half-life). However, if utilization is high, it will keep increasing until it hits the maximum full utilization interest rate (if utilization is 100%, it will increase by 100% per half-life). ![](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FXCfKakvOQgOxC3wofv7i%252Fslika.png%3Falt%3Dmedia%26token%3Dd26c018b-eaa7-4719-b5cc-43a79edc15a8&width=768&dpr=4&quality=100&sign=2e865d53&sv=2) [Previous↪ liquidations](https://docs.hyperlend.finance/developer-documentation/isolated-pools/liquidations) Last updated 10 months ago --- # ↪ interest rate strategy | HyperLend **Implements the computation of interest rates based on the current state of the reserve. This interest rate model utilizes two distinct slopes: one applicable before reaching the** `**OPTIMAL_USAGE_RATIO**`**, and another that applies from that point up to full utilization (100%).** Due to caching of the `PoolAddressesProvider`, an instance of this contract cannot be shared across different Hyperlend markets. The source code is available on GitHub. * * * #### [](https://docs.hyperlend.finance/developer-documentation/core-pools/interest-rate-strategy#view-methods) View Methods `**getVariableRateSlope1**` Copy function getVariableRateSlope1(address reserve) external view returns (uint256) Provides the variable rate slope for the specified reserve when the usage ratio is below the optimal threshold. This rate is relevant when the usage ratio ranges from 0 up to `OPTIMAL_USAGE_RATIO`. **Input Parameters:** Name Type Description reserve address The address of the reserve asset **Return Values:** Type Description uint256 The variable rate slope value * * * `**getVariableRateSlope2**` Copy function getVariableRateSlope2(address reserve) external view returns (uint256) Provides the variable rate slope for the specified reserve when the usage ratio exceeds the optimal threshold. This rate applies when the usage ratio is greater than `OPTIMAL_USAGE_RATIO`. **Input Parameters:** Name Type Description reserve address The address of the reserve asset **Return Values:** Type Description uint256 The variable rate slope value * * * `**getBaseVariableBorrowRate**` Copy function getBaseVariableBorrowRate(address reserve) external view override returns (uint256) Returns the base variable borrow rate for the given reserve. **Input Parameters:** Name Type Description reserve address The address of the reserve asset **Return Values:** Type Description uint256 The base variable borrow rate, in ray * * * `**getMaxVariableBorrowRate**` Copy function getMaxVariableBorrowRate(address reserve) external view override returns (uint256) Returns the maximum variable borrow rate for the specified reserve. **Input Parameters:** Name Type Description reserve address The address of the reserve asset **Return Values:** Type Description uint256 The maximum variable borrow rate, in ray * * * `**calculateInterestRates**` Copy function calculateInterestRates( DataTypes.CalculateInterestRatesParams memory params ) external view override returns (uint256, uint256) Calculates the interest rates based on the reserve's current state and configurations. This function returns two values: the liquidity rate and the variable borrow rate. **Input Parameters:** Name Type Description params DataTypes.CalculateInterestRatesParams Parameters required to compute interest rates The `DataTypes.CalculateInterestRatesParams` struct includes the following fields: Name Type Description unbacked uint256 The amount of unbacked tokens liquidityAdded uint256 Liquidity added during the operation liquidityTaken uint256 Liquidity withdrawn during the operation totalDebt uint256 Total amount borrowed from the reserve reserveFactor uint256 Portion of interest allocated to the market's treasury reserve address The address of the reserve usingVirtualBalance bool Indicates if a virtual balance is being utilized virtualUnderlyingBalance uint256 Virtual balance of the underlying asset for mintable assets **Return Values:** Name Type Description liquidityRate uint256 The liquidity rate, expressed in ray variableBorrowRate uint256 The variable borrow rate, expressed in ray * * * [Previous↪ oracles](https://docs.hyperlend.finance/developer-documentation/core-pools/oracles) [Next↪ flash-loans](https://docs.hyperlend.finance/developer-documentation/core-pools/flash-loans) Last updated 1 year ago --- # ↪ pool | HyperLend ![Page cover](https://docs.hyperlend.finance/~gitbook/image?url=https%3A%2F%2F1293603927-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FtiRDTXWJIPq3DOCs3Vbb%252Fuploads%252FY8yKLKb1Z87PCsUJFNdz%252Fhyperlend-5.png%3Falt%3Dmedia%26token%3D6d5d0fa7-b557-4540-b14a-747d1659aa50&width=1248&dpr=4&quality=100&sign=a841c331&sv=2) * * * #### [](https://docs.hyperlend.finance/developer-documentation/core-pools/pool#pool) Pool This contract serves as the primary interface for users. Most interactions with the Hyperlend Protocol occur via the `Pool` contract. Users can: * Supply assets * Withdraw assets * Borrow funds * Repay loans * Enable or disable supplied assets as collateral * Liquidate positions * Execute flash loans The source code is available on GitHub. * * * #### [](https://docs.hyperlend.finance/developer-documentation/core-pools/pool#write-methods) Write Methods * * * `**supply**` Copy function supply( address asset, uint256 amount, address onBehalfOf, uint16 referralCode ) public virtual override Deposits a specified `amount` of an `asset` into the protocol, minting equivalent hTokens and transferring them to the `onBehalfOf` address. Before supplying, the `Pool` contract must have the necessary allowance to spend funds on behalf of `msg.sender` for at least the specified `amount` of the asset. The referral program is currently inactive; you can pass `0` as `referralCode`. This feature may be activated in the future. **Parameters:** Name Type Description asset address The address of the underlying asset being supplied to the pool amount uint256 The amount of the asset to supply onBehalfOf address The address that will receive the corresponding hTokens. This is the only address that can withdraw the asset from the pool. referralCode uint16 The referral program is currently inactive; you can pass `0`. * * * `**supplyWithPermit**` Copy function supplyWithPermit( address asset, uint256 amount, address onBehalfOf, uint16 referralCode, uint256 deadline, uint8 permitV, bytes32 permitR, bytes32 permitS ) public virtual override Allows supplying an asset using a permit signature for transfer approval, eliminating the need for a separate approval transaction before supplying the asset to the pool. See: [EIP-2612](https://eips.ethereum.org/EIPS/eip-2612) . The permit signature must be signed by `msg.sender` with the spender set to the `Pool` address. The referral program is currently inactive; you can pass `0` as `referralCode`. This feature may be activated in the future through a Hyperlend governance proposal. **Parameters:** Name Type Description asset address The address of the underlying asset being supplied. The same asset used in the permit signature (`v`, `r`, `s`) amount uint256 The amount of the asset to supply and approve via permit. The same amount used in the permit signature (`v`, `r`, `s`) onBehalfOf address The address that will receive the hTokens. referralCode uint16 The referral program is currently inactive; you can pass `0`. deadline uint256 The UNIX timestamp until which the permit signature is valid permitV uint8 The `v` parameter of the ERC712 permit signature permitR bytes32 The `r` parameter of the ERC712 permit signature permitS bytes32 The `s` parameter of the ERC712 permit signature * * * `**withdraw**` Copy function withdraw(address asset, uint256 amount, address to) public virtual override returns (uint256) Withdraws a specified `amount` of the underlying `asset` from the reserve, burning the equivalent hTokens owned. For example, if a user has 100 hUSDC and calls `withdraw()`, they will receive 100 USDC, and the 100 hUSDC will be burned. If the user has any existing debt backed by the underlying token, the maximum `amount` available to withdraw is limited to ensure the user's health factor remains above 1 after the withdrawal. When withdrawing to another address, `msg.sender` must possess the hTokens that will be burned by the `Pool`. **Parameters:** Name Type Description asset address The address of the underlying asset to withdraw, not the hToken amount uint256 The amount of the underlying asset to withdraw, expressed in wei units. Use `type(uint256).max` to withdraw the entire hToken balance to address The address that will receive the underlying `asset`. This will be the same as `msg.sender` if the user wants to receive the tokens themselves, or another address if the beneficiary is different **Returns:** Type Description uint256 The final amount withdrawn * * * `**borrow**` Copy function borrow( address asset, uint256 amount, uint256 interestRateMode, uint16 referralCode, address onBehalfOf ) public virtual override Allows users to borrow a specific `amount` of the reserve's underlying `asset`, provided the borrower has supplied enough collateral or has been granted sufficient allowance by a credit delegator on the corresponding debt token (VariableDebtToken). For example, if a user borrows 100 USDC and passes their own address as `onBehalfOf`, they will receive 100 USDC and 100 variable debt tokens. **Note:** If `onBehalfOf` is not the same as `msg.sender`, then `onBehalfOf` must have supplied enough collateral via `supply()` and have delegated credit to `msg.sender` via `approveDelegation()` on the VariableDebtToken contract. The referral program is currently inactive; you can pass `0` as `referralCode`. **Parameters:** Name Type Description asset address The address of the underlying asset to borrow amount uint256 The amount to borrow, expressed in wei units interestRateMode uint256 Should always be passed a value of `2` (variable rate mode) referralCode uint16 The referral program is currently inactive; you can pass `0`. onBehalfOf address The address of the borrower. If they want to borrow against their own collateral, this should be their own address, or the address of the credit delegator if the caller has been granted credit delegation allowance * * * `**repay**` Copy function repay( address asset, uint256 amount, uint256 interestRateMode, address onBehalfOf ) public virtual override returns (uint256) Repays a borrowed `amount` on a specific reserve, burning the equivalent debt tokens owned. For example, if a user repays 100 USDC, the 100 variable debt tokens owned by the `onBehalfOf` address will be burned. When repaying, the `Pool` contract must have allowance to spend funds on behalf of `msg.sender` for at least the `amount` for the asset being repaid. This can be done via the standard ERC20 `approve()` method on the underlying token contract. You cannot call `repay()` multiple times in the same block. **Parameters:** Name Type Description asset address The address of the borrowed underlying asset amount uint256 The amount to repay, expressed in wei units. Use `type(uint256).max` to repay the whole debt, **only** when the repayment is not executed on behalf of a third party. When repaying on behalf of another user, it's recommended to send an amount slightly higher than the current borrowed amount interestRateMode uint256 Only available option is `2` (variable rate mode) onBehalfOf address The address of the user whose debt will be reduced or removed. This should be the address of the user calling the function if they want to reduce or remove their own debt, or the address of another borrower whose debt should be removed **Returns:** Type Description uint256 The final amount repaid * * * `**repayWithPermit**` Copy function repayWithPermit( address asset, uint256 amount, uint256 interestRateMode, address onBehalfOf, uint256 deadline, uint8 permitV, bytes32 permitR, bytes32 permitS ) public virtual override returns (uint256) Allows repaying a borrowed amount using a permit signature for transfer approval, removing the need for a separate approval transaction before repaying the asset to the pool. See: [EIP-2612](https://eips.ethereum.org/EIPS/eip-2612) . The permit signature must be signed by `msg.sender` with the spender set to the `Pool` address. **Parameters:** Name Type Description asset address The address of the borrowed underlying asset. The same asset used in the permit signature (`v`, `r`, `s`) amount uint256 The amount to repay, expressed in wei units. Use `type(uint256).max` to repay the whole debt without leaving hToken dust. The same amount used in the permit signature (`v`, `r`, `s`) interestRateMode uint256 Only available option is `2` (variable rate mode) onBehalfOf address The address of the user whose debt will be reduced or removed. This should be the address of the user calling the function if they want to reduce or remove their own debt, or the address of another borrower whose debt should be removed deadline uint256 The UNIX timestamp until which the permit signature is valid permitV uint8 The `v` parameter of the ERC712 permit signature permitR bytes32 The `r` parameter of the ERC712 permit signature permitS bytes32 The `s` parameter of the ERC712 permit signature **Returns:** Type Description uint256 The final amount repaid * * * `**repayWithATokens**` Copy function repayWithATokens( address asset, uint256 amount, uint256 interestRateMode ) public virtual override returns (uint256) Allows a user to repay a borrowed `amount` on a specific reserve using the reserve's hTokens, burning the equivalent debt tokens. For example, a user repays 100 USDC using 100 hUSDC, burning 100 variable debt tokens. Passing `type(uint256).max` as the amount will clean up any residual hToken dust balance if the user's hToken balance is insufficient to cover the whole debt. **Parameters:** Name Type Description asset address The address of the borrowed underlying asset amount uint256 The amount to repay. Use `type(uint256).max` to repay the whole debt for `asset` without leaving aToken dust interestRateMode uint256 Only available option is `2` (variable rate mode) **Returns:** Type Description uint256 The final amount repaid * * * `**setUserUseReserveAsCollateral**` Copy function setUserUseReserveAsCollateral(address asset, bool useAsCollateral) public virtual override Allows suppliers to enable or disable a specific supplied asset as collateral. Sets the `asset` of `msg.sender` to be used as collateral or not. An asset in Isolation Mode can be enabled as collateral only if no other asset is already enabled as collateral. The user cannot disable an asset as collateral if they have an outstanding debt position that would cause their health factor to drop below 1 upon disabling the given asset as collateral. **Parameters:** Name Type Description asset address The address of the underlying asset supplied useAsCollateral bool `true` if the user wants to use the supply as collateral, `false` otherwise * * * `**liquidationCall**` Copy function liquidationCall( address collateralAsset, address debtAsset, address user, uint256 debtToCover, bool receiveAToken ) public virtual override Allows liquidators to liquidate a non-healthy position (with a health factor below 1). When a user's health factor is below 1, the liquidator repays the `debtToCover` amount of the user's debt. This amount is a portion or the entirety of the outstanding borrowed amount on behalf of the borrower. The liquidator then receives a proportional amount of the `collateralAsset` (discounted collateral) plus a liquidation bonus to compensate for market risk. Liquidators can choose to receive an equivalent amount of collateral hTokens instead of the underlying asset. When the liquidation is successfully completed, the health factor of the position increases, bringing it above 1. Liquidators can only close a certain portion of the collateral defined by the close factor. Currently, the close factor is 0.5, meaning liquidators can only liquidate up to 50% of the amount pending to be repaid in a position. The liquidation discount applies to this amount. In most cases, profitable liquidators will choose to liquidate as much as allowed (50% of the user's position). The `debtToCover` parameter can be set to `type(uint256).max`, and the protocol will proceed with the maximum liquidation allowed by the close factor. To check a user's health factor, use `getUserAccountData()`. Liquidators must `approve()` the `Pool` contract to use `debtToCover` of the underlying ERC20 asset used for the liquidation. **Parameters:** Name Type Description collateralAsset address The address of the underlying asset used as collateral, to receive as a result of the liquidation debtAsset address The address of the underlying borrowed asset to be repaid during the liquidation user address The address of the borrower being liquidated debtToCover uint256 The debt amount of the borrowed asset that the liquidator will repay receiveAToken bool `true` if the liquidator wants to receive the aTokens equivalent of the purchased collateral, `false` to receive the underlying collateral asset directly * * * `**flashLoan**` Copy function flashLoan( address receiverAddress, address[] calldata assets, uint256[] calldata amounts, uint256[] calldata interestRateModes, address onBehalfOf, bytes calldata params, uint16 referralCode ) public virtual override Allows users to access the pool's liquidity for a given list of assets within a single transaction, as long as the amount borrowed plus a fee is returned. The receiver must approve the `Pool` contract for at least the amount borrowed plus the fee; otherwise, the transaction will revert. The flash loan fee is waived for approved `FLASH_BORROWER`. There are security considerations for developers of flash loan receiver contracts that must be taken into account. For further details, visit the Flash Loan Developers Guide. The referral program is currently inactive; you can pass `0` as `referralCode`. This feature may be activated in the future through a Hyperlend governance proposal. **Parameters:** Name Type Description receiverAddress address The address of the contract receiving the flash-borrowed funds, implementing the `IFlashLoanReceiver` interface assets address\[\] The addresses of the assets being flash-borrowed amounts uint256\[\] The amounts of the assets being flash-borrowed. This array must contain the same number of entries as `assets` interestRateModes uint256\[\] The types of the debt position to open if the flash loan is not returned: `0` -> Don't open any debt; the amount plus fee must be paid in this case, or the transaction will revert if the funds can't be transferred from the receiver. `2` -> Open a variable rate borrow position for the value of the amount flash-borrowed to the `onBehalfOf` address onBehalfOf address The address that will receive the debt if the associated `interestRateModes` is `1` or `2`. `onBehalfOf` must already have approved sufficient borrow allowance of the associated asset to `msg.sender` params bytes Variadic packed parameters to pass to the receiver as extra information referralCode uint16 The referral program is currently inactive; you can pass `0`. This code is used to register the integrator initiating the operation for potential rewards. Use `0` if executed directly by the user without intermediaries * * * [PreviousCore Pools](https://docs.hyperlend.finance/developer-documentation/core-pools) [Next↪ oracles](https://docs.hyperlend.finance/developer-documentation/core-pools/oracles) Last updated 1 year ago ---