Lesson 10 of 15
DEX basics: how to use one safely
On a DEX you trade straight from your own wallet, and nobody can undo a confirmed action. In this lesson you go through every request a DEX shows you, on a practice exchange with no money and no keys.
In this lesson you will learn
- Check the address of a DEX before you connect
- Explain what connecting a wallet allows and what it does not allow
- Tell a sign-in message from a transaction that moves tokens
- Set your own amount in a token permission instead of “unlimited”
- Explain margin, leverage and liquidation with numbers
- Disconnect a site and revoke its permissions when you finish
What you need
- The completed lessons of module 2: your own wallet and how to send tokens
- 20 minutes without rushing
- The DEX trainer: a practice exchange with no money and no keys
Words to know
- Connect wallet
- Letting a site see your wallet address and balances, like showing your mobile-money number to a shop. It does not let the site take anything.
- Signature request
- A window in your wallet that asks you to sign a message or a transaction. Your signature is your “yes”, and it cannot be taken back.
- Token permission (approval)
- Your permission for a smart contract to move a certain amount of one of your tokens. It stays active until you revoke it.
- Margin
- The money you put in as a deposit for a leveraged trade. If the trade goes badly, you lose this deposit.
- Leverage
- A multiplier on your trade, for example 2× or 10×. It makes both profit and loss bigger by the same multiplier.
- Liquidation
- The forced closing of a leveraged trade when the loss reaches your margin. You lose the margin, and the trade is over.
Step by step
Step 1
Check the site address
Open the DEX from your bookmark, as you learned in the previous lesson. Before you tap anything, look at the address bar 1. In the trainer it is dex-trainer.example. Read the domain from right to left: the word before the ending is the owner.
Look for the “Connect wallet” button 2, but do not tap it yet. A copied site looks exactly like the real one. The only thing it cannot copy is the domain. Words like app, bonus, claim, airdrop or official added to the name are warning signs.
The trainer shows a hint 3: on a DEX the exchange does not hold your coins. That is true, and it also means that nobody can return them if you confirm the wrong thing. So the next steps are about reading every window carefully.
Never do- Do not open a DEX from an ad or a link in a chat
- Do not connect to a site whose domain you have not checked
Try it nowOpen the DEX trainer and read the domain of the first screen from right to left.
dex-trainer.exampleAddressdex-trainer.example1Practice DEXConnect wallet2Your coins stay in your wallet. The exchange never holds them.
3The trainer's address, the connect button and a reminder about who holds your coins.Practice picture, not a real app Step 2
Connect the wallet and know what it allows
Tap “Connect wallet”. Your wallet app opens and shows a connection request. At the top you see which site is asking 1. Check that it is the same domain you saw in the browser.
The wallet lists what the site will be allowed to do 2: see your address, see your balances and ask you for confirmations. That is all. Connecting is like showing your mobile-money number to a shop. The shop can see it and send you a request, but it cannot take money from your account.
What connecting does not allow 3: the site cannot move your tokens, cannot see your recovery phrase and cannot sign anything for you. Everything that moves tokens comes as a separate request that you must confirm. If a site ever asks you to type your recovery phrase to “connect” or “sync”, close it. It is a scam.
TipIf the site name in the wallet window is different from the one in the browser, cancel. Your wallet shows the real name of the site that is asking.
ImportantNo real DEX ever needs your recovery phrase. A site that asks for it is stealing your wallet.
WalletConnection requestSitedex-trainer.example1- See your address
- See your balances
- Ask you to confirm actions
- Move your tokens
- See your recovery phrase
ConnectCancelConnecting shows your address. It does not give the site your tokens.Practice picture, not a real app Step 3
Read a sign-in message
After connecting, many DEX sites ask you to sign a message. Your wallet shows the site 1 and the message text 2. A normal sign-in message says something like: “Sign in to dex-trainer.example. This request will not trigger a transaction or cost any fee.”
This kind of signature proves that the address is yours, the way you sign a delivery slip to show that you are the person named on the parcel. It costs no fee and moves nothing by itself.
Tap “Sign” 3 only if the site is the one you opened and the text is short and clear. If the message is a long list of strange letters and numbers, or you do not understand it, tap “Cancel”. Cancelling is always safe: nothing happens, and you can try again later.
TipWhen in doubt, tap “Cancel”. A real site will simply ask again. A scam site will push you.
WalletSignature requestSitedex-trainer.example1Sign in to dex-trainer.example. This request will not trigger a transaction or cost any fee.
2Sign3CancelA sign-in message: the site, a short clear text and the buttons.Practice picture, not a real app Step 4
Tell a message from a transaction
There are two kinds of requests, and they look similar. A message 1 only proves who you are. A transaction changes something on the blockchain: it sends tokens, swaps them or gives a permission. A transaction usually shows a network fee 2, because the network charges for every change.
Read the main line of every transaction 3. It says what will happen: “Send 50 USDC”, “Swap”, “Allow spending USDC”. If the main line does not match what you wanted to do, cancel. You wanted to sign in, and the wallet says “Allow”? Cancel.
Be careful with one special case: some messages are not harmless. A message called “Permit” can give a contract the right to move your tokens, with no fee at all. In the lesson about permissions you will learn to recognise it. For now, remember: the words “Permit”, “Approve” or “Allow” mean your tokens are involved.
Do- Read the main action line of every request
- Cancel if the action does not match what you wanted
Never do- Do not confirm several windows in a row without reading each one
WalletSign-in messageNo fee, moves nothing1Transaction requestNetwork fee0.02 USDC (paid in ETH)2ActionAllow spending USDC3ConfirmA message proves who you are. A transaction changes something and costs a fee.Practice picture, not a real app Step 5
Limit the token permission
Before your first trade with a token, the DEX asks for a permission to move that token. In the trainer it is USDC. Often the wallet fills in “Unlimited” by default 1. That means the contract can move all your USDC, today and in a year, without asking again.
The warning 2 explains the risk. If the contract is attacked, or if it was a fake contract from the start, every wallet with an unlimited permission can lose all of that token. This is how Wei lost his 300 USDC.
Tap “Edit” or “Use custom amount” and type your own amount 3: exactly what this trade needs, for example 50 USDC. Then confirm. Next time you trade, the DEX will ask again. That costs one more small fee, but it protects everything else in your wallet.
Do- Type the exact amount you plan to trade
- Check that the spender is the DEX contract you expected
Try it nowIn the DEX trainer, open the permission screen and change “Unlimited” to 50 USDC.
WalletAllow spending USDCSpending limitUnlimited1This contract will be able to move all your USDC.
2Custom amount50 USDC3ConfirmReplace “Unlimited” with the amount this one trade needs.Practice picture, not a real app Step 6
Understand margin, leverage and liquidation
Some DEX sites offer trading with leverage (also called futures or perpetuals). You put in a deposit called margin 1, and the site lets you trade a bigger amount. Look at an example: your margin is 50 USDC, and the leverage is 2× 2. Your trade is now worth 100 USDC.
If the price goes up 10%, your 100 USDC trade gains 10 USDC. That is 20% of your 50 USDC, because leverage doubles the result. If the price goes down 10%, you lose 10 USDC, also 20% of your margin. Leverage makes losses bigger in exactly the same way as gains.
The liquidation price 3 is the price at which the exchange closes your trade by force, because your loss has eaten your margin. At 2× this happens after a fall of roughly 45–50%. In the example, ETH costs 2,000 USDC when you open the trade, so the liquidation price is about 1,050 USDC. If the price touches that level, even for a minute, you lose the 50 USDC, and the trade is over. Fees 4 for opening, closing and keeping the trade open make this happen even a little earlier.
ImportantThis lesson explains how the tool works. It is not advice to trade. Never use money you need for food, rent or school.
dex-trainer.example/tradeMargin50 USDC11×2×5×10×2Trade size100 USDCLiquidation priceabout 1,050 USDC per ETH3FeesOpen + close + funding4A sharp price move can wipe out your whole margin.
Margin, leverage, liquidation price and fees: read all four before you trade.Practice picture, not a real app Step 7
Know why most beginners lose with leverage
Now look at 10× leverage with the same 50 USDC margin 1. Your trade is worth 500 USDC. A price fall of just 10% is a loss of 50 USDC: your whole margin. In practice the liquidation comes earlier, at about 9%, because of fees 2. Crypto prices often move 10% in one day, sometimes in one hour.
This is why most beginners who trade with leverage lose money. A small move against them closes the trade before the price has time to come back. Then they try again with more money to “win it back”, and lose again.
If you decide to learn leverage at all, the honest path is slow 3: practise first in the trainer, then use only a small amount you are fully ready to lose, use low leverage, and never add more money to save a losing trade. Many careful people decide not to use leverage at all, and that is a good decision too.
Never do- Do not trade with money you borrowed or need for daily life
- Do not raise the leverage to win back a loss
- Do not trust anyone who promises safe profit with leverage
Same margin, different leverage10× trade size500 USDC1Price falls 10%−50 USDC = all your marginLiquidation with feesabout −9%2- Practise in the trainer first
- Only money you can lose
- Never add money to save a losing trade
At 10×, a normal price move can close your trade and take your whole margin.Practice picture, not a real app Step 8
Disconnect the site and revoke permissions
When you finish, closing the browser tab is not enough. The site stays connected, and the permission stays active. Open your wallet settings and find “Connected sites”. Next to dex-trainer.example tap “Disconnect” 1. Now the site can no longer see your address.
Disconnecting does not cancel a token permission. That is a separate list, often called “Token approvals” or “Permissions”. Find USDC for the DEX contract and tap “Revoke” 2. Revoking is a small transaction, so it costs a small network fee.
Do both every time you are done with a site you do not use often. It takes 2 minutes and closes the doors you opened today. In the last lesson of this module you will learn to check all your permissions at once.
TipCheck your connected sites and permissions once a month, and remove everything you no longer use.
Try it nowFinish the DEX trainer: disconnect the site and revoke the USDC permission on the last screen.
Wallet settingsConnected sitesdex-trainer.exampleConnected today1DisconnectToken approvalsUSDC — 50 USDCSpender: DEX contract 0x7a3f…c91e2RevokeDisconnect the site and revoke the permission: two separate actions.Practice picture, not a real app
Practise now: 15 minutes in the DEX trainer
Tick each task when you have done it.
Common mistakes
MistakeTapping “Confirm” on every window without reading
Do this insteadRead the site and the main action line of each request. Cancel if it does not match.
MistakeLeaving the default “Unlimited” permission
Do this insteadType your own amount: exactly what the trade needs.
MistakeTyping the recovery phrase to “connect” a wallet
Do this insteadNo DEX ever needs it. Close the site at once.
MistakeUsing high leverage to “win back” a loss
Do this insteadLeverage makes losses bigger. Stop, and never add money to save a losing trade.
MistakeJust closing the tab when you finish
Do this insteadDisconnect the site and revoke the permission in your wallet.
Check yourself
Choose an answer. You will see at once if it is right.
1What does connecting your wallet to a DEX allow the site to do?
Show the answer
See your address and ask you for confirmations. Connecting only shows your address and balances. Every action that moves tokens needs your separate confirmation.
2A sign-in window says “Allow spending USDC”. What do you do?
Show the answer
Cancel: the action does not match what you wanted. A sign-in should not touch your tokens. When the action line does not match your goal, cancel.
3Why is it better to set your own amount than “Unlimited”?
Show the answer
If the contract is attacked, only that amount is at risk. An unlimited permission puts all of that token at risk. A limited one puts only the amount you chose at risk.
4Your margin is 50 USDC with 10× leverage. The price falls about 10%. What happens?
Show the answer
The trade is liquidated and you lose your margin. At 10× the trade is worth 500 USDC. A 10% fall is 50 USDC, your whole margin, and fees make it happen even earlier.
5You finished using a DEX. Is closing the tab enough?
Show the answer
No: disconnect the site and revoke the permission in your wallet. The connection and the permission stay in your wallet until you remove them. They are two separate actions.
Remember
- Open a DEX from your bookmark and check the domain before you connect.
- Connecting shows your address; it never needs your recovery phrase and does not move tokens.
- Read the site and the main action of every request. When in doubt, cancel.
- Replace “Unlimited” with the amount the trade needs.
- Leverage makes losses as big as gains; most beginners lose money with it.
- When you finish, disconnect the site and revoke the permission: two separate actions.
The Academy never asks for your recovery phrase, private keys, passwords or card. Anyone who asks for them in Vantemio’s name is a scammer.