Skip to content

DeFi Deep Dive

Understanding DeFi Mechanisms

AMM (Automated Market Maker) Principles

Traditional Exchange:
- Order book matching
- Buyers and sellers matched

AMM (Uniswap/PancakeSwap):
- No order book needed
- Algorithm sets prices automatically
- Liquidity pools enable trading

Liquidity Pool

Pool Structure:
┌─────────────────────────────────┐
│     USDC/USDT Liquidity Pool     │
├─────────────────────────────────┤
│  500,000 USDC + 500,000 USDT    │
│  Total Value: $1,000,000         │
│  Ratio: 50:50                   │
└─────────────────────────────────┘

Trader:
- Want USDT → Deposit USDC → Get USDT
- Exchange rate calculated by algorithm

Impermanent Loss

What is Impermanent Loss?

You deposit to liquidity pool:
- 10 ETH (at $2000 when depositing)
- Receive LP Token

If ETH rises to $4000:
- Your pool only has 7 ETH left
- You have 14,000 USDT

Compare to holding without deposit:
- Holding 10 ETH = $40,000

Impermanent Loss: $40,000 - $40,000 = 0? (Actual calculation is more complex)

Sources of DeFi Revenue

1. Trading Fees

AMM charges 0.1-0.3% per trade:

Example:
- PancakeSwap: 0.25% fee
- 0.17% goes to LPs
- 0.08% goes to CAKE stakers

2. Lending Interest

Aave/Compound:

Borrowers pay interest
Lenders earn interest
Platform takes a cut

Interest rates determined by supply/demand:
- High borrowing demand → rates rise
- More deposits → rates drop

3. Staking Rewards

PoS blockchain validator rewards:

ETH 2.0 validators:
- ~4-5% APY
- Source: New block rewards

BSC validators:
- ~5-10% APY
- Source: Trading fees + block rewards

4. Liquidity Incentives

Protocols issue their own tokens to attract liquidity:

Example:
PancakeSwap:
- 0.25% trading fee
- Additional CAKE rewards

Yearn Finance:
- Strategy yields
- YFI governance token rewards

DeFi Protocol Deep Dive

DEX (Decentralized Exchange)

ProtocolChainDaily VolumeFeatures
UniswapETH$1B+V3 concentrated liquidity
PancakeSwapBSC$500M+Low fees, CAKE token
dYdXETH$500M+Perpetual contracts
CurveETH$500M+Stablecoin specialist

Lending Protocols

ProtocolTVLFeatures
Aave$10B+Most secure, multi-chain
Compound$2B+Simple, established
MakerDAO$3B+DAI stablecoin issuer

Yield Aggregators

ProtocolFeatures
YearnAutomated strategies
ConvexCurve yield enhancement
BeefyMulti-chain coverage

DeFi Risks Deep Dive

1. Smart Contract Risk

Risk:
Code vulnerabilities may lead to fund theft

Historical cases:
- The DAO hack: $60M stolen
- Poly Network: $611M stolen (later returned)

Prevention:
- Choose well-known protocols
- Check code audits
- Don't go all-in on one protocol

2. Impermanent Loss (In-Depth)

Math calculation:

At deposit:
- ETH = $2000
- You deposit 1 ETH + 2000 USDC

Later:
- ETH = $4000 (2x)
- Pool becomes: 0.707 ETH + 2828 USDC
- Total value = $2828 + $2828 = $5656

If held without deposit:
- 1 ETH = $4000
- + 2000 USDC = $6000

Impermanent Loss = $6000 - $5656 = $344 (5.7%)

3. Oracle Risk

Oracle = Provides external price data

Risk:
- Oracle manipulation
- Delayed price data
- Leads to arbitrage/liquidation attacks

Case:
- Mango Markets: $117M attacked
- Exploited oracle price manipulation

Prevention:
- Use multiple oracles
- Time-weighted average price (TWAP)

4. Liquidity Risk

Risk:
- Protocol TVL decreases
- Large trades have high slippage
- Difficult to exit

Prevention:
- Choose protocols with high TVL
- Watch liquidity concentration

DeFi Strategies

1. Stablecoin Farming

Goal: Stable returns, no principal loss risk

Strategies:
1. Aave deposit: ~3-5% APY
2. Curve stablecoin pool: ~3-8% APY
3. Liquidity provision: ~5-15% APY

Risk: Smart contract risk, oracle risk

2. Liquidity Mining

Goal: High returns

Strategies:
1. Provide liquidity on DEX
2. Earn Token rewards
3. Sell rewards promptly

Risk: Impermanent loss + Token depreciation

Tips:
- Choose pools with high TVL
- Monitor token unlock schedule
- Set profit-taking/stop-loss

3. Leveraged Yield

Goal: Amplify returns

Strategies:
1. Deposit collateral
2. Borrow assets
3. Re-deposit borrowed assets
4. Repeat

Risk: Liquidation risk, spread risk

Example:
- Deposit 1000 USDC
- Borrow 700 USDT
- Re-deposit USDT for yield
- Actual exposure: 1700 USDT equivalent

PulsePay's DeFi Innovation

Problems with Traditional DeFi

Liquidity Mining = Ponzi?

- Returns come from new user funds
- Once new users stop coming
- Returns drop to zero
- Token goes to zero

This is why:
2020-2022 DeFi Summer
→ Many protocols crashed
→ Investors lost heavily

PulsePay's Solution

Real revenue-driven:

Revenue sources:
- Real AI API call fees
- Real payment system fees
- Real business revenue

Revenue distribution:
- 40% to AIP stakers
- 30% Buyback and burn
- 20% Team operations
- 10% Ecosystem incentives

Features:
- Revenue tied to business volume
- Not a Ponzi structure
- Business growth = Revenue growth

Comparison

DimensionTraditional DeFiPulsePay
Revenue SourceNew user fundsAI business revenue
TransparencyPartially on-chainFully on-chain
SustainabilityDepends on new fundsDepends on business growth
Value SupportToken priceReal revenue

💡 Learn More

PulsePay Revenue Share — Detailed explanation of real business revenue dividend mechanism.

Common Tools

ToolUse Case
DeBankView on-chain assets and DeFi positions
ZapperDeFi portfolio tracking
Dune AnalyticsOn-chain data analysis
EtherscanBlockchain explorer
DeFi LlamaTVL rankings and protocol data

Next Steps

PulsePay Protocol - AI 使用即收益