Skip to content

Commit

Permalink
Add new topics
Browse files Browse the repository at this point in the history
  • Loading branch information
Dianaaiym committed Jan 7, 2025
1 parent 7f1796f commit 45448f5
Show file tree
Hide file tree
Showing 11 changed files with 158 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Bridging Real World and DeFi

**Real-World Asset (RWA) Tokenization**

While stablecoins represent the first wave of bringing real-world value into DeFi, tokenization is expanding to other assets. Gold-backed tokens offer a prime example – each token represents one gram of physical gold stored in vaults.

This trend continues to extend to various assets:

- Precious metals
- Real estate
- Commodities
- Traditional financial instruments

**Oracles in DeFi**

Oracles solve a fundamental challenge in DeFi: accessing external data. Smart contracts can't naturally access information outside the blockchain, yet many DeFi applications require real-world data. Oracles provide this crucial link.

For example, some derivative token which pegged in price to a real world asset needs accurate gold prices to maintain its peg. Oracles provide this data through:

- Multiple data sources
- Decentralized verification
- Secure transmission of data to smart contracts
- Regular price updates
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Innovative DeFi Features

**Flash Loans**

Flash loans represent a unique DeFi innovation impossible in traditional finance. They allow users to borrow any amount without collateral, provided the loan is repaid within the same transaction block. If the loan isn't repaid, the entire transaction reverts as if it never happened.

Think of it like borrowing money to buy something and immediately reselling it for profit – but everything happens instantaneously. For example, a user might:

1. Borrow 1 million USDT
2. Use it for arbitrage trading
3. Return the loan plus fees All in one atomic transaction.

**DeFi Aggregators**

DeFi aggregators leverage the composable nature of smart contracts to optimize user transactions. For instance, when trading tokens, 1inch DEX aggregator utilises its smart contracts to:

- Check prices across multiple DEXes
- Split the order for best execution
- Execute trades across different platforms
- Return the optimal result to the user

This interoperability between different DeFi protocols showcases how DeFi services can build upon each other to enhance user outcomes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Institutional DeFi

As institutions enter DeFi, platforms looking to serve these clients are adapting to meet regulatory requirements. New services combine DeFi's efficiency with traditional finance's compliance:

- KYC verification for users
- Transaction monitoring
- Regulatory reporting

For instance, lending service Save launched a service named Arc aimed specifically at institutions. Arc is a permissioned liquidity pool specifically designed for institutions to maintain regulatory compliance in the decentralized finance (DeFi) space.

These institutional adaptations show how DeFi is evolving beyond its original retail focus while maintaining its core benefits of efficiency and transparency.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Isolated Ecosystems

This multi-chain development, while fostering innovation, creates several practical challenges for users. The first challenge is similar to needing different bank accounts in different countries – each blockchain typically requires its own wallet. While some users prefer specialized wallets like Phantom for Solana or MetaMask for Ethereum, universal wallets like Unstoppable are emerging to simplify this experience.

Transaction fees present another consideration. Just as you need local currency for expenses in different countries, each blockchain requires its native token for transactions. You'll need ETH for DeFi transactions on Ethereum, SOL for Solana operations, and AVAX for using Avalanche services.

Perhaps the most significant challenge is the scattered nature of assets and services across these platforms. Imagine having money in a bank that can't directly transfer to another bank in a different country. Similarly, if you have USDT on one blockchain (like TRON), you can't directly use it on another (like Ethereum) without first converting it through a service known as bridge or some centralized exchange.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Moving Between Blockchains

Users have several options for moving assets between different blockchain platforms. The first option is using bridge services, which directly connect different blockchains. However, a simpler alternative, especially for beginners, is using centralized exchanges like Coinbase or Binance, which allow you to deposit on one network and withdraw on another. That being said, this neither fast nor cheap.

Major stablecoin providers have adapted to this reality by maintaining versions of their tokens across all major platforms. For instance, USDT exists on multiple blockchains, allowing users to choose the most convenient network for their needs. However, that doesn't affect the inefficiency faced by users. Not only users have to understand the concept of DeFi but also deal with the added practical complexities of switching from one blockchain to another.

The DeFi ecosystem continues to evolve, with new solutions emerging to address these challenges. New cross-chain services are making it easier to move assets between blockchain platforms, while improved wallet support is simplifying the user experience. While the current system may seem complex, it represents a transition period as the technology matures and becomes more integrated. The goal remains clear: creating an accessible, efficient, and truly global financial system.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# The Multi-Chain Reality

As we've explored the various DeFi services like decentralized exchanges and lending platforms, you might wonder why there are so many different versions of seemingly similar services. The answer lies in how DeFi has evolved across multiple blockchain platforms, each creating its own vibrant ecosystem.

Think of these blockchain platforms as different cities, each with its own financial district. Ethereum, the oldest and largest, is like New York's Wall Street – established, influential, but often expensive to operate in. Here you'll find the original versions of many popular services: Uniswap for trading, Aave for lending, and a wide variety of stablecoins like USDT and USDC.

Newer platforms like Solana have emerged as alternatives, similar to emerging financial centers. Solana, with its high-speed transactions and lower costs, hosts its own versions of these services, including Raydium for trading and Solend for lending. Similarly, Avalanche has developed its own ecosystem, with Trader Joe leading its trading services and platforms like Benqi providing lending options.
10 changes: 10 additions & 0 deletions src/edu/en/defi/fees-and-transactions/service-specific-fees.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Service-Specific Fees

Beyond blockchain transaction fees, DeFi services typically charge their own fees for the services they provide. These protocol fees are distinct from network transaction fees and are used to compensate liquidity providers, maintain protocol development, or simply as revenue for the DAO behind the given service.

Common examples include:

- Uniswap charges 0.3% per trade, distributed to liquidity providers
- Aave's lending fees vary based on market conditions and borrowing demand

Understanding these different fee layers is crucial for effective DeFi participation. Users need to consider both the blockchain transaction fees and the protocol-specific fees when planning their DeFi activities. This is particularly important for smaller transactions, where fees can potentially outweigh the intended benefits of the transaction itself.
10 changes: 10 additions & 0 deletions src/edu/en/defi/fees-and-transactions/transaction-complexity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Transaction Complexity

DeFi transactions are fundamentally different from simple cryptocurrency transfers. When you send cryptocurrency from one address to another, it's a straightforward operation. However, DeFi transactions often involve multiple steps and complex smart contract interactions, making them more resource-intensive and, consequently, more expensive.

For example, when you swap tokens on a decentralized exchange like Uniswap, the transaction includes calculating exchange rates, managing liquidity pools, and executing the swap. Each of these steps requires computational resources on the blockchain, leading to higher transaction fees compared to simple token transfers.

This complexity has different cost implications across various blockchains:

- On Ethereum: A simple ETH transfer might cost $1-5, while a DeFi interaction like token swapping could easily cost $20-100 or more, depending on network conditions.
- On Solana: Both regular transfers and DeFi interactions typically cost considerably less than $1, making it more accessible for frequent trading and experimentation.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Transaction Fee Fluctuations

Just like regular wallet to wallet transfers, DeFi transaction fees fluctuate based on network activity. During periods of high activity, such as market volatility when a lot of people trying to buy or sell something, network congestion can drive fees significantly higher.

Conversely, during quieter periods, the same transactions might cost substantially less. Therefore, some users may want to choose to execute transactions during off-peak hours, like weekends or early mornings, to minimize costs.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# DeFi Security: Beyond Wallets

While securing your non-custodial wallet is essential, DeFi security requires a more comprehensive approach. The decentralized nature of these services introduces additional security considerations that users must understand and address.

### Smart Contract Risks

Smart contracts form the foundation of DeFi services, but they can contain vulnerabilities that put user funds at risk. These vulnerabilities may be intentional or unintentional, and when exploited, they can result in significant financial losses.

For example, a DEX smart contract vulnerability could allow attackers to drain the entire liquidity pool, leaving liquidity providers with nothing. This isn't just theoretical – multiple DeFi services have suffered such attacks, resulting in millions of dollars in losses.

To minimize smart contract risks:

- Use well-established, community-tested DeFi services
- Look for services that have undergone security audits
- Start with small amounts when trying new services
- Use a separate wallet when trying a new service

### Phishing Threats

Phishing attacks in DeFi are particularly dangerous because transactions are irreversible. Attackers create convincing copies of legitimate DeFi websites, attempting to trick users into approving malicious transactions that steal their funds.

Essential phishing prevention practices:

- Access DeFi services directly through official websites
- Avoid clicking links from Discord, Telegram, or email
- Double-check website URLs carefully
- Use a separate wallet specifically for DeFi activities

There were a lot of cases where Twitter accounts of popular DeFi services were hacked and promoted links meant to steal users funds.

### Best Practices for DeFi Security

Create a dedicated DeFi wallet with limited funds rather than using your main storage wallet. This separation serves two purposes:

1. Limits potential losses if you make a mistake
2. Keeps your main holdings secure even if you interact with a compromised service

Never "experiment" with DeFi using a wallet containing substantial assets unless you're absolutely certain about the transaction's security and legitimacy.
18 changes: 18 additions & 0 deletions src/edu/en/defi/privacy-and-security-in-defi/privacy-in-defi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Privacy in DeFi

DeFi inherently offers limited privacy because most blockchain platforms it operates on, like Ethereum and Solana, are completely public. Every transaction you make is visible to anyone who looks up your wallet address, including:

- Token balances
- Trading history
- Lending activities
- Smart contract interactions

### Privacy Enhancement Strategies

While complete privacy is difficult to achieve in DeFi, you can take steps to protect your financial privacy. The most practical approach is using separate wallets for different purposes:

- Main wallet for asset storage
- DeFi wallet for trading and lending
- Additional wallets for specific high-value activities

This separation prevents observers from connecting all your financial activities to a single address. However, remember that transactions between your wallets are still traceable on the blockchain.

0 comments on commit 45448f5

Please sign in to comment.