DeFi Explained: Swaps, Lending and the Risks Between Them

Decentralized finance uses blockchain contracts to coordinate trading, lending and other financial activities. Follow the movement of assets and permissions to understand what you are trusting at each step.

Connected vaults and exchange arrows illustrating decentralized finance

Follow a swap from wallet to result

Choose the network

Use a wallet, asset version and fee token supported by the protocol. A token on another network does not automatically become usable here.

Inspect the quote

Check the input, expected output, minimum received, price impact, route and network fee. Liquidity changes; the displayed quote is not an unconditional promise.

Review permissions

If a token approval is needed, verify the spender and allowance before the swap. Connecting a wallet, approving spending and executing the swap are separate actions.

Verify the outcome

Check transaction status and actual received assets in the correct explorer. Failed transactions can still cost a network fee. Review permissions you no longer need.

Where the return comes from

Activity Possible source of return Main exposures
Lending Interest paid by borrowers and, sometimes, incentive tokens. Bad debt, collateral movements, interest-rate changes and contract risk.
Liquidity provision Swap fees and, sometimes, incentive tokens. Price changes, impermanent loss, trading activity and contract risk.
Staking Protocol rewards for securing a proof-of-stake network. Validator performance, penalties, withdrawal rules and any intermediary.

A product called “staking” may actually be lending or a custodial yield program. Read what happens to the assets. Incentive rewards paid in a falling token can lose value even when the displayed token balance grows.

Worked example: collateral can become insufficient

In a simplified lending position, collateral is worth $1,000, debt is $500 and the liquidation threshold is 80 percent. Health factor = collateral value × threshold ÷ debt. Initially: $1,000 × 0.80 ÷ $500 = 1.60.

If collateral falls to $600 while debt stays $500, the result is 0.96. Under a rule that permits liquidation below 1, part or all of the position can be liquidated, with costs. This is a hypothetical model, not a quoted platform setting.

Interest, oracle prices, multiple collateral assets and protocol-specific rules change the real calculation. A reading above 1 is not a guarantee against a rapid market move. Understand the exit and liquidation rules before borrowing.

Check the whole dependency chain

Interface and wallet

Verify the domain, software source and signing request. A legitimate protocol name can be copied by a phishing site.

Contract and governance

Read audits, permissions and upgrade controls. An audit reduces some uncertainty; it cannot guarantee safety or cover every later change.

Prices, bridges and collateral

Identify oracle dependencies, bridged assets and collateral concentration. A failure elsewhere can affect a protocol that otherwise operates as designed.

Buying a DeFi token is not the same as using DeFi

A governance or utility token does not automatically give you protocol revenue, a deposit claim or protection from loss. Research token rights, supply changes and actual use separately from the protocol’s popularity. DeFi runs across multiple networks; Ethereum’s transition to proof of stake was completed in 2022.

Put this lesson into practice

Practice: trace one hypothetical swap, list every permission and cost, then explain how you would exit. Use the liquidity and wallet lessons before trying an unfamiliar protocol. Our exchange fee calculator estimates exchange trading costs; it does not model DeFi gas, lending risk or liquidation.

Moving from an exchange to a wallet

An exchange purchase is only the funding step. Verify the withdrawal network and destination separately before interacting with a protocol.

Coinbase

Some links are affiliate links. We may earn a commission if you sign up or transact through them.

Sources and verification

Reviewed 25 October 2026. Examples are hypothetical. Check current provider instructions, supported networks and terms before acting.

Cryptocurrency wallet and keys illustrating secure access and recovery

A little groundwork goes a long way

Before your next purchase or transfer, understand who controls access, where your crypto is going and what the trade will actually cost.

Protect access to your crypto

An exchange account and a self-custody wallet need different safeguards. Protect exchange logins with a unique password and strong two-factor authentication. For self-custody, your recovery backup is what lets you restore access.

Keep recovery words offline and private. A support agent or website asking for them is a reason to stop.

See a recovery example

Your phone breaks. An exchange may help you recover your account after identity checks. A self-custody wallet cannot reset your recovery phrase. Check your wallet’s official backup instructions before relying on it.

Choose the right transfer network

The asset, token version and network must be supported at the destination. A familiar ticker or a matching address format is not enough. Read the receiving platform’s deposit instructions before selecting a withdrawal network.

Check the address, any required memo or tag, fees and minimums. Consider a small test transfer first.

See a network example

Your destination accepts USDC on Ethereum. Selecting a cheaper network at the sending exchange does not make it an Ethereum transfer. Use a network both ends support; an ordinary withdrawal does not bridge tokens.

Understand the price you pay

Trading fees are only part of the cost. The spread, available liquidity and withdrawal charges also matter. A market order prioritizes execution; a limit order controls the price but may remain unfilled or fill only partly.

Check the order preview and the amount you will receive, then compare the full cost of your intended purchase and withdrawal.

Work through a cost example

Hypothetical example: a $200 trade with a 0.1% trading fee costs $0.20 in trading fees. A separate $5 withdrawal fee brings those charges to $5.20. Spread or slippage may add more; these are not quoted exchange rates.