miaolan xue
  • 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
      • 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 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
      • 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 Note Insights Versions and GitHub Sync Sharing URL Create Help
    Create Create new note Create a note from template
    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
    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 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
    # Botanix 交互之 Arch --蜘蛛生态原生DEX(去中心化交易所)                                                  ![image](https://hackmd.io/_uploads/BksUJgSCyg.png) [TOC] ## 1. Arch 介绍     **Arch** 是使用业界最为领先的DEX协议[algebra](https://algebra.finance/)(听这名字是不是感觉都很高级😄),专为botanix生态系统Btcfi提供流动性的原生 DEX 去中心化交易所。 Arch 利用 Botanix 的尖端 Spiderchain 技术为基于 EVM 的应用程序解锁比特币流动性。     咱们先说先说 DEX 和 CEX 有啥区别,我们平常在如币安或者 OKX 购买代币如 BTC/ETH 这种方式是通过订单簿模型,就像你在交易所购买股票,有人买需要有人卖这样你才能成交,在中心化交易所你的需要托管到交易所里,需要买卖时候用户下单交易所通过订单簿撮合引擎完成买卖。这样做呢有什么好处呢,简单高效,坏处呢第一就是平台风险,那一天某个平台突然出问题,上哪里说理去。还有后来还搞出来个 KYC,这着实又和 web3 的初衷背向而驰。     去中心化交易所又是如何实现的呢,去中心化交易所DEX的实现逻辑就是钱永远在你自己的钱包里当你需要交易买卖时候,分布式交易所通过AMM算法自动定价完成交易,用户直接与智能合约进行资产交换,这就是我们熟知的DEX 的Uniswap/Curve DEX/PancakeSwap/Balancer进行交易的逻辑。 *    这里走个神,有个问题我很困惑市场上那么多的DEX(***我查了下defillama截止20250410的数据算在DEX protocol的已经达到了1643家***) 为啥都要提供流动性,后来想想股票市场只有一个交易所为啥那么多证券公司,其实就好理解了,(这里只是方便理解,本质上defi的和我们现实的还是有很多不同的)。第一,defi的核心发动机就是DEX,第二,自然脱离不了市场多样化和竞争,第三个,其实在defi领域可能最大的驱动力就是满足的不同生态生态内比如我们的Botanix在没有主网之前或者刚起步阶段流动性不足总要提供自己的DEX吧,另外defi本身的核心不就是流动性加风险管理么,少了这个也不能自成体系和生态。* ---这部分纯属的自己理解     好回到主题那实现DEX背后的AMM又是什么呢,要理解AMM我们就从最简单的先开始 - ***一开始只有一个交易对还简单*** *我们搭了个最原始的交易平台(DEX雏形) 有人来提供流动性,比如: 1 BTC 对 10 USDT(想得美🤭) 他们提供的是50% BTC + 50% USDT 的资产组合 流动性提供者把资产注入一个池子,按照某种算法(比如Uniswap V2 x x y=k),让交易者随时可以根据当前池子里的价格进行兑换。 交易者支付 0.3% 手续费(Uniswap 默认) 这部分手续费按照比例分配给流动性提供者(LP) 平台还可能发行代币,奖励 LP(比如 UNI、CAKE 之类的)* - ***从一个交易对,变成多个交易对*** *BTC/USDT ETH/USDT UNI/ETH DOGE/SHIB(太狂野了) 就会涉及到很多 DEX 的管理机制: 每个池子都有自己的资金量、手续费策略 每个交易对可能会产生“价格滑点” 跨交易对交易就要涉及“路径发现”(比如 USDT → BTC → ETH)* - ***再复杂一点,多链和多DEX/CEX之后*** *不同链上有自己的 DEX(Uniswap 在以太坊,Pancake 在 BSC,TraderJoe 在 Avalanche)各自的流动性池独立,还有去中心化的CEX 如币安,OKX... 你想从 BSC 上的 USDT 换成以太坊上的 ETH 这就涉及: 跨链桥(Bridge) 资产映射(Wrapped Token) 价格同步机制(Oracle) MEV 问题(套利者可能操控路径) 聚合交易(如 1inch、Paraswap) 流动性碎片化 聚合交易与用户体验 更复杂的激励和治理机制*     要实现这些复杂的逻辑核心就是AMM(Automated Market Maker)中文翻译为自动化的做市商或者我们可以更直观的理解下是自动定价交易模型,***我个人的理解AMM的终极或者理想状态,应该是利用算法和协议借助智能合约将市场上无论那个链上的那种货币对整合后实现一种类似于实时的交易所报价单的统一报价系统*** > Algebra 是一种突破性的 AMM,也是一种用于去中心化交易所的集中流动性协议,采用自适应费用运行。其基础设施为DeFi中的30 多个去中心化交易所集成,Algebra 的累计交易量已超过 700 亿美元,24 小时交易量高达 6.79 亿美元,总锁定价值 (TVL) 管理高达 2.51 亿美元。 > > Algebra 的 DEX 协议被公认为 DeFiLlama 上第 7 大分叉协议     以上信息来自于algebra 官方,如果感兴趣的可以查看官方[algebra](https://algebra.finance/)     我试着从defillama上去查看了想相关数据,没有找到想要的答案,不过我们可以看看官方生态,至少在这么多的DEX都使用了它的协议,当然其中少不了我们自己的***Arch***,其实我相信也能说明问题。 ![algerbra](https://hackmd.io/_uploads/rk5P20eCke.jpg)     总的来说 ***Arch*** 就是通过可信的算法模型V3/V4 liquidity models,通过可靠协议(algebra+arch),建立在一个可信的链上通过(***Botanix spliderchain*** + BTC) ,形成了从逻辑算法到平台协议到技术实现基于分布式去中心化下的全生命周期的可靠性和安全性,我们要的不就是可靠安全和去中心化的交易平台么,睡觉安稳,心理踏实,赚不赚钱的无所谓🙂没错就是它了!     我自己是初学者,其实AMM/DEX协议底层实现又牵扯到各种算法,生态,如ALM(自动化流动性管理,DeFi里的基金经理,Aggregators(聚合器,DeFi版的淘宝,聚合器里又很多种),Cross-Chain 桥,Blockchains(如BTC,ETH)当然少不了我们的***Botanix***,Auditors(审计方,DeFi里的合规审计员)这些复杂的生态整合后形成。一个前端用户看到一个操作简单的平台有时候会觉得平台功能实在有限,殊不知要做到一个完全合规/高效/可靠/安全的DEX其实并不是一个简单的事情,这些专业的事情还是留给专业的人去做吧,那我们普通投资者或者交互着能在这个平台做什么呢? 大家如果还不放心那就去看看[algebra](https://algebra.finance/) V3/V4文档、或者Uniswap的V3/V4,文末也提供了一些参考链接,具体我就不多讲了,讲多了也不会了。😓😓😓 ***其实说了那么多那我们普通投资者来说到底能通过Arch做什么,其实主要干就干两件事:*** ***一、普通交易(Swap)***     SWAP虽然底层实现复杂单这个好理解无非就是dex底层给你实现好了,你自己把DEX支持的两两代币对互换,这个和你在币安,OKX中心化交易所做交易没啥区别,就是用某种代币兑换某种代币,比如我们常用的USDT/BTC代币对,用USDT去购买BTC,只不过中心化交易所用的是买家和卖家挂单,撮合成交,这里用的是AMM(自动化做市商)方式自动实现,对于我们来讲没区别,只是后端实现的方式不同 ***二、提供流动性(赚取手续费提成及平台激励代币arch)***     既然DEX是通过自动化AMM实现的,那就要有人提供流动性LP(Providing Liquidity),但是没点收益谁愿意干这事啊,这就是这里要干的事情了,我们在给一个流动性池子(pool)如BTC/PUSD 创建自己的positon(仓位头寸)时候,你就可以理解就是给这个货币对提供流动性,那利益来自于哪里,来自于所有人交易这个货币对时候产生的手续费分成和平台奖励给你平台币,要不然提供个啥。Arch提供的平台代币是Arch,主要用于LP抵押激励,一方面可以抵消一部分无常损失,啥又来个单词,啥是无常损失,提供流动性给去中心化交易所(DEX)时,由于资产价格的波动,导致流动性提供者(LP)相较于单纯持有这些资产时的损失,感兴趣查看参考链接里的关于无常损失的解释,另外我也找到几个可模拟无常损失的模拟器一并附上可能有助于理解。     想想看即使在一个单货币对,单交易所,单链上来讲,如果对于一个大的货币对来讲,这个流动性靠我们几个散户来讲是撑不起来的,说不定那天就枯竭了(就像现实中发生了挤兑),更何况,我们是跨交易所/跨链/无数个交叉货币对。所以就存在了套利机制驱动下的各种提供流动性的机构了,散户天天盯着不停板砖套利肯定是抢不到肉的,一定要靠某种自动化的机制,专业的套利机器人,DEX聚合器,ALM,质押,流动性挖矿这些都会参与到LP中。理论上来讲,只要市场没有枯竭池子里的水就不会枯竭。     但是LP(LIQUDITY POOLS)这块就不好理解了,我们就从经典uniswap来说吧,市场上现在主流的使用的是uniswap V3协议,但是我觉得早期接触一般LP的人都知道我们提供LP的时候要求为存入两两货币提供等值流动性即50%-50%,也就是uniswap V2时代,这个有什么好处呢,唯一的好处就是简单吧,那最大的缺点是什么,资金利用率低虽然支持全区间提供流动性,可是不一定轮得到你啊,那么多人提供,所以对应的apr都偏低。     所以为了解决这个问题就有了V3,那V3有什么好处呢,V3最重要的概念就是集中流动性AMM,大白话就是你可以设定区间提供流动性,在你觉得资金利用率最高的点位提供流动性,这样提高资金利用率。这里列个表格结合arch提供的四种流动性区间选择可能更好理解一点。     这里就以我们常见的BTC/USDT货币对来举例子,以我们普通用户的视角来看待,假设当前的BTC价格为77000USDT | 模式 | 设置的价格区间 | 收益潜力 | 是否容易错过收益 | 是否需要经常调整 | 你大概需要准备的资产比例 | 适合什么类型的用户 | |----------|------------------------|----------------|------------------|------------------|------------------------------------|----------------------------------------| | Narrow | 75K ~ 79K(价格很贴近当前) | ⭐⭐⭐⭐(非常高) | ✅ 是,价格稍微一动就可能赚不到 | ✅ 是,要盯盘 | 比如 60% BTC + 40% USDT(或 50/50) | 会看行情、愿意主动调整的用户 | | Common | 70K ~ 85K(比较常见的波动区间) | ⭐⭐⭐(高) | ⚠️ 偶尔会错过,但大多数时间都能赚 | ⚠️ 偶尔调整 | 比如 55% BTC + 45% USDT | 想赚中高收益,但不太想天天看盘的用户 | | Wide | 50K ~ 100K(非常宽的范围) | ⭐⭐(一般) | ❌ 不容易错过收益 | ❌ 基本不用调整 | 比如 65% BTC + 35% USDT | 保守型,想长期放着赚点稳定收益的用户 | | Full | 无限制(所有价格都包含) | ⭐(最低) | ❌ 永远有效 | ❌ 完全不用动手 | 固定 50% BTC + 50% USDT | 新手,或完全不想操心配置的用户 |     好了,对于我来讲写到这里其实都已经很勉强了,不多对于我们做交互需要知道的应该是差不多了,其实Arch最终实现的目标是结合了Algebra最新模块化架构的V4 Integral 直接对标竞争对手(uniswap v4)的更先进的协议了,相对于V3已经有了更大的提升如: * ***模块化架构*** * ***可定制的插件*** * Dynamic Fee Plugin 这个插件不用我们盯盘了,可以自动化的来优化我们的流动提供区间 * On-chain Farming Plugin 我的理解可以在DEX上实现流动性挖矿了? * Limit Orders Plugin * Oracles for TWAP and Volatility * ***每种货币对单池架构*** 最大限度地减少流动性碎片化,简化交换最优路径的构建,并简化流动性提供者的流动性管理。 * ***降低GAS成本*** 通过这些功能进一步在提升平台的安全性和稳定性基础上增加 LP 提供者的收益率从而进一步的加强流动性提供。 感兴趣的大家可以参考我后面提供的参考网址深入研究也可参考 [Arch官方文档](https://docs.arch.fi/protocol/core-logic) 进一步探索。 ***题外话:*** **`写到这块刚好看到SOL在一月份 TRUMP 代币最火的时候的时候发生过链上和交易所价格相差20%的情况,老师们谁能告诉我下当时到底发生了什么,是哪里出了问题,20%啊,为啥我没赶上那个时候😄😄😄,不过如果能搞清楚,到底当时是那个环节出现了问题,其实对加深理解跨链跨交易所的价格同步机制肯定是有帮助的,老师们谁能帮我解答下`** ## 2.第三方任务网站任务 * Galxe [Arch Testnet: Enter the Spiderchain!](https://app.galxe.com/quest/AAAdNKfsWmWNBCnGuGYxcY/GCZ4etoNJ4) [Arch Testnet: Learn & Earn](https://app.galxe.com/quest/AAAdNKfsWmWNBCnGuGYxcY/GCFcTt1yGs) 既然属于Botanix生态下的项目,Botanix的其他任务也是必要的,如果你之前没有参与,可参考我的另外一篇文章 [Botanix 测试网交互](https://x.com/xuemiaolan/status/1901789656922083772) ## 3.社交任务 ### 常规三件套 * [X](https://x.com/intent/follow?screen_name=arch_swap) * [Discord](https://discord.gg/S6pacMN2) * TG 没有发现 ### 社区角色(DC) * 还没看到具体的信息,后期完善 ## 4.测试网交互 * **SWAP交易** 这个没什么好说,两两交换,大家想置换啥置换啥 ![image](https://hackmd.io/_uploads/B17GpWWAJe.png) * **Pool操作** * ***添加流动性*** 为啥我们前面讲了那么多,理解完文章前面那部分内容,这里是不是大概有了个概念了,你有四种不同的系统预设价格区间选择,当然这是系统根据当前价格预设的。选择了每一种区间你都也可以手工试着调整最小,最大的价格区间提供流动性,动动手试试,看看调整后apr的变化和两种货币对比例的变化。 * ***Narrow 窄*** * ***Common 普通*** * ***Wide 宽*** * ***Full 全*** ![image](https://hackmd.io/_uploads/S1rwJbrA1l.png) ![image](https://hackmd.io/_uploads/ryW-gbHAJg.png) ![image](https://hackmd.io/_uploads/rJpUxbrR1l.png) * ***增加流动性*** 这也没什么好说的,你之前创建了流动性池子,现在往里面添加更多的资金,获取更多收益 ![image](https://hackmd.io/_uploads/Sy_p-WHAkl.png) ![image](https://hackmd.io/_uploads/S17EMbS0yg.png) 这里记得要两次操作才能添加成功第一次是批准,第二次才是添加 * ***取消流动性*** 这个也没什么多说的就是从你提供的流动性里取出,你可以选择全部也可以取出一部分 ![image](https://hackmd.io/_uploads/Sk-G7-BAke.png) ![image](https://hackmd.io/_uploads/H1c4m-r01l.png) * ***创建新的pool*** 这个类似于还没有这样的token对的池子,你创建一个,不过我感觉该有的都有了,我还没有找到方法,大家如果找到了可以尝试 ![image](https://hackmd.io/_uploads/BJoGNbB0Jg.png) ## 5.写在后面      我自己也属于刚接触 web3 的门外汉,写这篇文章着实对我是有些挑战的,好在本来也就想在web3领域扎根下去,也是值得的,**`Back to the essence. Stay real. Documenting every step on-chain.`** 学了孤独哥的公式其实我不喜欢树,喜欢的是树的颜色,就是喜欢,感谢蜘蛛,助我成长。     我虽然刚参与社区时间不久,这里感谢下dc群里的各位老师们,特别是风趣幽默刚办完满月酒的兄弟 ***(孤独是病灬得治)aifei1 [X](https://x.com/chen150805)***     特别感谢群里***zzzzztai*** [X账号](https://x.com/pengyuyuan123) 芋圆大佬及leader Wade [BotanixLabsCN](https://x.com/BotanixLabsCN) 的指点推广。 也欢迎大家加入我们的X社群 [Botanix 中文 Yapper](https://x.com/i/communities/1896923200002596955) ***botanix测试网系列文章:其他系列后续依次推出,可关注 [Twitter](https://twitter.com/xuemiaolan)*** 1. **[botanix 测试网领水(faucet)汇总](https://x.com/xuemiaolan/status/1908504291478036505)** 2. **[Boanix 测试网交互](https://x.com/xuemiaolan/status/1901789656922083772)** 3. **[Botanix 交互之生态篇--Palladium 去中心化的稳定币发行协议 ](https://x.com/xuemiaolan/status/1902332151217172862)** 4. **[Botanix 之生态交互终级篇:一口气带你做完与蜘蛛合作的七个生态,50+TX 交互](https://x.com/xuemiaolan/status/1904520725836546197)** ## 参考链接 **动态费用:** [Dynamic Fees](https://algebra.finance/static/Algerbra%20Tech%20Paper-15411d15f8653a81d5f7f574bfe655ad.pdf) **无偿损失(IL):** https://blog.quickswap.exchange/posts/understanding-impermanent-loss-on-quickswaps-v3 https://docs.arch.fi/start/common-questions/impermanent-loss **无偿损失(IL)模拟器:** [uniswapv3simulator](https://defi-lab.xyz/uniswapv3simulator) ***DEX 终极解决方案Algebra*** [The Ultimate Algebra Solution for DEXs vs. Uniswap V3](https://medium.com/@crypto_algebra/the-ultimate-algebra-solution-for-dexs-vs-uniswap-v3-4832a39d8d82) **botanix中文社区请扫描加群:** ![image](https://hackmd.io/_uploads/Synddb7fee.png) ****** ![image](https://hackmd.io/_uploads/BJGfeprnkx.png) Write by Xuemiaolan | [Twitter](https://twitter.com/xuemiaolan) *botanix Sequoia Ambassador* 时间:2025年4月10日

    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