Hyperliquid 백서

Hyperliquid

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 27쪽 중 26쪽

balance is calculated as `Total balance − minimum collateral required` to keep Health Factor ≥ 100% #### Your Health Factor Health Factor indicates how much additional borrow capacity remains in the account. Health Factor <100% does not directly imply liquidation risk, but the account won’t be able to borrow more. `Health Factor = Account Value weighted by LTV / Borrowed Amount` Calculation example: <table data-header-hidden><thead><tr><th width="275.5400390625">Asset</th><th>Balance</th><th>LTV</th><th>Weighted Value</th></tr></thead><tbody><tr><td><strong>Asset</strong></td><td><strong>Balance</strong></td><td><strong>LTV</strong></td><td><strong>Weighted Value</strong></td></tr><tr><td>BTC</td><td>1 @ $80,000</td><td>50%</td><td>$40,000</td></tr><tr><td>HYPE</td><td>200 @ $50</td><td>65%</td><td>$6,500</td></tr><tr><td><strong>Account value weighted by LTV</strong></td><td> </td><td> </td><td><strong>$46,500</strong></td></tr></tbody></table> If Borrowed Amount: $42,000, Health Factor = 46,500 / 42,000 = 110.71%&#x20; #### Your Borrowed Displays total outstanding USDC borrows. Borrows accrue interest until repaid. ### Advanced technical details #### Fees and caps Borrow fees are charged an interest on the outstanding borrowed amount. Interest accrues continuously and is shown on the interest tab every hour. Borrow and supply caps: * If the borrow cap is hit or all existing supply is lent out (100% utilization), positions are only protected against liquidation up to the borrowable amount. Users should monitor their liquidation risk and top up with the quote asset used for margining. * If all existing supply is lent out, users who have supplied assets will not be able to withdraw their collateral until more supply is added or borrows are repaid. As in the case of borrow caps, users should be aware of increased liquidation risk. #### Liquidations When a PM account becomes liquidatable (PMR ≥ 95%), either perp positions or spot collateral may be liquidated first, depending on the order of oracle price updates. Users should not expect a deterministic liquidation sequence. Spot collateral liquidations are classified as one of two types: * Partial borrow liquidation * A partial borrow liquidation is triggered when the borrowed amount exceeds the midpoint between the LTV and 100% of the collateral value. This threshold is defined as: `collateral_value × (LTV + (1 - LTV) × ½)`. * Occurs every 3 seconds, repeatedly, until the portfolio is no longer in a liquidatable state. Each liquidation experiences slippage analogous to perp liquidations into the order book. * Full borrow liquidation * A full borrow liquidation is triggered when the borrowed amount exceeds ⅔ between the LTV and 100% of the collateral value. This threshold is defined as: `collateral_value × (LTV + (1 - LTV) × ⅔)` . * The entire remaining collateral and debt position is liquidated. <table data-header-hidden><thead><tr><th width="326.1376953125">Parameter</th><th>Value</th></tr></thead><tbody><tr><td><strong>Parameter</strong></td><td><strong>Value</strong></td></tr><tr><td>HYPE held</td><td>10</td></tr><tr><td>Initial HYPE price</td><td>$50</td></tr><tr><td>LTV</td><td>65%</td></tr><tr><td>Borrowed amount</td><td>10 × $50 × 0.65 = $325</td></tr><tr><td><strong>Scenario 1: HYPE price drops to $38</strong></td><td></td></tr><tr><td>Collateral value</td><td>10 × $38 = $380</td></tr><tr><td>Partial liquidation threshold</td><td>$380 × (0.65 + (1 - 0.65) × ½ ) = $380 × 82.5% = $313.50</td></tr><tr><td>Outcome (Scenario 1)</td><td>Borrowed $325 > threshold $313.50, partial borrow liquidation triggered</td></tr><tr><td><strong>Scenario 2: HYPE price drops to $36</strong></td><td></td></tr><tr><td>Collateral value</td><td>10 × $36 = $360</td></tr><tr><td>Full liquidation threshold</td><td>$360 × (0.65 + (1 - 0.65) × ⅔ ) = $360 × 88.33% = $318</td></tr><tr><td>Outcome (Scenario 2)</td><td>Borrowed $325 > threshold $318, full borrow liquidation triggered</td></tr></tbody></table> When a borrow liquidation occurs, the protocol takes over the user’s collateral (e.g. HYPE or BTC) along with the associated debt. For a full technical breakdown of PM liquidation mechanics, refer to the Portfolio Margin [liquidations](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/portfolio-margin#liquidations) section. # Manual borrows ### What are manual borrows? Manual borrows allow you to borrow quote assets (USDC and USDT) against supplied collateral (HYPE and BTC).&#x20; Manual borrowing is supported for Manual/Standard and Unified Account users. For portfolio margin (PM) accounts, borrowing is automated and the manual borrow action is disabled. ### How do manual borrows work? #### Supported assets | **Asset** | **Use** | **LTV** | | ----------- | ---------------------------------- | ------- | | HYPE | Supply as collateral | 65% | | BTC | Supply as collateral | 50% | | USDC / USDT | Borrow, or supply to earn interest | N/A | Supplied HYPE and BTC act as collateral and do not earn interest. Supplied USDC and USDT earn interest but do not contribute to manual borrow capacity. Borrowed USDC and USDT pay interest.&#x20; #### Loan-to-value (LTV) and borrowing Each collateral asset has an LTV that determines how much you can borrow. `Borrowable amount = supplied amount × oracle price × LTV` If multiple collateral assets are supplied, their contributions are added together.&#x20; Example, assuming USDC is worth $1: | **Parameter** | **Value** | | -------------------------- | ------------------------ | | Collateral supplied | 100 HYPE at $40 | | LTV | 65% | | Borrow capacity | 100 × $40 × 65% = $2,600 | | Outstanding borrow | 2,000 USDC | | Additional borrowable USDC | 600 USDC | #### APY calculations Borrow APY is higher than supply APY because utilization is not 100%, i.e., interest paid by the set of borrowers need to be distributed proportionally to a larger set of suppliers, and the protocol retains 10% of borrowed interest as a buffer for future liquidations.&#x20; ### Understanding information related to manual borrows #### Your Health Factor Health Factor measures the account's LTV-weighted collateral value relative to its outstanding borrows. `Health Factor = supplied collateral value weighted by LTV / borrowed value × 100%` In the example above, Health Factor is $2,600 / $2,000 × 100% = 130%. At or below 100%, the account cannot borrow more. A Health Factor below 100% does not itself trigger liquidation.&#x20; #### Interest and caps Interest accrues continuously and is indexed hourly. Borrow APY depends on utilization. Refer to how interest works [here](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/portfolio-margin#ltv-and-borrowing). Borrows are subject to available liquidity and account and global caps. As such, a borrow may be limited even when the account has sufficient collateral. Refer to the current [supply and borrow limits](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/portfolio-margin). #### Liquidations Partial borrow liquidation is triggered when the borrowed value exceeds the supplied collateral value weighted by the liquidation thresholds. For HYPE and BTC: `Liquidation threshold = (1 + LTV) / 2` | **Collateral** | **LTV** | **Partial liquidation threshold** | | -------------- | ------- | --------------------------------- | | HYPE | 65% | 82.5% | | BTC | 50% | 75% | All supplied collateral and outstanding borrows are included. Collateral price declines, additional borrows, collateral withdrawals, and accrued interest can increase liquidation risk. #### Liquidation price Displays the estimated oracle price at the partial liquidation threshold. For a single collateral asset: `Liquidation price = borrowed value / (supplied amount × liquidation threshold)` Example using 100 HYPE collateral and 2,000 USDC borrowed, assuming USDC remains at $1 and excluding additional interest: | **Parameter** | **HYPE oracle price** | | ----------------------------- | ------------------------------- | | Health Factor = 100% | $2,000 / (100 × 65%) ≈ $30.77 | | Partial liquidation threshold | $2,000 / (100 × 82.5%) ≈ $24.24 | With multiple collateral assets, each estimate includes the other collateral's contribution at its liquidation threshold, holding all other asset prices fixed. The estimates do not assume that all collateral prices decline together. Liquidation price changes with prices, balances, and interest. On-chain rounding may differ from the displayed estimate. PM accounts use a separate calculation. Refer to the [liquidation](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/portfolio-margin#liquidations) Docs for more details. #### Why is liquidation price shown as N/A? N/A is displayed when no positive downside liquidation price is available. This can occur when: * The asset is not supplied as collateral, or there are no outstanding borrows. * Other collateral covers the debt even if this asset's price falls to zero, with other prices unchanged. * The calculated liquidation price is above the current oracle price, meaning the account has already passed the threshold. N/A does not indicate that the account is safe from liquidation risk. Users should also monitor outstanding borrows, supplied collateral, and Health Factor. # Trailing stops ### What is a trailing stop? A trailing stop is typically used to reduce or close an existing position. Its trigger price follows the mark price as it moves in favor of the position. When the mark price reverses by the retracement you set, it triggers a market order to close the selected size. ### How does a trailing stop work? A short trailing stop tracks the highest mark price reached since activation and triggers when the mark price falls from it by the set retracement. This closes a long or opens a short. A long trailing stop tracks the lowest mark price and triggers when the mark price rises from it by the set retracement. This closes a short or opens a long in the second. * Activation price: Optional. Tracking begins when the mark price reaches this level or immediately if no activation price is set. * Watermark: The highest mark price reached for a short trailing stop, or the lowest for a buy trailing stop, recorded since activation. * Retracement: The reversal from the watermark required to trigger the order, set as a fixed price distance or a percentage. * Trigger price: The price at which the order submits a market order for the selected size. It moves only when a new watermark is recorded, and stays unchanged during a reversal. <table data-header-hidden><thead><tr><th width="189"></th><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Order side</strong></td><td><strong>Watermark</strong></td><td><strong>Trigger</strong> <strong>price</strong> <strong>(distance)</strong></td><td><strong>Trigger price (percentage)</strong></td></tr><tr><td>Short (close long, open short)</td><td>Highest mark price</td><td>Watermark − distance</td><td>Watermark × (1 − rate)</td></tr><tr><td>Long (close short, open long)</td><td>Lowest mark price</td><td>Watermark + distance</td><td>Watermark × (1 + rate)</td></tr></tbody></table> #### Example 1: Closing a long with a fixed distance You have a long position, and the mark price is at 100. You place a trailing stop with a retracement of 10 and no activation price, intending to close the long once the market stops rising. The order begins tracking immediately from the current mark price. It follows the highest mark price reached, and triggers a market sell when the mark price falls from that high by 10. <figure><img src="https://223971011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fjea34cXPWRf1o1Lan56O%2Fuploads%2FkOHmqteIBfBugCzRKWRX%2Fclosing-long%20(3).png?alt=media&amp;token=be3cd3cc-1249-497d-bb81-1b7fdc307d3b" alt=""><figcaption></figcaption></figure> | **Mark price** | **Highest mark** | **Trigger price** | **What happens** | | -------------- | ---------------- | ----------------- | ------------------------------------------- | | 100 | 100 | 90 | Tracking starts | | 110 | 110 | 100 | New high raises the trigger | | 105 | 110 | 100 | Trigger stays unchanged | | 120 | 120 | 110 | New high raises the trigger again | | 110 | 120 | 110 | Market short is triggered to close the long | #### Example 2: Closing a short with a percentage You hold a short position and the mark price is at 120. You place a trailing stop with an activation price of 100 and a retracement of 10%, intending to close the short once the market stops falling. The order rests without tracking until the mark price reaches 100. From there it follows the lowest mark price reached, and triggers a market buy when the mark price rises from that low by 10%. <figure><img src="https://223971011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fjea34cXPWRf1o1Lan56O%2Fuploads%2FXPIk1C8AJxNPHdepUd1m%2Fclosing-short%20(3).png?alt=media&amp;token=0881919c-0988-401b-9dc9-389b2d68ac8f" alt=""><figcaption></figcaption></figure> | **Mark price** | **Lowest mark** | **Trigger price** | **What happens** | | -------------- | --------------- | ----------------- | ------------------------------------------- | | 120 | - | - | Waiting for activation | | 100 | 100 | 110 | Tracking starts, no long is triggered | | 80 | 80 | 88 | New low lowers the trigger | | 86 | 80 | 88 | Trigger stays unchanged | | 88 | 80 | 80 | Market long is triggered to close the short | #### Example 3: Opening a long with fixed-distance retracement The mark price is at 120. You place a long trailing stop with an activation price of 100 and a retracement of 10, intending to open a long once the market stops falling. The order rests without tracking until the mark price reaches 100. From there it follows the lowest mark price reached, and triggers a market buy when the mark price rises from that low by 10. <figure><img src="https://223971011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fjea34cXPWRf1o1Lan56O%2Fuploads%2FT6sZGLHHOjrOwhiNLonb%2Fopening-long-fixed-retracement%20(2).png?alt=media&amp;token=a0848f60-e7ce-4002-b85e-ae74855518c6" alt=""><figcaption></figcaption></figure> | **Mark price** | **Lowest mark** | **Trigger price** | **What happens** | | -------------- | --------------- | ----------------- | ---------------------------------------- | | 120 | - | - | Waiting for activation | | 100 | 100 | 110 | Tracking starts, no buy is triggered | | 80 | 80 | 90 | New low lowers the trigger | | 88 | 80 | 90 | Trigger stays unchanged | | 90 | 80 | 90 | Long is triggered and position is opened | # Unstaking & link staking issues Here are the guides in this section: {% content-ref url="/pages/1JKaMuIWympI5a1oTvY2" %} [Unstaking transfer taking more than 7 days](/hyperliquid-docs/support/faq/unstaking-and-link-staking-issues/unstaking-transfer-taking-more-than-7-days) {% endcontent-ref %} {% content-ref url="/pages/LZ4tWTmR4YmNKN6ksiZy" %} [Staking and trading account linking issues](/hyperliquid-docs/support/faq/unstaking-and-link-staking-issues/staking-and-trading-account-linking-issues) {% endcontent-ref %} # Unstaking transfer taking more than 7 days Description: You believe that you unstaked HYPE and the transfer has taken >7 days. Your unstaked HYPE has not reached your Spot balance ### Troubleshoot 1. Check that you have initiated the transfer from your Staking balance to your Spot balance, not just unstaked. The 7 day unstaking queue begins after you initiate the transfer. Unstaking and transferring to Spot balance are two separate actions 2. The unstaking queue (transfer to Spot) takes exactly 7 days. As an example, if you initiate a staking to spot transfer of 100 HYPE at 08:00:00 UTC on March 11 and a transfer of 50 HYPE at 09:00:00 UTC on March 12, the 100 HYPE transfer will be finalized at 08:00:01 UTC on March 18 and the 50 HYPE transfer will be finalized at 09:00:01 UTC on March 19 It’s not possible to speed up a transfer from the staking balance to spot balance to take less than 7 days.&#x20; \ Please refer to this Staking section in the Docs for more information: <https://hyperliquid.gitbook.io/hyperliquid-docs/hypercore/staking> # Staking and trading account linking issues Description: You have questions after linking a staking and trading account ### Do I need to link a trading and staking account if I trade and stake on the same account?&#x20; * No, this linking feature is only for users who want to trade and stake on separate accounts&#x20; ### Can I change the trading account that is linked? * No, linking is permanent. Unlinking is not supported ### Will my staking account continue to receive [staking discounts](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees#staking-tiers)? * No, the staking user will not receive any staking-related fee discount after being linked to a trading account ### Why can’t I set up my staking and trading account link? * Linking requires the trading account to send an action first. The staking account then finalizes the link Please refer to the Docs section for more information: <https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees#staking-linking> # Building on Hyperliquid Here are the guides in this section: {% content-ref url="/pages/DWgjek9Kv8t20P32LxaE" %} [I have API related questions](/hyperliquid-docs/support/faq/building-on-hyperliquid/i-have-api-related-questions) {% endcontent-ref %} {% content-ref url="/pages/RW3RZgMngLWjFDSqCa1T" %} [I want to deploy a spot token or list a perp](/hyperliquid-docs/support/faq/building-on-hyperliquid/i-want-to-deploy-a-spot-token-or-list-a-perp) {% endcontent-ref %} # I have API related questions Description: You are building on HyperCore or HyperEVM Here are the API docs: <https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api> Please do not open any tickets about API related questions. If you have questions about the API, you can ask in the #api-traders channel in the Discord server: <https://discord.gg/hyperliquid>. You can also search the message history since many people have similar questions.&#x20; API announcements: <https://t.me/hyperliquid_api> # I want to deploy a spot token or list a perp ### Spot deployment Spot deployments are permissionless <https://hyperliquid.gitbook.io/hyperliquid-docs/hyperliquid-improvement-proposals-hips/hip-1-native-token-standard> ### Perpetuals listings Perps listings are based on community request and organic demand: <https://hyperliquid.gitbook.io/hyperliquid-docs/hyperliquid-improvement-proposals-hips/hip-3-builder-deployed-perpetuals> # I got scammed/hacked Description: Your account was compromised / you see transactions you did not authorize / your funds are missing. If you notice unauthorized transactions, missing funds, or an unknown multi-sig on your Hyperliquid account, your wallet was likely compromised.&#x20; Hyperliquid is non-custodial. Only someone with access to your private key or seed phrase can sign transactions on your address’ behalf. If you see activity you didn’t initiate, it’s highly likely that your key was compromised, meaning someone else has control of your address. ### What to do * Stop using the compromised address. Treat it as permanently unsafe ("burned") * Create a new wallet address using a trusted wallet provider&#x20; * Transfer any remaining funds from your old wallet to your new one—this applies across all apps, not just Hyperliquid * Send any assets you may have on the HyperEVM to your new address (This is also applicable if your HyperCore address has been converted into a multi-sig you do not control) * Revoke smart contract permissions via <https://revoke.cash> to limit further access to your wallet * Clear your browser's cache and cookies, especially if you suspect there may be malware or phishing * Identify how you were compromised and determine if your
프로젝트로 돌아가기