Imagine you have 40 USDC in your wallet. You can send it to someone, swap it for USDT, swap it for bitcoin or put it into a protocol to try to earn interest. On screen, it all looks like another button to press. But each operation does something different with your money.

What is a smart contract?

A smart contract is a program that runs on a blockchain. Think of a vending machine. You choose a product, the machine checks your payment and, if everything is in order, it dispenses what you asked for. In a swap, for example, the program can check that you’ll receive at least the minimum amount you agreed to.

It follows the rules in the code. It has no way of knowing whether the quote is good for you. If there’s a bug in the code, or if you give a malicious contract permission to move your tokens, you could lose money. How smart contracts work

What is a swap?

A swap exchanges one asset for another. You give USDC and receive USDT, for example. Both aim to track the US dollar, but they’re different tokens. If you simply send USDC to another wallet on the same network, it stays USDC. Only the receiving address changes.

You can also swap USDC for native BTC, which involves two networks. You send USDC on the network where you hold it, and a compatible swap route delivers BTC on the Bitcoin network to your destination address. For example, USDC leaves the Base network and BTC arrives in your Bitcoin wallet. An ordinary USDC transfer won’t make that swap. Example of a protocol that swaps native assets across networks

What is a liquidity pool?

Imagine an automated currency exchange with two drawers, one full of USDC and the other full of USDT. If you want to swap USDC for USDT, you put USDC into the first drawer and take USDT from the second. You don’t have to wait for someone to come along who wants to make the opposite trade. The USDT is already there, ready to use. This shared reserve of tokens is the liquidity pool.

In practice, other people stock the drawers and may receive a share of each swap fee. If you’re just swapping, you give the token you have and get the one you want. USDC goes into the pool and USDT comes out. The contract works out how much to give you based on the pool’s rules.

Why does the size of the reserve matter? Imagine two pools with the same starting quote. In one, your swap takes out only a small part of the USDT available. In the other, it takes out a much larger share. In many pools, taking a larger share of the reserve gives you a worse average price for the swap. That means the same 40 USDC may buy less USDT in the smaller pool. This is price impact. Your own swap changes the price you pay. How liquidity affects the price

How do you read the swap preview?

Imagine your wallet shows these made-up figures.

  • You give 40 USDC.
  • You receive at the current quote 39.95 USDT.
  • You receive at least 39.80 USDT.
  • Estimated network fee of US$0.08.

The estimate may change if other people trade before you. The minimum is the limit you’re willing to accept. If the swap can only deliver 39.75 USDT, which is below that minimum, it won’t go through. If the network has already processed the attempt, it may still charge the fee.

If you want to receive native BTC, check that the preview shows BTC as the asset, Bitcoin as the destination network and your Bitcoin wallet address. Also check how much will arrive after costs. Don’t just go by the coin’s name or icon.

Where does DeFi fit in?

DeFi stands for decentralised finance. It’s the name for financial services that use programs on a blockchain to carry out operations such as swaps and loans. You use your wallet to check and sign the operation. The protocol carries it out. Introduction to DeFi

Aave, for example, has lending pools. The idea of a shared reserve is the same, but here it’s used for lending. When you deposit USDC, it becomes available to people who want to borrow USDC. Borrowers normally put up collateral, and some of the interest goes to the people who supplied the reserve. Simply holding USDC in your wallet doesn’t earn that interest. In the protocol, the rate varies, withdrawals depend on funds being available and a bug in the contract can cause losses. Depositing on Aave · How withdrawals work

Before you sign, try explaining the operation out loud. ‘Am I sending, swapping or putting my money to work? What will arrive and on which network? How much will I pay? What permission am I granting?’ If you’re unsure of any answer, don’t confirm.

Want help understanding what your wallet is showing before you do anything with your money? In the consultation, I help you understand the operation, compare your options and choose what makes sense for your goal.