btc资讯
  • NEW!
    NEW!  Connect Ideas Across Notes
    Save time and share insights. With Paragraph Citation, you can quote others’ work with source info built in. If someone cites your note, you’ll see a card showing where it’s used—bringing notes closer together.
    Got it
        • Sharing URL Link copied
        • /edit
        • View mode
          • Edit mode
          • View mode
          • Book mode
          • Slide mode
          Edit mode View mode Book mode Slide mode
        • Customize slides
        • Note Permission
        • Read
          • Owners
          • Signed-in users
          • Everyone
          Owners Signed-in users Everyone
        • Write
          • Owners
          • Signed-in users
          • Everyone
          Owners Signed-in users Everyone
        • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invite by email
        Invitee

        This note has no invitees

      • Publish Note

        Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

        Your note will be visible on your profile and discoverable by anyone.
        Your note is now live.
        This note is visible on your profile and discoverable online.
        Everyone on the web can find and read all notes of this public team.

        Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

        Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

        Explore these features while you wait
        Complete general settings
        Bookmark and like published notes
        Write a few more notes
        Complete general settings
        Write a few more notes
        See published notes
        Unpublish note
        Please check the box to agree to the Community Guidelines.
        View profile
      • Commenting
        Permission
        Disabled Forbidden Owners Signed-in users Everyone
      • Enable
      • Permission
        • Forbidden
        • Owners
        • Signed-in users
        • Everyone
      • Suggest edit
        Permission
        Disabled Forbidden Owners Signed-in users Everyone
      • Enable
      • Permission
        • Forbidden
        • Owners
        • Signed-in users
      • Emoji Reply
      • Enable
      • Versions and GitHub Sync
      • Note settings
      • Note Insights New
      • Engagement control
      • Make a copy
      • Transfer ownership
      • Delete this note
      • Insert from template
      • Import from
        • Dropbox
        • Google Drive
        • Gist
        • Clipboard
      • Export to
        • Dropbox
        • Google Drive
        • Gist
      • Download
        • Markdown
        • HTML
        • Raw HTML
    Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
    Menu
    Options
    Engagement control Make a copy Transfer ownership Delete this note
    Import from
    Dropbox Google Drive Gist Clipboard
    Export to
    Dropbox Google Drive Gist
    Download
    Markdown HTML Raw HTML
    Back
    Sharing URL Link copied
    /edit
    View mode
    • Edit mode
    • View mode
    • Book mode
    • Slide mode
    Edit mode View mode Book mode Slide mode
    Customize slides
    Note Permission
    Read
    Owners
    • Owners
    • Signed-in users
    • Everyone
    Owners Signed-in users Everyone
    Write
    Owners
    • Owners
    • Signed-in users
    • Everyone
    Owners Signed-in users Everyone
    Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # 什么是流动性池(LP)?一文读懂AMM原理与无常损失风险 <div style="background:#fff8e1;border-left:4px solid #F0B90B;padding:12px 16px;margin:0 0 24px;border-radius:0 6px 6px 0;color:#555;font-size:14px;line-height:1.7;">📋 流动性池(LP)不同于传统金融市场依赖做市商和订单簿的模式,DeFi 通过代码和数学公式实现了自动化交易,本文将从底层技术原理出发,深度解析自动化做市商(AMM)的运行机制,并拆解困扰众多投资者的无常损失风险,帮助读者建立对链上流动性供应的系统性认知</div><div id="content"> <p>在去中心化金融(DeFi)的世界中,流动性池(Liquidity Pool, LP)被视为整个生态系统的血液。不同于传统金融市场依赖做市商和订单簿的模式,DeFi 通过代码和数学公式实现了自动化交易。本文将从底层技术原理出发,深度解析自动化做市商(AMM)的运行机制,并拆解困扰众多投资者的无常损失风险,帮助读者建立对链上流动性供应的系统性认知。</p> <p style="text-align:center"><img alt="什么是流动性池(LP)?一文读懂AMM原理与无常损失风险" height="567" loading="lazy" src="https://g.udn.com.tw/upfiles/B_G_/G_114761846439584705/PSN_PHOTO/588/f_29468588_1.jpg" width="850"/></p> <h2>1. 核心定义:什么是流动性池(LP)?</h2> <p>从技术角度看,流动性池是锁定在智能合约中的众包资金池。这些资金主要用于促进去中心化交易所(DEX)上的交易、借贷或其他金融活动。用户(称为流动性提供者,LPs)将两种等价值的代币存入池中,作为交换,他们会获得代表其在池中份额的LP代币(LP Tokens),并以此捕获交易手续费奖励。</p> <p><strong>关键区别:</strong></p> <p>传统交易所(CEX)使用“订单簿”模式,买家和卖家必须在价格上达成一致才能成交;而DeFi平台(DEX)使用“流动性池”模式,交易者是与智能合约进行交易,而非直接与另一个用户交易。</p> <h3>传统订单簿 vs. 流动性池 AMM</h3> <table><tbody><tr><th>特性</th><th>传统订单簿 (Order Book)</th><th>流动性池 (AMM)</th></tr><tr><td><strong>交易对手</strong></td><td>其他交易者 (Peer-to-Peer)</td><td>智能合约 (Peer-to-Contract)</td></tr><tr><td><strong>定价机制</strong></td><td>最后成交价,由供需挂单决定</td><td>由数学公式自动计算 ($x*y=k$)</td></tr><tr><td><strong>流动性来源</strong></td><td>专业做市商 (Market Makers)</td><td>任何用户 (Community)</td></tr><tr><td><strong>优势</strong></td><td>适合高频交易,滑点低</td><td>7*24小时可用,无需许可,长尾资产友好</td></tr></tbody></table> <h2>2. 技术解构:AMM(自动化做市商)如何运作?</h2> <p>流动性池背后的核心引擎是自动化做市商(Automated Market Maker, AMM)。尽管不同的协议(如Uniswap, Curve, Balancer)有不同的算法,但最基础且广泛使用的是“恒定乘积公式”。</p> <p><strong>公式详解:</strong></p> <ul><li>x = 池中代币 A 的数量(例如 ETH)</li><li>y = 池中代币 B 的数量(例如 USDT)</li><li>k = 恒定常数(Liquidity Constant)</li></ul> <p><strong>核心逻辑:</strong>无论发生交易,在手续费提取前,<strong>x 和 y 的乘积 k 必须保持不变</strong>。这意味着,如果你从池中买走(减少)代币 A,就必须放入(增加)足够数量的代币 B,以维持 k 值恒定。</p> <p>场景模拟:一次交易的发生</p> <p>假设一个 ETH/USDT 流动性池的初始状态如下:</p> <ul><li>🔹 <strong>ETH 数量 (x):</strong> 10 枚</li><li>🔹 <strong>USDT 数量 (y):</strong> 20,000 枚</li><li>🔹 <strong>恒定积 (k):</strong> 10 * 20,000 = <strong>200,000</strong></li><li>🔹 <strong>当前 ETH 价格:</strong> 20,000 / 10 = 2,000 USDT</li></ul> <p>此时,一名交易者想要花费 <strong>5,000 USDT</strong> 购买 ETH:</p> <ul><li>池中 USDT 增加到 25,000 (20,000 + 5,000)。</li><li>为了保持 k = 200,000,池中 ETH 数量必须变为:200,000 / 25,000 = <strong>8 ETH</strong>。</li><li>池中初始有 10 ETH,现在剩 8 ETH,差额 <strong>2 ETH</strong> 被交易者买走。</li><li><strong>实际成交价:</strong>交易者花了 5,000 USDT 买了 2 ETH,平均单价为 <strong>2,500 USDT/ETH</strong>。</li></ul><div style="background:#e8f5e9;border:2px solid #66bb6a;border-radius:8px;padding:16px 18px;margin:24px 0;font-size:14px;line-height:1.8;"> <p style="margin:0 0 8px;font-size:15px;font-weight:bold;color:#333;">🌐 币安 Web3 钱包 · 一站式管理链上资产</p> <p style="margin:0 0 10px;color:#555;">内置 DEX 聚合器、跨链桥、DeFi 收益,支持50+主流公链,私钥自托管安全透明。</p> <ul style="margin:0 0 10px;padding-left:20px;color:#444;"> <li>🔗 Web3 钱包邀请链接:<a href="https://web3.binance.com/referral?ref=MW7E7Y08" rel="sponsored" target="_blank">立即体验(邀请码 MW7E7Y08)</a></li> <li>💱 现货账户同步开通享手续费减免:<a href="https://accounts.binance.com/register?ref=B2345" rel="sponsored" target="_blank">注册币安现货(邀请码 B2345)</a></li> <li>📖 完整 DeFi 教程:<a href="https://www.bitaigen.com/binance" rel="sponsored" target="_blank">币安12大专题教程</a></li> </ul> <p style="margin:0;font-size:12px;color:#888;">✅ Web3 + 现货双账户联动,链上链下资产统一管理</p> </div> <p><strong>注意滑点 (Slippage):</strong> 初始价格是 2,000,但由于大额交易改变了池子的比例,实际成交均价变成了 2,500。这种价格偏离称为滑点。池子深度(TVL)越小,滑点越大。</p> <p style="text-align:center"><img alt="什么是流动性池(LP)?一文读懂AMM原理与无常损失风险" height="480" loading="lazy" src="https://g.udn.com.tw/upfiles/B_G_/G_114761846439584705/PSN_PHOTO/589/f_29468589_1.jpg" width="850"/></p> <h2>3. 风险揭秘:什么是无常损失 (Impermanent Loss)?</h2> <p>对于流动性提供者(LP)而言,赚取手续费并非没有代价。最大的隐形杀手被称为“无常损失”。简单来说,无常损失是指将代币存入流动性池后,与单纯在钱包中持有(HODL)这些代币相比,资产价值减少的部分。</p> <h3>为什么会发生损失?</h3> <p>这源于 AMM 的被动定价机制。AMM 不知道外部市场的价格,它完全依赖套利者(Arbitrageurs)。当外部市场 ETH 价格上涨时,AMM 池中的 ETH 价格会显得便宜,套利者会不断买入池中的 ETH(注入 USDT),直到池内价格与外部市场持平。这一过程导致 LP 手中的币种比例发生变化:手中的优质资产(涨价的币)变少了,而弱势资产(贬值的币或稳定币)变多了。</p> <h3>无常损失演算:ETH 价格翻倍会发生什么?</h3> <p>假设初始存入:1 ETH ($100) + 100 USDT。总价值 $200。</p> <p><strong>情况 A:单纯持有 (HODL)</strong></p> <p>价格涨至 $200/ETH</p> <p>1 ETH = $200</p> <p>100 USDT = $100</p> <p>总值: $300</p> <p><strong>情况 B:提供流动性 (LP)</strong></p> <p>套利后池子比例重平衡</p> <p>0.707 ETH ≈ $141.4</p> <p>141.4 USDT ≈ $141.4</p> <p>总值: $282.8</p><div style="background:#fff9f0;border-left:4px solid #F0B90B;padding:16px 18px;margin:24px 0;font-size:14px;line-height:1.8;"> <p style="margin:0 0 8px;font-size:15px;font-weight:bold;color:#333;">📊 在币安交易 BTC — 全球最深流动性</p> <p style="margin:0 0 10px;color:#555;">币安拥有全球最大现货+合约市场,BTC/USDT 交易对深度极佳,滑点低、费率全网最优,通过专属链接注册享 <strong>20% 手续费折扣</strong>。</p> <ul style="margin:0 0 10px;padding-left:20px;color:#444;"> <li>🖥️ 进入专业交易界面:<a href="https://www.binance.com/trade/BTC_USDT?layout=pro&amp;ref=B2345&amp;type=spot" rel="sponsored" target="_blank">币安 BTC/USDT 现货</a></li> <li>📈 合约交易入口:<a href="https://www.binance.com/join?ref=B2345" rel="sponsored" target="_blank">开通合约账户</a></li> <li>📚 完整交易教程:<a href="https://www.bitaigen.com/binance" rel="sponsored" target="_blank">币安使用指南2026</a></li> </ul> <p style="margin:0;font-size:12px;color:#888;">✅ 邀请码 <strong>B2345</strong> · 注册即享手续费20%减免</p> </div> <p><strong>结论:</strong> 相比直接持有,做 LP 损失了 $17.2 ($300 – $282.8)。这就是无常损失,约 <strong>5.7%</strong>。如果手续费收入无法覆盖这 5.7%,LP 就是亏损的。</p> <h2>4. 参与 LP 前必须评估的风险清单</h2> <p>01.无常损失风险: 只要双币价格汇率发生偏离(无论涨跌),就会产生 IL。汇率波动越大,损失越大。</p> <p>02.智能合约风险: 代码即法律,但也可能存在 Bug。即使是经过审计的协议,也不能排除被黑客攻击导致资金池被掏空的可能。</p> <p>03.Rug Pull (撤池跑路): 在土狗项目(Meme币)中,如果项目方未锁定流动性,他们可能随时撤走所有底池资金,导致代币归零。</p> <h2>5. 常见问题解答 (FAQ)</h2> <p><strong>1. 既然有无常损失,为什么还有人愿意做 LP?</strong></p> <p>这是一个风险与收益的博弈。虽然存在无常损失,但如果交易手续费收入(Trading Fees)加上协议额外的代币奖励(流动性挖矿奖励)的总和超过了无常损失,LP 依然可以获得可观的净利润。通常在横盘震荡行情中,LP 的收益表现最优。</p> <p><strong>2. 什么是“无常损失”中的“无常”?会变成永久损失吗?</strong></p> <p>“无常”意指“非永久性的”。如果代币价格回归到你初始存入时的比率,这种损失就会消失。然而,如果你在价格偏离严重时(负无常损失状态)选择撤出流动性,这种账面上的“无常损失”就会转化为实际的“永久损失”。</p> <p><strong>3. 单币质押(Single Sided Staking)也有无常损失吗?</strong></p> <p>通常没有。单币质押(如在银行存钱一样只存一种币)不涉及两种资产的比例再平衡,因此不存在无常损失。但单币质押的收益率(APY)通常低于双币 LP 挖矿,且仍需承担币价下跌和合约被黑的风险。</p> <p><strong>4. Uniswap V2 和 V3 的流动性池有什么区别?</strong></p> <p>V2 是全范围流动性(0到无穷大),资金利用率低。V3 引入了“集中流动性”(Concentrated Liquidity),允许 LP 自定义做市的价格区间。V3 虽然极大提高了资金效率和手续费收入,但也显著放大了无常损失的风险,不仅更复杂,且一旦价格跌破区间,LP 将满手接盘贬值资产。</p> <p><strong>5. 遇到 Rug Pull(撤池子)如何提前识别风险?</strong></p> <p>检查 LP Token 是否已锁定(通过 Unicrypt 等平台);查看持仓分布,确认开发者没有持有绝大多数的 LP 份额;使用合约安全检测工具(如 Token Sniffer)扫描代码风险。如果一个新项目的 LP 流动性极低且未锁定,风险极高。</p> <p>以上就是什么是流动性池(LP)?一文读懂AMM原理与无常损失风险的详细内容,更多关于流动性池LP的资料请关注Bitaigen(比特根)其它相关文章!</p><div style="background:#fffde7;border:2px solid #F0B90B;border-radius:8px;padding:16px 18px;margin:24px 0;font-size:14px;line-height:1.8;"> <p style="margin:0 0 8px;font-size:15px;font-weight:bold;color:#333;">🏆 币安 Binance · 全球最大加密货币交易所</p> <p style="margin:0 0 10px;color:#555;">全球交易量第一,500+交易对,中国大陆可直接访问,通过专属链接注册享 <strong>20% 手续费永久减免</strong>。</p> <ul style="margin:0 0 10px;padding-left:20px;color:#444;"> <li>📖 完整使用指南(2026最新):<a href="https://www.bitaigen.com/binance" rel="sponsored" target="_blank">12大专题教程</a></li> <li>🇨🇳 中国区专属注册通道:<a href="https://basebiance.com/binancecn" rel="sponsored" target="_blank">立即注册</a></li> <li>📱 安卓APK直接下载:<a href="https://basebiance.com/binanceapkcn" rel="sponsored" target="_blank">点击下载</a></li> <li>🌐 官网注册(邀请码 <strong>B2345</strong>):<a href="https://accounts.binance.com/register?ref=B2345" rel="sponsored" target="_blank">accounts.binance.com</a></li> </ul> <p style="margin:0;font-size:12px;color:#888;">✅ 手续费减免20% · 新用户福利 · 安全合规运营</p> </div> </div>

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully