Bỏ qua tới nội dung chính

Exness hoàn 100% hoa hồng IB

Không khoản nào bị trừ trước khi về tài khoản bạn

EA và indicator miễn phí

XM hoàn 90%, nạp tối thiểu 5 USD

What is DeFi?

DeFi, short for decentralized finance, is trading and lending run by smart contracts on a public blockchain instead of by a company. You use it straight from your own wallet, with no account to open, at any hour. The same code that makes it open to anyone also makes its mistakes and losses final.

Nội dung này hiện chỉ có bản tiếng Anh.

5 phút đọcAutoFXRebate

Say you want to swap 1,000 USDC for ether. On an exchange, you first open an account, usually pass identity checks, and deposit the coins. The company then holds them while you trade.

In DeFi, you open a website, connect your wallet and send one transaction to a contract that does the swap. No company holds your coins at any point.

DeFi, short for decentralized finance, is the name for financial services built this way: as smart contracts on a public blockchain, used straight from a wallet.

How DeFi differs from a bank or an exchange

At a bank or a centralized exchange, a company holds your money and keeps the records. It decides what you may do. It can freeze an account or reverse a mistake.

In DeFi, your coins stay in your wallet until you send them to a contract, and the contract's code decides what happens next. Anyone with a wallet can use it, and the code is usually public for anyone to read.

The trade-off is that nobody sits on the other end. A payment to the wrong address or a bug in the contract has no help desk and no reversal.

A comparison of a bank or exchange with DeFi: the company holds your coins while in DeFi they sit with you or a contract you chose, an account is required versus not needed, rules are enforced by staff versus code, and a mistake can be reversed versus being final.
DeFi swaps a company's control for code's control, including over mistakes.

What you can do in DeFi

A decentralized exchange lets you swap one token for another against a pool of tokens, with no person on the other side. The lesson on automated market makers shows how those pools set a price.

You can also lend and borrow: deposit coins for others to borrow and earn interest, or lock coins as collateral and borrow against them. The lending and yield lesson covers both sides.

Many DeFi services use stablecoins, tokens that track a currency such as the US dollar. Some are issued by companies holding cash, and some by DeFi contracts holding crypto as collateral.

Bridges move tokens between networks. Many lock your tokens on one chain and issue a matching token on another. Others destroy tokens on one side and create them on the other.

The locked pile can grow very large, which makes bridges a favourite target for attackers.

Who runs it

Decentralized comes in degrees. The blockchain underneath may be run by thousands of independent computers, while the pieces on top are run by much smaller groups.

A development team writes the contracts. Some can be changed after launch by an admin key, or by a vote of holders of the project's governance token. Others can never be changed.

That power can fix a bug, and it can also be misused.

The website you click through is ordinary web hosting run by a team. It can block some countries, go offline, or be hijacked to show a fake page. The contracts keep running underneath, whatever happens to the site.

Four layers stacked from top to bottom: your wallet, where you hold the keys; the website, run by a team; the smart contracts, which may be upgradeable; and the blockchain, run by a network of nodes.
Each layer has a different owner, and each can fail in its own way.

Worked example: what a DeFi swap costs

The numbers below are illustrative. Fees vary by network, pool and time of day.

You swap 1,000 USDC for ether on a decentralized exchange:

  1. The pool charges a 0.3% fee: 1,000 × 0.003 = 3.00 USDC.
  2. The network fee for your transaction is 2.00 USDC.
  3. Your trade moves the pool's price slightly against you. Say this price impact costs 0.2%, another 2.00 USDC.
  4. In total you pay 3.00 + 2.00 + 2.00 = 7.00 USDC, or 0.7% of the trade.

Now swap 100 USDC in the same pool:

  1. The pool fee is 0.3% of 100 = 0.30 USDC.
  2. The network fee is still 2.00 USDC, because it is charged per transaction, whatever the size.
  3. Price impact shrinks with size, to about 0.02%, or 0.02 USDC.
  4. In total you pay 0.30 + 2.00 + 0.02 = 2.32 USDC, or 2.32% of the trade.
Two stacked cost bars: a 1,000 USDC swap costs 7.00 USDC, or 0.7 percent, while a 100 USDC swap costs 2.32 USDC, or 2.32 percent, because the 2.00 USDC network fee stays the same.
A fixed network fee weighs most on small trades.

You also set a slippage tolerance, such as 0.5%: the most the price may move against you before your transaction lands.

If it moves further, the swap fails, and on most networks you still pay the network fee. The forex lesson on slippage covers the general idea.

Where DeFi breaks

Code that holds money is a target. A single bug in a contract can let an attacker drain it, and audits by security firms lower that risk without removing it.

Contracts that need outside prices, such as a lender valuing collateral, read them from a price feed called an oracle. If the feed is wrong or manipulated, the contract acts on the wrong number.

On your side, the risk is approvals. Using a contract often means signing an approval that lets it move a token from your wallet.

A malicious contract holding that approval can take the tokens later. Approve only what you need, and revoke approvals you no longer use.

Rules also differ between countries and keep changing. A website may stop serving your region even though the contracts underneath still work.

Câu hỏi thường gặp

Is DeFi safe?

No company holds your coins, but bugs, admin keys, faulty price feeds and your own mistakes can all lose them. Losses from bugs or bad signatures are usually permanent.

Do I need to give my name to use DeFi?

The contracts do not ask for identity; they only see your address. The exchange where you first buy coins usually does, through its KYC checks.

What is the difference between DeFi and a crypto exchange?

A centralized exchange is a company that holds your coins and matches orders in its own systems. A DeFi exchange is a contract you trade with straight from your wallet, and your coins stay under your control until the swap.

Can I lose money in DeFi without trading?

Yes. A contract you deposited into can be exploited, a stablecoin can lose its peg, and an approval you signed can let a thief move your tokens.

Góp ý

Tài khoản của bạn đang ở sàn nào?

Mỗi sàn một đường chuyển khác nhau, nên chúng tôi đưa bạn tới đúng phần của sàn đó.