آموزش صرافی غیرمتمرکز Uniswap
آموزش کار با Uniswap، نحوه عملکرد صرافیهای غیرمتمرکز و استفاده امنتر از DEX.
About this Uniswap DEX tutorial
This tutorial explains how to use Uniswap as a decentralized exchange, connect a wallet, select the correct network, import tokens by contract address, understand liquidity, adjust swap settings, and complete buy and sell transactions.
Overview
Uniswap is a decentralized exchange used to swap crypto tokens without a centralized order book. The tutorial demonstrates the full swap workflow using MetaMask, EVM networks, WalletConnect, token selection, liquidity checks, slippage settings, transaction confirmation, gas fee adjustment, approval transactions, and blockchain explorer verification.
برای اطلاعات رسمیتر، اپلیکیشن Uniswap را بررسی کنید؛ رابط رسمی Uniswap برای سواپ توکنها.
Step-by-step tutorial outline
Understand what a DEX is
The tutorial starts by explaining that a decentralized exchange allows users to swap crypto tokens directly through blockchain-based liquidity pools.
Open the Uniswap app
The tutorial uses the Uniswap web app and demonstrates the workflow from a desktop browser with MetaMask.
Choose the correct network
Uniswap supports multiple networks, and the connected wallet must be on the same network selected in the Uniswap interface.
Add EVM networks if needed
The tutorial shows that networks can be added manually or through tools such as Chainlist before using them with MetaMask and Uniswap.
Connect a wallet
Users can connect MetaMask or other supported wallets. Mobile wallets can often connect using WalletConnect and a QR code.
Select input and output tokens
The top token is the token being spent, and the bottom token is the token being received. Supported tokens can be searched, and custom tokens can be imported by contract address.
Check liquidity before swapping
A token must have liquidity on Uniswap for the selected network. If there is no liquidity, the swap cannot be completed.
Review slippage and deadline settings
The tutorial explains slippage tolerance and transaction deadline settings, including why users may need to adjust slippage if a swap fails.
Confirm the swap transaction
The transaction overview shows the expected output, price impact, liquidity provider fee, and other swap details before confirmation.
Understand approval and sell transactions
When selling tokens, users may need to complete an approval transaction before the final swap transaction.
Verify the transaction
After confirmation, the transaction can be checked in MetaMask and on a blockchain explorer.
برای ادامه یادگیری، آموزشهای بیشتر دیفای را در بیت دمی ببینید.
Key takeaways
- Uniswap is a decentralized exchange for swapping tokens through liquidity pools.
- The wallet network must match the network selected in Uniswap.
- MetaMask, WalletConnect, and many other wallets can be used with Uniswap.
- Tokens can be selected from the official token list or imported by contract address.
- A token must have liquidity on Uniswap for the selected network before it can be swapped.
- Slippage controls how much price movement is acceptable before a transaction confirms.
- Selling a token usually requires an approval transaction before the final swap.
- Transactions should be checked in the wallet and on a blockchain explorer.
در بخشهای عملی این آموزش، منبع مستندات Uniswap هم میتواند مفید باشد؛ مستندات رسمی پروتکل Uniswap، سواپ و نقدینگی.
Security notes
- Use the official Uniswap URL and avoid fake DEX websites.
- Always verify the network before connecting a wallet or swapping.
- Only import token contract addresses from trusted sources.
- Be careful with tokens that have no liquidity or very low liquidity.
- Review price impact, slippage, and fees before confirming a swap.
- Do not approve unlimited token spending unless you understand the risk.
- Check transaction details before signing in MetaMask or any wallet.
Tools and topics mentioned
- Uniswap
- MetaMask
- WalletConnect
- Chainlist
- EVM networks
- BNB Chain
- Avalanche C-Chain
- USDT
- Chainlink
- Token contract address
- Blockchain explorer
- Liquidity pool
برای بررسی بیشتر، به WalletConnect مراجعه کنید؛ پروتکل اتصال کیف پول که توسط بسیاری از کیف پولهای Web3 پشتیبانی میشود.
Transcript summary
The tutorial explains how decentralized exchanges work, opens the Uniswap app, connects MetaMask, selects and adds EVM networks, connects wallets through MetaMask or WalletConnect, chooses input and output tokens, imports custom tokens by contract address, checks whether liquidity exists, reviews slippage and deadline settings, confirms swaps, adjusts gas fees, handles approval transactions when selling tokens, and checks completed transactions in MetaMask and on a blockchain explorer.
Frequently asked questions
What is Uniswap used for?
Uniswap is used to swap crypto tokens through decentralized liquidity pools without using a centralized exchange account.
Do I need MetaMask to use Uniswap?
MetaMask is one common option, but Uniswap also supports other wallets, including wallets connected through WalletConnect.
Why does my wallet network need to match Uniswap?
A swap happens on one blockchain network at a time, so your wallet must be connected to the same network selected in the Uniswap interface.
Why does Uniswap say there is no liquidity?
This means the selected token pair does not have enough liquidity on Uniswap for that network, so the swap cannot be completed there.
What is slippage in Uniswap?
Slippage is the amount of price movement you are willing to accept between submitting and confirming a swap transaction.
Why do I need to approve a token before selling it?
Token approval gives the Uniswap smart contract permission to use the token for the swap. This approval transaction is separate from the final sell transaction.