hua833
    • Create new note
    • Create a note from template
      • 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
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me 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

      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.
      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
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control 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
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me 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

    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.
    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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- title: '如何使用閃電貸在 Aave、Compound、Maker 上獲得收益 ?' tags: Tutorials --- 如何使用閃電貸在 Aave、Compound、Maker 上獲得收益 ? === Instadapp 提供用戶進行閃電貸操作,除了能為用戶簡化操作借貸的繁瑣程序,省下大量的手續費,同時也能替用戶透過槓桿操作賺取更多的收益。 如果對於閃電貸、借貸因子、清算機制還不了解的,可以去參考以下介紹: - [什麼是閃電貸 ?](https://hackmd.io/UI2OZXTSQymzGEMkFkxNdg) - [什麼是 D/C、C.F、L.L、清算機制 ?](https://hackmd.io/xpu9D3kJQC-9JhPBEwljgw) ### 使用平台: --- - **主網** 目前支援: - 使用 Aave、Compound、Maker、Liquity 進行借貸。 - 使用 Uniswap v3 管理 LP 代幣。 - **Polygon** 目前支援: - 使用 Aave 進行借貸。 - **Avalache** 目前支援: - 使用 Aave 進行借貸。 - **Arbitrum** 目前支援: - 使用 Uniswap v3 管理 LP 代幣。 - [如何創建不同鏈上的帳戶 ,進行借貸操作?](https://hackmd.io/LRFUytUTSCSwL1tpUIMQQA) ## 如何使用 Aave、Compound ? 首先我們可以先切換至 **模擬模式** 上試著進行操作。 - [如何開啟測試模式( 推薦使用 ) ?](https://hackmd.io/lwsu2BBVRKu8Qs-bUrFifg) 正常的 Supply ( 添加資產 )、Borrow ( 借出資產 ) 應該都屬於非常基本的操作,相信大家都會,這邊要介紹的是 Instadapp 上的六大閃電貸操作。 **這邊用 Aave 來做範例 , 不過原理其實都是一樣的, 而 Maker 在操作上稍微有點不同會在最下方特別說明。** ### <span style="color:red; font-weight:bold;">1. Leverage / MAX ( 增加槓桿 )</span> --- 閃電貸幫用戶一鍵完成以下操作 ( 必須原先已有 A Token 當抵押品 ) : - 借出 B Token。 - 將 B Token 轉換成 A Token 後存入當抵押品。 ### 操作說明: 選擇 “ Leverage / MAX ”。 ![](https://hackmd.io/_uploads/HkoDepqSF.png) :::success 這邊示範使用 1 ETH ,借出 5000 DAI 並換成 ETH 存入來增加槓桿。 ::: 1. 選擇原先已存在的某抵押品( Collateral ),再選擇想要借出的債務 ( Debt )。 2. 輸入欲借出債務數量。 3. 設置滑點,建議使用預設,避免交易失敗浪費手續費。 4. 點擊 “Leverage” ,完成增加槓桿。 ![](https://hackmd.io/_uploads/r1zSITcBt.png) 5. 完成後便可以在儀表板上看到您的 ETH 已增加 1.32 顆,並且債務增加了 5000 DAI 。 ![](https://hackmd.io/_uploads/HyvPM0qrK.png) ### <span style="color:red; font-weight:bold;">2. Save / Unwind ( 減少槓桿 )</span> --- 閃電貸幫用戶一鍵完成以下操作 ( 原先已有 A 抵押品+ B 債務 ) : - 取出部分 A Token 抵押品。 - 把部分 A Token 換成 B Token 。 - 將換來的 B Token 償還之前的債務。 ### 操作說明: 選擇 “ Save / Unwind ”。 ![](https://hackmd.io/_uploads/HyRiJ1jSF.png) :::success 這邊示範使用 1 ETH ,償還部分 DAI 債務來減少槓桿。 ::: 1. 選擇原先已存在的某抵押品( Collateral ),再選擇想要償還的債務 ( Debt )。 2. 輸入欲使用抵押品償還的數量。 3. 設置滑點,建議使用預設,避免交易失敗浪費手續費。 4. 點擊 “SAVE” ,完成減少槓桿。 ![](https://hackmd.io/_uploads/S1hFrpoHt.png) 5. 完成後便可以在儀表板上看到您的 ETH 已減少 1 顆,並且償還了部分 DAI 的債務 。 ![](https://hackmd.io/_uploads/ryUoL6sHY.png) ### <span style="color:red; font-weight:bold;">3. Collateral Swap ( 更換抵押品 )</span> --- 閃電貸幫用戶一鍵完成以下操作 ( 原先已有 A 抵押品 ) : - 取出 所有 / 部分 A Token 抵押品。 - 把所有 / 部分 A Token 換成任意 Token 。 - 將換來的任意 Token 存入當抵押品。 ### 操作說明: 選擇 “ Collateral Swap ”。 ![](https://hackmd.io/_uploads/HyjrCCjBt.png) :::success 這邊示範將原本 1 ETH 的抵押品,更換為 BTC。 ::: 1. 選擇原先已存在的某抵押品( Current Collateral ),再選擇欲更換成何種抵押品 ( Total Projected Collateral )。 2. 輸入欲更換的抵押品數量。 3. 設置滑點,建議使用預設,避免交易失敗浪費手續費。 4. 點擊 “ Swap Collateral ” ,完成更換抵押品。 ![](https://hackmd.io/_uploads/rkFc-J2rK.png) 5. 完成後便可以在儀表板上看到您原先的抵押品 ETH 已經更換成 BTC。 ![](https://hackmd.io/_uploads/Sy68GynrF.png) ### <span style="color:red; font-weight:bold;">4. Debt Swap ( 更換債務 )</span> --- 閃電貸幫用戶一鍵完成以下操作 ( 原先已有 B 債務 ) : - 取出 所有 / 部分 B Token 債務。 - 把所有 / 部分 B Token 換成任意 Token 。 - 將換來的任意 Token 重新作為債務。 ### 操作說明: 選擇 “ Debt Swap ”。 ![](https://hackmd.io/_uploads/S1kgvJ2BY.png) :::success 這邊示範將原本 2000 DAI 的債務,更換為 USDT。 ::: 1. 選擇原先已存在的某債務( Current Debt ),再選擇欲更換成何種債務 ( Total Projected Debt )。 2. 輸入欲更換的債務數量。 3. 設置滑點,建議使用預設,避免交易失敗浪費手續費。 4. 點擊 “ Debt Collateral ” ,完成更換債務。 ![](https://hackmd.io/_uploads/BkqXt1hSK.png) 5. 完成後便可以在儀表板上看到您原先的債務 DAI 已經更換成 USDT。 ![](https://hackmd.io/_uploads/ByOwFynBF.png) ### <span style="color:red; font-weight:bold;">5. Desposit & Borrow ( 閃電存借 )</span> --- 閃電貸幫用戶一鍵完成以下操作 : - 存入 A Token 抵押品 - 借出 B Token 債務 ### 操作說明: 選擇 “ Deposit & Borrow ”。 ![](https://hackmd.io/_uploads/HJCnAJ3SK.png) :::success 這邊示範存入 1 ETH ,並借出 2000 USDT。 ::: 1. 選擇欲存入的抵押品( Collateral ),再選擇欲出的債務( Debt )。 2. 選擇固定利率( Stable )或是浮動利率 ( Variable )。 3. 輸入欲存入抵押品的數量以及欲借出債務的數量。 4. 點擊 “ Deposit & Borrow ” ,完成閃電存取。 ![](https://hackmd.io/_uploads/SJuhzl2BK.png) 5. 完成後便可以在儀表板上看到您存入的 ETH 以及借出的 USDT。 ![](https://hackmd.io/_uploads/HkC-XgnSt.png) ### <span style="color:red; font-weight:bold;">6. Payback & Withdraw ( 閃電還取 )</span> --- 閃電貸幫用戶一鍵完成以下操作 : - 償還 部分 / 全部 B Token 債務 - 取回 部分 / 全部 A Token 抵押品 ### 操作說明: 選擇 “ Payback & Withdraw ”。 ![](https://hackmd.io/_uploads/By-sG-3SF.png) :::success 這邊示範償還原先 2000 DAI 的債務 ,並取回 1 ETH。 ::: 1. 選擇欲償還的債務( Debt ),再選擇欲取出的抵押品( Collateral )。 2. 選擇固定利率( Stable )或是浮動利率 ( Variable )。 3. 輸入欲償還債務的數量以及欲取出的抵押品的數量。 4. 點擊 “ Payback & Withdraw ” ,完成閃電還取。 ![](https://hackmd.io/_uploads/rkWJFW3BY.png) 5. 完成後便可以在儀表板上看到您已經歸還了DAI 債務,並且取出了 ETH 。 ![](https://hackmd.io/_uploads/SkhGFZhSY.png) :memo:提醒:若是要償還所有債務,並取出所有抵押品。設置整數,有可能會造成抵押品或債務還有餘額,可以設置比UI上顯示的整數再多一點。 - [為何償還債務後,還有餘額 ?](https://hackmd.io/p5KM-LG1QDiLk1PbgtkXlg) ## 如何使用 Maker ? - **在 Maker 上用戶能夠創建多個金庫( Vaults ),而每個金庫都只有一種抵押品以及 DAI 債務( 因為能借的代幣只有 DAI),並且有最小債務 10000 DAI 的限制。** 1. 首先我們可以先使用“ Deposit & Borrow ”。 ![](https://hackmd.io/_uploads/HkIoTMTSY.png) 2. 選擇您要存入的抵押品種類( 抵押物若有 A、B、C 之分代表會有不同的固定利率以及清算閥值 L.L ),接著輸入您要存入的抵押品以及債務數量點擊“ Deposit & Borrow ”。 ![](https://hackmd.io/_uploads/rkLMyXpHK.png) 3. 成功後便會看到您的頭寸,注意右上角的數字就是您金庫的名稱。 ![](https://hackmd.io/_uploads/B1ZAgmaBK.png) ## <span style="color:red; font-weight:bold;">Vault Swap ( 更換金庫 )</span> Vaults Swap 就是將其中一個金庫的頭寸直接轉移到另一個金庫,並且抵押品會改變成目的金庫的抵押品。 1. 原先已有兩種以上的金庫,點擊 “ Vaults Swap ”。 ![](https://hackmd.io/_uploads/BJVriEaBY.png) > 2. 選擇欲轉移金庫(Vault ID (From))以及目的金庫 (Vault ID (To)),接著輸入欲轉移金庫中的抵押品和債務。 ![](https://hackmd.io/_uploads/Sy-9nNTHt.png) 3. 點整滑點,建議使用預設,避免交易失敗浪費 Gas Fee。 ![](https://hackmd.io/_uploads/HkAVa46HY.png) 4. 接著您可以看到已經成功將原本金庫中的 10 ETH 換成了 BTC 並且連同債務移轉至目的金庫。 ![](https://hackmd.io/_uploads/SJwIR46rK.png)

    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

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    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