-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
212 additions
and
0 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
src/edu/en/defi/common-defi-instruments/common-defi-use-cases.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Common DeFi Use Cases | ||
|
||
### Decentralized Exchanges (DEXs) | ||
|
||
DEXs enable permissionless cryptocurrency trading without intermediaries. Each blockchain ecosystem has its own popular DEX platforms: | ||
|
||
- Ethereum: Uniswap leads as the primary DEX | ||
- Solana: Raydium and Orca dominate the ecosystem | ||
- Avalanche: Trader Joe serves as the main trading platform | ||
- Binance Smart Chain: PancakeSwap handles most trading volume | ||
|
||
Anyone can trade on these DEXs by connecting their wallet, selecting tokens, and confirming transactions. First-time users must approve token access, but subsequent trades become more straightforward. | ||
|
||
DEXs rely on liquidity providers who supply trading pairs and earn rewards from trading fees. To become a liquidity provider, users must: | ||
|
||
- Understand impermanent loss risks | ||
- Deposit equal values of both tokens in a trading pair | ||
- Monitor their positions and market conditions | ||
|
||
The primary advantage of DEXs is their permissionless nature – anyone can trade without restrictions based on geography, age, or status. No registration or identification is required; you simply need a wallet and tokens to trade. | ||
|
||
However, DEXs face certain limitations. Liquidity can be restricted for some trading pairs, potentially affecting trade execution and prices. Additionally, DEXs are typically limited to tokens within their blockchain ecosystem. For example, Uniswap on Ethereum cannot directly trade Bitcoin (BTC), though cross-chain bridge services are emerging to address this limitation. | ||
|
||
### Lending and Borrowing | ||
|
||
DeFi lending platforms have revolutionized borrowing and lending. Each blockchain ecosystem features its own leading platforms: | ||
|
||
- Ethereum: Aave and Compound lead the lending space | ||
- Solana: Solend provides lending services | ||
- Avalanche: Aave has expanded here, alongside native platforms like Benqi | ||
- Binance Smart Chain: Venus Protocol offers lending functionality | ||
|
||
The primary use case for borrowing is obtaining liquidity without selling your cryptocurrency assets. For example, if you hold ETH but need cash flow, you can borrow against your ETH as collateral rather than selling it, maintaining your long-term investment position. | ||
|
||
From the lending perspective, these platforms offer an opportunity to earn interest on cryptocurrency assets, similar to traditional bank deposits but typically with higher yields. Lenders provide liquidity to the platform and earn interest from borrowers' payments. | ||
|
||
Important considerations for lending and borrowing: | ||
|
||
- Maintain healthy collateral ratios | ||
- Monitor positions and interest rates regularly | ||
- Understand liquidation mechanisms | ||
- Plan exit strategies carefully | ||
|
||
The main benefit of DeFi lending platforms is their open accessibility. Anyone can lend or borrow without traditional banking requirements or credit checks. Interest rates are typically more attractive than traditional banking, and the process is entirely automated through smart contracts. | ||
|
||
However, these platforms have notable limitations. Most significantly, borrowing typically requires over-collateralization – you must deposit collateral worth more than your borrowed amount, often 150% or higher. This makes these platforms less suitable for those seeking traditional loans without existing crypto assets. Additionally, the volatile nature of cryptocurrency can lead to sudden liquidations if collateral values drop significantly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## DeFi Safety | ||
|
||
Following these essential safety practices helps protect your assets: | ||
|
||
- Start with small amounts to learn platform mechanics | ||
- Maintain sufficient funds for multiple transactions | ||
- Verify all addresses and permissions carefully | ||
- Research platform-specific requirements thoroughly | ||
- Monitor your positions regularly | ||
|
||
It's crucial to understand that this is only a basic list of safety measures and by no means complete. DeFi security requires proper self-education to master the subject and stay secure. The complexity of DeFi security goes well beyond simply using services like DEXes or lending platforms – it encompasses understanding smart contract risks, platform-specific vulnerabilities, market manipulation risks, and numerous other security considerations. Users should invest time in continuous learning about DeFi security practices to protect their assets effectively. |
15 changes: 15 additions & 0 deletions
15
src/edu/en/defi/common-defi-instruments/getting-started-with-defi.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Getting Started with DeFi | ||
|
||
Before diving into DeFi services, you need two fundamental components: a non-custodial wallet and some native cryptocurrency of your chosen blockchain. | ||
|
||
Your choice of wallet will largely determine which DeFi services you can access. Non-custodial wallets give you complete control over your funds and the ability to interact with DeFi protocols. | ||
|
||
Popular wallet options include: | ||
|
||
- Mobile wallets: Unstoppable offers comprehensive support for multiple blockchains and DeFi platforms | ||
- Browser wallets: MetaMask dominates Ethereum and compatible chains | ||
- Specialized wallets: Phantom serves as the primary wallet for Solana DeFi users | ||
|
||
For most users, a versatile wallet like Unstoppable will cover the majority of DeFi use cases, but your choice should align with your intended blockchain ecosystem. | ||
|
||
Each blockchain requires its native cryptocurrency to pay for DeFi transactions. You'll need ETH for Ethereum transactions, SOL for Solana, or AVAX for Avalanche. Every DeFi interaction requires transaction fees, so maintaining adequate native currency is essential for continuous operation. |
27 changes: 27 additions & 0 deletions
27
src/edu/en/defi/common-defi-instruments/stablecoins-the-foundation-of-defi.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Stablecoins: The Foundation of DeFi | ||
|
||
Stablecoins form the backbone of the DeFi ecosystem, providing a stable medium of exchange and reliable unit of account. These digital assets maintain a steady value, typically pegged to the US dollar, enabling consistent pricing and reduced volatility in DeFi transactions. | ||
|
||
### Centralized Stablecoins: The Case of USDT | ||
|
||
Tether (USDT) exemplifies the centralized stablecoin approach. The system operates through smart contracts controlled by Tether Limited, which manages the issuance and redemption of USDT. When users purchase USDT, Tether Limited maintains equivalent traditional currency reserves to support the 1:1 USD peg. | ||
|
||
Key characteristics of USDT include: | ||
|
||
- Central management by Tether Limited | ||
- Traditional currency backing | ||
- Wide acceptance across DeFi platforms | ||
- Administrative controls including balance freezing capabilities | ||
|
||
### Decentralized Stablecoins: DAI and Beyond | ||
|
||
DAI represents a truly decentralized alternative to centralized stablecoins. Its decentralized nature ensures that no central authority can freeze or confiscate user funds. Instead, DAI maintains its value through smart contracts and cryptocurrency collateral. | ||
|
||
Users can acquire DAI in two ways: | ||
|
||
- Purchase directly from cryptocurrency exchanges | ||
- Generate DAI through the MakerDAO protocol by following these steps: | ||
1. Connect your wallet to MakerDAO | ||
2. Deposit cryptocurrency collateral | ||
3. Generate DAI based on collateral value | ||
4. Maintain a healthy collateral ratio to avoid liquidation |
21 changes: 21 additions & 0 deletions
21
src/edu/en/defi/how-defi-works/decentralized-applications.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Decentralized Applications (DApps) | ||
|
||
DApps are the practical implementation of smart contracts, offering users access to financial services without intermediaries. These applications cater to diverse needs within the financial ecosystem: | ||
|
||
### **Popular Types of DeFi DApps**: | ||
|
||
- **Lending Platforms**: Borrow or lend assets while earning interest (e.g., Aave, Compound). | ||
- **Decentralized Exchanges (DEXs)**: Facilitate token swaps without intermediaries (e.g., Uniswap, SushiSwap). | ||
- **Derivatives Platforms**: Trade complex financial instruments like futures and options (e.g., dYdX, Synthetix). | ||
- **Yield Aggregators**: Maximize returns through automated strategies (e.g., Yearn Finance). | ||
|
||
For instance, Uniswap's open-source code allows anyone to: | ||
|
||
1. Review trading execution mechanisms | ||
2. Understand price calculation formulas | ||
3. Verify fee distributions | ||
4. Confirm security measures | ||
|
||
### **DApps and Composability**: | ||
|
||
DApps exemplify composability by integrating multiple protocols into a single user experience. A yield farming DApp might combine liquidity pools from Uniswap, lending services from Aave, and insurance coverage from Nexus Mutual, all through smart contract interactions. This seamless integration enhances the utility of DeFi while minimizing complexity for end users. |
18 changes: 18 additions & 0 deletions
18
src/edu/en/defi/how-defi-works/decentralized-autonomous-organizations.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Decentralized Autonomous Organizations (DAOs) | ||
|
||
DAOs enable community-driven decision-making through the use of smart contracts and governance tokens. These organizations operate transparently, with rules embedded in code, ensuring decentralized and democratic control. | ||
|
||
### **Typical DAO Functions**: | ||
|
||
- Voting on protocol changes and updates | ||
- Managing community treasury funds | ||
- Proposing new features or improvements | ||
- Participating in profit-sharing mechanisms | ||
|
||
### **DAOs and Composability**: | ||
|
||
DAOs often leverage composable smart contracts to enhance their functionality: | ||
|
||
- Treasury management: DAOs can integrate with lending protocols like Compound to earn interest on idle funds. | ||
- Governance tooling: DAOs can utilize modular voting systems that interact with on-chain and off-chain data sources for decision-making. | ||
- Cross-DAO collaboration: DAOs can partner by pooling resources or executing joint strategies via interoperable smart contracts, creating a more robust DeFi ecosystem. |
27 changes: 27 additions & 0 deletions
27
src/edu/en/defi/how-defi-works/smart-contracts-the-engine-of-defi.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Smart Contracts: The Engine of DeFi | ||
|
||
Smart contracts are the foundational technology enabling DeFi applications. Imagine a digital vending machine: you input cryptocurrency, and the machine automatically provides what you paid for, without any human intervention. This automation is at the heart of how smart contracts operate. | ||
|
||
Key features of smart contracts include: | ||
|
||
- **Automated execution** based on predefined rules | ||
- **Immutable rules** that cannot be changed after deployment | ||
- **Code-defined interactions and outcomes** that eliminate ambiguity | ||
- **Public verification capabilities** through open access to the code | ||
|
||
The open-source nature of smart contracts enhances transparency and trust. For example, when using a DeFi lending platform, users can independently verify: | ||
|
||
- Exact interest rate calculations | ||
- Specific conditions for liquidations | ||
- Complete fee structures | ||
- All possible scenarios for their funds | ||
|
||
### **Composability: The Lego Blocks of DeFi** | ||
|
||
One of the most transformative aspects of smart contracts is their composability. In DeFi, composability refers to the ability of smart contracts to interact seamlessly with other smart contracts, much like assembling Lego blocks to build sophisticated structures. | ||
|
||
- Developers can **reuse and combine existing smart contracts** created by others to build new applications. For instance, a developer might use Uniswap’s liquidity pool smart contracts as a base for building an entirely new trading platform or arbitrage bot. | ||
- **Interoperability across protocols** ensures that multiple applications can work together. For example, a user might deposit funds in Aave to earn interest, use those funds as collateral to mint a stablecoin like DAI, and then trade that DAI on Uniswap—all facilitated by smart contract interactions. | ||
- **Efficiency through abstraction**: Developers don’t need to reinvent the wheel. Instead, they can rely on proven, secure code from third-party protocols, reducing development time and enhancing reliability. | ||
|
||
This composability has created a rapidly evolving ecosystem where innovation builds on prior success, accelerating the growth of DeFi and enabling users to unlock complex financial strategies with minimal effort. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Key Advantages of DeFi | ||
|
||
DeFi's primary strength lies in its universal access. Anyone with an internet connection can participate in the financial system without going through lengthy application processes or facing discrimination based on their location or status. | ||
|
||
Core advantages of DeFi include: | ||
|
||
- Complete asset control and permissionless transactions | ||
- 24/7 market access without intermediary approval | ||
- Transparent operations visible on public blockchains | ||
- Open and verifiable source code | ||
|
||
The transparency aspect is particularly significant in DeFi. Unlike traditional financial services where operations are hidden behind closed doors, DeFi services expose their entire functionality through open-source code. This means that anyone can inspect, verify, and understand exactly how their money is being handled. Think of it like a glass building where all internal workings are visible to the public. | ||
|
||
The open-source nature of DeFi creates several key benefits: | ||
|
||
Security Through Transparency: | ||
|
||
- Security researchers can audit code for vulnerabilities | ||
- Developers can verify protocol operations | ||
- Users can understand fund management | ||
- Community members can suggest improvements | ||
|
||
Community Protection: | ||
|
||
- Continuous peer review of code | ||
- Rapid identification of potential issues | ||
- Collaborative security improvements | ||
- Public validation of protocol claims |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# The Evolution of DeFi | ||
|
||
The journey of decentralized finance began with Bitcoin in 2009, marking the first successful implementation of peer-to-peer digital money. Bitcoin demonstrated that financial transactions could occur directly between parties without traditional banking intermediaries. This breakthrough laid the foundation for all future DeFi innovations. | ||
|
||
While Bitcoin enabled peer-to-peer payments, it was Ethereum's introduction in 2015 that truly catalyzed the DeFi revolution. Ethereum expanded blockchain capabilities by introducing programmable smart contracts, allowing developers to create complex financial applications. This innovation transformed blockchain from a simple payment system into a platform for diverse financial services. | ||
|
||
The success of Ethereum inspired the development of numerous other blockchain platforms, each offering unique advantages i.e. Solana, Avalanche and many others. |
12 changes: 12 additions & 0 deletions
12
src/edu/en/defi/intro-to-defi/traditional-finance-vs-defi.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Traditional Finance vs. DeFi | ||
|
||
The traditional financial system operates through centralized intermediaries, with banks and financial institutions serving as gatekeepers to financial services. These institutions maintain strict control over who can access services, requiring extensive documentation and often imposing restrictions based on geography or wealth. | ||
|
||
Common restrictions in traditional finance include: | ||
|
||
- Extensive documentation requirements for account opening | ||
- Minimum balance requirements and service fees | ||
- Geographic limitations on service availability | ||
- Restricted access to premium financial products | ||
|
||
In contrast, DeFi reimagines this system by eliminating intermediaries through blockchain technology. By leveraging automated processes and open access protocols, DeFi creates a globally available financial system that anyone can access. This fundamental shift removes traditional barriers while maintaining security and reliability through technological innovation rather than institutional oversight. |