概念

WBTC 與 WETH 概念都是相同的,最主要目的就是將代碼打包成 ERC-20 的代幣模式使其好操作以及和 DAPP 作交互。 原生加密貨幣 ETH 是無法與 DAPP 作交互,交互的東西只能是智能合約,先建立這個概念,那麼假如我們今天持有 10 ETH,想要玩一些項目,例如作雙幣理財(ETH/USDT),簡單來說就是對池子提供流動性,而 DEX 或 CEX 會提供對應的利息給你。在 Ethereum 鏈上原生加密貨幣 ETH 無法進行交互,這時候會需要將 ETH 打包成 WETH (Wrapped Ether) 就是一份 ERC-20 的代幣來與 USDT (ERC-20) 與 DEX/CEX 作交互參與交易。

這張圖說明了原本 ETH 鏈上原生加密貨幣 ETH 無法與 ERC-20 作交互的情況。

這時候會發現那麼我使用 ETH 原生加密貨幣去購買例如柴犬幣跟換成 WETH 會有什麼差別?本質上操作邏輯是一樣的,但 WETH 合約的內容跟一般 ERC-20 代幣差別就是他與 ETH 是 1:1 掛鉤,不會有波動的問題,也就是這份合約能讓你隨時隨地將 ETH 和 WETH 作等價交換。

加密貨幣代幣 的差異

  • 加密貨幣(crypto currency): 鏈的原生貨幣,作為 gas fee 和 獎勵機制使用的貨幣。
  • 代幣(token): 透過智能合約(smart contract) 所 mint 出來的代幣項目。
    Chain crypto currency token
    Bitcoin BTC 不支持智能合約
    Ethereum ETH USDT/DOGE/WETH/MATIC
    Avalanche AVAX USDT/USDT.e/WAVAX
    Polygon MATIC USDT/USDC
    Arbitrum ARB USDT.e/WBTC

Swap

Token 其實還有很多,這邊只列出幾個,比較特別的是 MATIC 這個 token 原本是在 Ethereum 發行,但後來自己獨立出去開創 Polygon,所以才會有原生加密貨幣 MATIC 在 Polygon 上以及在 Ethereum 鏈上的 MATIC,其他的比較特別的部分則是 USDTUSDT.e 會這樣是因為假如你在 Ethereum 鏈上有 USDT 但不希望購買在 Avalanche 上的 USDT,希望直接從 Ethereum 取得,Tether 公司部署了支持原生在 Avalanche 上的 USDT 和支持可以從 Ethereum 橋接過來的 USDT.e

那麼要去哪邊作這樣子 Swap 行為?目前主流市面上的 DEX 例如著名的 Uniswap / 1inch / multichain 都可以作交互跨鏈,舉例來說 這邊我可以選擇交互成 USDT.e 或是: 看自己後續的操作和費用計算。

對比

BTC 他並不支持智能合約 WBTC 的話目前只能透過中心化的認證機構換,原理就是你給他 BTC 他發送給你 Ethereum 上的 WBTC 給你,如下表整理:

特點 WBTC WETH
代幣類型 ERC-20 代幣 ERC-20 代幣
包裝的資產 比特幣(Bitcoin) 以太幣(Ether)
中心化存管
存管機構 知名的中心化機構(例如BitGo) 不存在特定的中心化存管機構
提供者合約 中心化的金融機構負責WBTC代幣的發行和存管 智能合約負責WETH代幣的發行和轉換
可信性 可能存在中心化風險 基於以太坊區塊鏈的去中心化機制
傳統金融橋樑 提供與傳統金融體系的連接 提供以太坊網絡內的資產連接
流動性 受限於中心化的存管機構和交易所 基於以太坊生態系統的去中心化交易所和應用
去中心化金融(DeFi)應用支援 有限 廣泛支援DeFi應用
跨鏈交易 可能需要使用中心化的跨鏈解決方案 基於以太坊區塊鏈的原生資產,無需跨鏈解決方案

至此我們了解了 Wrapped ETH 機制和作用,以及主要用途,其實說穿了就是方便使用跟操作數位資產,往這個方向去思考就會非常容易理解。

參考資料:

這邊也將之前介紹 WETH 著名網站 weth.io 做了一個備份,原網站看起來維護公司已經結束了。

Put plainly, wETH is “wrapped ETH” but let’s start by introducing the players.

FIRST, THERE’S ETHER TOKEN

Ether or ETH is the native currency built on the Ethereum blockchain.

SECOND, THERE ARE ALT TOKENS

When a dApp (decentralized app) is built off of the Ethereum Blockchain it usually implements its own form of Token. Think Augur’s REP Token, or Bancor’s BNT Token.

FINALLY THE ERC-20 STANDARD

ERC-20 is a standard developed after the release of ETH that defines how tokens are transferred and how to keep a consistent record of those transfers among tokens in the Ethereum Network.

WHY YOU NEED WETH

ETH DOESN’T CONFORM TO ITS OWN ERC-20 STANDARD.

As mentioned above, ETH was the proto-token of the Ethereum Alt tokens, which means it was built before the ERC-20 sta

WRAPPING ETH ALLOWS YOU TO TRADE DIRECTLY WITH ALT TOKENS.

The reason you need wETH is to be able to trade ETH for other ERC-20 tokens on decentralized platforms like Radar Relay. Because decentralized platforms running on Ethereum use smart contracts to facilitate trades directly between users, every user needs to have the same standardized format for every token they trade. This ensures tokens don’t get lost in translation. READY TO WRAP?

SO THIS IS AWKWARD…YOU DON’T ACTUALLY WRAP ANYTHING.

When you “wrap” ETH, you aren’t really wrapping so much as trading via a smart contract for an equal token called wETH. If you want to get plain ETH back you need to “unwrap” it. AKA trade it back for plain ETH. THE FUTURE OF WETH

HOPEFULLY, THERE’S NO FUTURE FOR WETH.

Steps are being taken to update the ETH codebase to make it compliant with its own ERC-20 standards. Weird, we know. Additionally, ERC-20 may be replaced by other standards as problems and solutions arise. There’s already a ERC223 in the works.