DeFi hoạt động như thế nào?

Decentralized finance (DeFi) has emerged as one of the crypto economy's most important and active sectors.
Combining smart contracts and a range of decentralized applications, DeFi has paved the way for entirely new types of financial service that operate autonomously, without the need for trusted intermediaries.
Just a few years after the Bitcoin white paper showed the viability of blockchain technology, protocols have already had a profound impact on the financial services industry.
Crypto holders are now using DeFi protocols to generate additional yields on their assets. Unbanked citizens in developing countries are using DeFi to access important services such as loans and insurance.
Even if you understand the importance of cryptocurrency, you may still be wondering how these DeFi protocols work. So let's dive in.

The main components of DeFi
DeFi consists of the following components:
- Blockchain technology
- Smart contracts
- Decentralized applications (dApps)
Kraken let's you get started in the most exciting parts of DeFi.
Join the exciting world of DeFi by signing up for a Kraken account today.
Key components of DeFi
Công nghệ blockchain
DeFi relies heavily on blockchain technology, which is essentially a decentralized and immutable digital ledger that records all transactions and smart contract data across a network. Ethereum and Solana, two of the most popular blockchains for DeFi, play a crucial role in these financial services thanks to their ability to support smart contracts.
Want to learn more about blockchains? You can check out our article What is blockchain technology?
Hợp đồng thông minh
Smart contracts are the backbone of DeFi. These self-executing programs allow for automated and transparent execution of agreements without intermediaries.
Developers can write and deploy these programs on a smart contract-supported blockchain such as Solana or Polkadot. Once added, the parameters of the smart contracts become unchangeable and perform strictly based on their preset rules.
Want to learn more about smart contracts? You can check out our article What are smart contracts?
Ứng dụng phi tập trung (dApp)
Developers implement DeFi projects through decentralized applications or dApps. These applications interact with the underlying blockchain to provide various financial services such as lending, borrowing, trading, and more. DApps enable users to access all types of services (including DeFi) from anywhere in the world with an internet connection, without needing to hand over personal information or place trust in a centralized entity.
Want to learn more about decentralized applications? You can check out our article What is a decentralized application (dApp)?
Types of DeFi platforms
Decentralized lending and borrowing
DeFi platforms allow users to lend their digital assets and earn interest while enabling others to borrow these assets. Smart contracts, which automatically determine interest rates and handle collateralization, facilitate the lending and borrowing processes. Borrowers pledge collateral, and the smart contract holds it until the loan is repaid.
Examples of lending and borrowing platforms include:
Decentralized exchanges (DEXs)
Many of the most popular cryptocurrency exchanges are centralized exchanges. While centralized exchanges are often the most efficient way to trade crypto, many feel this is contrary to the basic crypto idea of "decentralization."
DeFi addresses these issues through decentralized exchanges or DEXs. These exchanges allow users to trade digital currencies directly from their crypto wallets without the need for a centralized party to connect buyers and sellers. Instead, DEXs use smart contracts to execute trades, provide transparency and ensure security.
Examples of DEX platforms include:
Decentralized stablecoins
Stablecoins are cryptocurrencies designed to maintain price stability with a stable asset, such as the US dollar. DeFi platforms leverage stablecoins to provide more stability in transactions and lending/borrowing activities. Collateral or algorithmic mechanisms often back these stablecoins to maintain the value of the asset they are meant to track.
Examples of decentralized stablecoin projects include:
Yield farming and liquidity mining
Yield farming and liquidity mining are popular DeFi practices that incentivize users to provide liquidity to decentralized exchanges or lending platforms.
Users contribute their digital assets to liquidity pools and earn rewards in the form of additional tokens or fees for participating in the pool.
By leveraging multiple yield-generating protocols simultaneously, it can enable crypto holders to maximize their yield potential from a single pair of assets.
Examples of yield farming platforms include:
Understanding DeFi
Về bản chất, DeFi đề cập đến một tập hợp các dịch vụ tài chính được cung cấp bởi các ứng dụng được xây dựng trên công nghệ blockchain. Các dịch vụ này được tự vận hành và không phụ thuộc vào các bên trung gian như ngân hàng hoặc các tổ chức tài chính truyền thống.
Hãy nghĩ đến bất kỳ dịch vụ tài chính nào hiện có trên thị trường tài chính truyền thống; có thể là khoản vay, thế chấp hoặc sản phẩm bảo hiểm. Bây giờ hãy tưởng tượng nếu thay vì các công ty môi giới bảo hiểm và các ngân hàng truyền thống đóng vai trò là người gác cổng cho các dịch vụ này, mọi thứ đều được tự động hóa dựa trên một bộ quy tắc minh bạch do một chương trình máy tính đặt ra.
Thay vì phải chờ nhiều ngày để ngân hàng chấp thuận khoản vay hoặc nhà cung cấp bảo hiểm chi trả yêu cầu bồi thường, các nhà phát triển có thể viết một chương trình máy tính có thể cung cấp ngay lập tức các dịch vụ này khi đáp ứng được một số điều kiện được xác định trước.
Các nhà phát triển có thể xây dựng các chương trình này theo logic có điều kiện, chẳng hạn như "nếu cung cấp chứng chỉ hợp lệ, hợp đồng thông minh sẽ tự động xử lý khoản chi trả bảo hiểm nhân thọ - dựa trên các điều khoản đã được thiết lập".
DeFi tận dụng bản chất phi tập trung của mạng lưới blockchain để cung cấp các loại dịch vụ tài chính này một cách minh bạch và tự chủ. Không giống như tài chính truyền thống, nơi các tổ chức tập trung kiểm soát và giám sát mọi giao dịch, DeFi dựa vào hợp đồng thông minh để tự động hóa quy trình và thực thi các thỏa thuận.
Việc loại bỏ các bên trung gian khỏi những dịch vụ này không chỉ giúp tiết kiệm thời gian và tiền bạc mà còn giúp mọi người trên toàn thế giới dễ tiếp cận hơn. Miễn là mọi người đáp ứng các điều kiện được xác định trước trong hợp đồng thông minh thì không cần bên trung gian tham gia vào các quy trình xâm phạm như kiểm tra tín dụng và lưu trữ thông tin nhận dạng cá nhân.
Bằng cách sử dụng các nền tảng phi tập trung này, bất kỳ ai — không chỉ những người được cấp quyền truy cập độc quyền — đều có thể cho vay hoặc vay vốn.
Ví dụ: một người ở Hoa Kỳ có thể cho một người ở Ấn Độ vay tiền bằng cách sử dụng dịch vụ DeFi. Để đảm bảo khoản vay, hợp đồng thông minh trước tiên có thể yêu cầu người vay phải ký quỹ một số tiền thế chấp. Nếu người vay vỡ nợ, hợp đồng thông minh có thể tự động thanh lý tài sản thế chấp và hoàn trả toàn bộ số tiền cho người cho vay. Không cần có bên trung gian nào tham gia vào bất kỳ bước nào của quá trình này.
Vì thỏa thuận dựa trên một loạt các điều khoản được xác định rõ ràng nên khả năng xảy ra những kết quả không mong muốn hoặc bị thao túng là rất thấp. Những điều khoản này có thể được xác định và thống nhất trước giữa các cá nhân tham gia vào thỏa thuận. Tạo điều kiện cho các dịch vụ tài chính ngang hàng thực sự chính là sự đổi mới thực sự của DeFi.
Pros and cons of DeFi
Ưu điểm
- Financial inclusion: DeFi opens up financial services to individuals who do not have access to traditional banking systems. Anyone with an internet connection and a digital wallet can participate in DeFi, democratizing access to financial products and services globally.
- Enhanced transparency: Nodes record all DeFi transactions and activities on the blockchain, providing transparent and immutable records that anyone can audit.
- Permissionless: Traditional financial services often require extensive documentation and approval processes. DeFi removes these barriers by allowing anyone to participate without needing permission or facing discrimination.
- 24/7 accessibility: DeFi platforms operate 24/7 without any downtime, enabling users from different time zones to access financial services at their convenience.
Nhược điểm
- Smart contract exploits: Smart contract exploits in the realm of decentralized finance (DeFi) can lead to significant financial losses and disruptions within the ecosystem. Developers deploy DeFi platforms on blockchains and often use smart contracts to automate and execute various financial operations. While smart contracts offer efficiency and transparency, they can also be vulnerable to a variety of exploits due to their code-driven nature
- Impermanent loss: Impermanent loss is a concept in decentralized finance (DeFi) that is similar to the concept of opportunity cost in Economics. Impermanent loss specifically relates to providing liquidity in automated market maker (AMM) protocols, such as those found in decentralized exchanges (DEXs). When you provide liquidity to a pool on these platforms, you contribute both crypto assets (usually in a 50/50 ratio) to facilitate trading between them. In return, you earn a share of the cryptocurrency trading fees generated by the protocol. Impermanent loss occurs when the prices of the two tokens in the liquidity pool diverge significantly over time. This divergence can happen when the market price of one token changes relative to the other token, causing the value of the tokens you provided to the pool to become imbalanced.
- Rug pulls: A "rug pull" is a term used in the context of decentralized finance (DeFi) to describe a type of scam or fraudulent activity where the creators of a DeFi project intentionally deceive investors or users by abruptly pulling out liquidity or funds from a project, leaving participants with worthless or significantly devalued tokens.
Why DeFi is important
DeFi is revolutionizing the financial sector by leveraging the power of blockchain ledger technology to create an open, transparent, and inclusive financial ecosystem.
With its core principles of decentralization, smart contracts, and dApps, DeFi is set to provide a more accessible, efficient, and secure way for people to manage their finances and access a wide range of financial products and services.
As DeFi continues to evolve and mature, it could likely play a crucial role in shaping the future of finance on a global scale.
Get started in DeFi with Kraken
Kraken makes it easy to participate in the decentralized financial economy.
Whether you are looking to purchase cryptoassets before using them in a DeFi protocol or looking to convert your crypto holdings back into cash, Kraken makes it easy.
Kraken offers trading on the most popular DeFi assets as well as the most popular cryptocurrencies in the market today.