Hướng dẫn người dùng: Hoán đổi
Does this article need to be translated?
Submit translations, corrections, and suggestions on GitHub, or reach out on our Community forums.
MetaMask Swaps is a MetaMask feature that allows you to do exactly that: swap one cryptocurrency token for another (for more on ERC-20 tokens and the difference between these and NFTs, see our user guide). Tính năng này vô cùng tiện lợi và dễ dùng, giúp giảm bớt đáng kể các bước phải làm và mức độ tiếp xúc với các hợp đồng thông minh của bên thứ ba, để có được các token mà bạn quan tâm.
You can use MetaMask Swaps either on MetaMask Extension, MetaMask Mobile, or MetaMask Portfolio. Here are the networks Swaps is currently available on:
- Ethereum Mainnet
- BNB Smart Chain
- Avalanche C-Chain
- Polygon
- Optimism
- Arbitrum
- zkSync Era (Extension and Mobile only)
- Linea
- Base (Portfolio and Extension only)
Những điều cần biết trước khi hoán đổi:
- Even if a token complies with the ERC-20 standard, you shouldn't buy or obtain a token without researching it first. One of the novelties of cryptocurrencies and decentralized finance is their programmatic nature; a token isn't necessarily a static asset; it may have functions that can affect how it is used, or how it affects your wallet — like this, for example. Of course, there are other less malicious caveats: for example, some tokens you can acquire, but to gain the utility intended from them, you need to stake them on a specific platform.
- Slippage is the amount of change between the price you click on and the final transaction price that MetaMask Swaps will tolerate. Given the highly liquid and fluctuating nature of decentralized finance and cryptocurrencies, prices can change from second to second. This is why Swaps allows a little bit of a difference between the price you agree on and the final price, to ensure your transaction goes through — but not too much, in order to protect you from sudden spikes or drops.
- Custom tokens is what MetaMask calls tokens that aren't common or widespread enough to be in MetaMask's standard list of tokens, which are detected by default when you have Ethereum mainnet (and a handful of other popular networks) selected as your network in MetaMask. If you swap some tokens into your wallet, but don't see them (after a few minutes — remember, blockchain is fast, but it's not instantaneous), try adding the tokens manually.
- Các bài viết hỗ trợ của chúng tôi chỉ dành cho Hoán đổi MetaMask. Nói cách khác, MetaMask hỗ trợ việc hoán đổi được thực hiện thông qua nút Hoán đổi của MetaMask. If you are performing swaps directly on a different platform or another DEX, MetaMask may provide some general orientation or guidance, but it should not be considered definitive; reach out to the support team or community for the exchange or platform where you are swapping for assistance.
Hãy nhớ: MetaMask chỉ là trung gian khi bạn hoán đổi!
Khi bạn sử dụng Hoán đổi của MetaMask, đừng quên rằng MetaMask đang đóng vai trò nền tảng tổng hợp thanh khoản hoặc trung gian: chúng tôi tổng hợp các báo giá và cung cấp cho bạn giá có lợi nhất. From there, you can decide whether or not to proceed with the transaction with the platform/liquidity provider at hand. MetaMask does not provide the liquidity, execute the trade, or sell you tokens.
Sẵn sàng tìm hiểu sâu?
Không quan trọng nếu bạn đang dùng MetaMask ở Tiện ích mở rộng hay Thiết bị di động, bạn cũng chỉ mất vài cú nhấp chuột - hay vài cái chạm - để có được token bạn muốn.
You can also use Swaps in MetaMask Portfolio. The steps are almost identical to Swaps in MetaMask Extension. In any case, the concepts listed below apply to all platforms.
On the main MetaMask screen, look for a button marked 'swap'. Nhấn vào nút đó!
Màn hình chính của Hoán đổi sẽ hiện lên cho bạn:
- Tiện ích mở rộng
- Portfolio
- Di động
Chuẩn bị để Hoán đổi
- Trước hết, hãy chọn token mà bạn có và sẵn sàng "chi tiêu" bằng cách sử dụng trình đơn thả xuống ở trên cùng.
- Xa hơn bên dưới, hãy chọn token mà bạn muốn có bằng cách sử dụng trình đơn thả xuống thứ hai.
- Điều chỉnh số lượng token đầu tiên lên hoặc xuống cho đến khi bạn thấy thoải mái với số token bạn chi tiêu và số token bạn thu được.
Bạn sẽ thấy ứng dụng này thực hiện một quá trình tìm kiếm giá tốt nhất. Quá trình này là bí quyết giúp Hoán đổi MetaMask trở thành dịch vụ hoán đổi rẻ nhất và tốt nhất trên thị trường. Có rất nhiều thứ xảy ra đằng sau trong lúc bạn đang xem quá trình tìm kiếm Hoán đổi.
Đầu tiên, Hoán đổi tìm kiếm trong tất cả các sàn giao dịch token phi tập trung và các giao thức hoán đổi token để tìm cho bạn tỷ giá có lợi nhất.
At the same time, it's running test transactions, checking to make sure that if you do end up submitting a transaction, that it's likely to go through — and if not, those options are filtered out. MetaMask is saving users here from the pain of a failed transaction: with Ethereum mainnet gas fees and the complexity of token smart contracts, a failed transaction adds a significant financial injury to the insult of an incomprehensible error code. Tỷ lệ thất bại của Hoán đổi rất thấp và chúng tôi đang thực hiện những cải tiến để khiến nó gần như không còn nữa.
Một vài người dùng tinh mắt sẽ nhận ra trên màn hình trước đó, ở góc dưới bên trái, có đề cập đến "mức trượt giá 2%". Trượt giá là một tham số khác mà Hoán đổi đang sử dụng theo hướng có lợi cho bạn và nó được giải thích chi tiết hơn ở trên.
Sau khi tính toán số liệu DeFi xong, bạn nhận được màn hình báo giá:
Thực hiện Hoán đổi
Có rất nhiều thứ đang diễn ra ở đây, nhưng đừng hoảng hốt. First of all, up at the top, you'll see that Swaps is continuing to do all the work that we mentioned previously on an ongoing basis, ensuring that you're getting the most up-to-date price and availability.
The main feature is in the middle of the screen: the amount of tokens that you are going to acquire (keeping in mind slippage) as of the last quote. Bạn có thể xem các thông tin chi tiết như tỷ giá và có thể chọn tìm hiểu sâu hơn về cách báo giá được tính cũng như các cài đặt gas nâng cao. That's a whole topic in and of itself (start here), but that's the amount the network is going to charge, plus MetaMask's fee.
If you're ready to go, smash that Swap swiper across the screen!
Tại sao token đã hoán đổi chưa hiển thị trong ví của tôi?
Cũng như với tất cả giao dịch chuỗi khối, hoán đổi không xảy ra ngay lập tức, nhưng bạn sẽ sớm thấy token của mình trong ví. If they're uncommon tokens, or for whatever reason they're not showing up in your wallet, follow our instructions here to add them.
Send and swap crypto at the same time
Whenever you're sending funds from one account to another, you can choose which token you want to spend and select the token the other person wants to receive. This way, you won't have to first swap one token for another and then create another transaction to send it someone's way; saving you both time and gas.
Để sử dụng tính năng "Gửi & Hoán đổi" của MetaMask:
- Open your MetaMask interface and click 'Send'.
- Select the address you wish to send funds to.
- Choose the asset you wish to send from your account.
- Choose the asset you wish the recipient account to receive.
- Review the quote, and confirm your transaction!
This feature is currently available on MetaMask Extension, with MetaMask Mobile and Portfolio coming soon. Please note that this method does not yet support Smart Transactions.
Swap to an exact output amount
Now, instead of only choosing how much of a token you want to swap, you can specify the exact amount of funds you want the recipient to receive. This automatically calculates and fills in the necessary amount of tokens you need to send.
This feature is currently available on MetaMask Portfolio, with MetaMask Extension and Mobile coming soon.
Nhập Cụm Hoán đổi
One of the truly incredible things about MetaMask, and one of the reasons that it can offer you such an unparalleled token-swapping experience, is that it is built to be network-agnostic: as long as the blockchain network you're connecting to is Ethereum-compatible, you can configure MetaMask to work on it. So what?
So you can use MetaMask swaps on other networks, too. You don't have to be on Ethereum mainnet; you can use Swaps on Polygon, for example. As other sidechains and custom networks come online, try it out. Swaps enables you to trade tokens on any Ethereum-compatible network, right from your wallet, without having to interface directly with third-party platforms, thus lessening your exposure to potentially hackable or malicious smart contracts.
You even have the ability, through Swaps, to acquire non-Ethereum tokens on mainnet. But remember: always navigate the multiverse through bridges and portals.
Câu hỏi thường gặp
Tại sao một số token bị mất khi thực hiện hoán đổi MetaMask?
Làm thế nào để xem giá tại thời điểm mua token khi mua qua Hoán đổi MetaMask
Tại sao hoán đổi MetaMask của tôi bị thất bại?
Làm thế nào để tôi hủy hoán đổi đang chờ xử lý?
Tại sao nút Hoán đổi MetaMask không khả dụng / bị tô xám?
[I did a swap, but received fewer tokens or less fiat value than I expected. Tại sao?