compound-mini

Compound Mini App - User Guide

Welcome to Compound Mini App! This guide will walk you through everything you need to know to get started with lending and borrowing on Compound Protocol directly from Telegram.

For the best experience, we strongly recommend using Telegram Web on desktop:

Why Telegram Web?

How to Access Telegram Web

  1. Open your web browser (Chrome, Firefox, Edge, etc.)
  2. Go to web.telegram.org
  3. Log in with your phone number
  4. You’re now using Telegram Web!

Note:


đŸ“± Getting Started

Step 1: Find the App on Telegram

  1. Open Telegram Web in your browser (recommended) or the Telegram app
  2. In the search bar, type @compoundminiapp
  3. Click open to launch the app

Finding the Mini App

🎉 Congratulations! You’re now in the Compound Mini App.


🎼 First Time Experience

Welcome Screen

When you first open the app, you’ll see a welcome modal with:

Tap Enter to proceed to the main app.

Guest Mode vs. Wallet Connection

You have two options to explore the app:

Option 1: Tour as Guest (Recommended for first-time users)

Option 2: Connect Wallet

Guest and Connect Modes

For this guide, we’ll connect a wallet to test all features.


🔐 Setting Up Your Wallet

Step 1: Get a Wallet

You’ll need a Web3 wallet that supports Ethereum. Popular options include:

For this guide, we’ll use MetaMask browser extension, which works best with Telegram Web.

Step 2: Install MetaMask

Recommended: Browser Extension (for Telegram Web)

  1. On Desktop (Recommended):
    • Install the MetaMask browser extension from metamask.io
    • Click “Install MetaMask for [Your Browser]”
    • Add the extension to your browser
    • Create a new wallet or import an existing one
    • Important: Save your seed phrase securely!
    • The extension will appear in your browser toolbar

Alternative: Mobile App (if using mobile Telegram)

  1. On Mobile:
    • Download MetaMask from the App Store (iOS) or Google Play (Android)
    • Open the app and create a new wallet or import an existing one
    • Important: Save your seed phrase securely!
    • Note: Mobile may have deeplink issues - if wallet connection fails, try Telegram Web instead

Step 3: Add Sepolia Testnet

Since we’re testing on Sepolia testnet, you need to add it to your wallet:

  1. Open MetaMask
  2. Tap/click the network dropdown (usually shows “Ethereum Mainnet”)
  3. Scroll down and tap “Add Network” or “Add a network manually”
  4. Enter the following details:
    • Network Name: Sepolia
    • RPC URL: https://sepolia.infura.io/v3/YOUR_INFURA_KEY or https://sepolia.publicnode.com
    • Chain ID: 11155111
    • Currency Symbol: ETH
    • Block Explorer URL: https://sepolia.etherscan.io
  5. Tap Save

You should now see “Sepolia” as your selected network.


💧 Getting Test ETH from a Faucet

You’ll need Sepolia ETH to pay for gas fees and to wrap into WETH. Here’s how to get it:

Step 1: Find a Sepolia Faucet

Popular Sepolia testnet faucets:

Step 2: Request Test ETH

  1. Open one of the faucet websites in your browser
  2. Connect your MetaMask wallet (if required)
  3. Enter your wallet address:
    • Open MetaMask
    • Tap/click on your account name at the top
    • Tap “Copy address to clipboard”
    • Paste it into the faucet form
  4. Complete any required verification (CAPTCHA, social media follow, etc.)
  5. Tap “Send Me ETH” or “Request ETH”
  6. Wait a few moments for the transaction to complete

Note: Most faucets have rate limits (e.g., once per 24 hours). You typically receive 0.1-0.5 Sepolia ETH per request.

Step 3: Verify You Received ETH

  1. Open MetaMask
  2. Make sure you’re on the Sepolia network
  3. Check your balance - you should see your test ETH
  4. You can also check on Sepolia Etherscan by searching for your address

🔄 Wrapping ETH to WETH

The Compound Mini App uses WETH (Wrapped ETH) for supply and borrow operations. You need to wrap your Sepolia ETH into WETH first.

Step 1: Go to SepoliaScan

  1. Open your browser and go to Sepolia Etherscan
  2. Make sure you’re on the Sepolia testnet (check the network indicator)

Step 2: Find the WETH Contract

  1. In the search bar, enter the WETH contract address:
    0x2D5ee574e710219a521449679A4A7f2B43f046ad
    
  2. Press Enter or tap Search
  3. You’ll be taken to the WETH contract page

Step 3: Connect Your Wallet

  1. On the WETH contract page, look for the “Contract” tab
  2. Click on the “Contract” tab
  3. You’ll see a “Connect to Web3” button - click it
  4. Select MetaMask from the wallet options
  5. Approve the connection in MetaMask

Step 4: Deposit ETH (Wrap to WETH)

  1. Scroll down to find the “Write Contract” section
  2. Look for the “deposit” function
  3. Click “Write” or “deposit” button
  4. A MetaMask popup will appear
  5. Review the transaction:
    • Amount: Enter how much ETH you want to wrap (e.g., 0.1 ETH)
    • Gas fee: Review the estimated gas cost
  6. Click “Confirm” in MetaMask
  7. Wait for the transaction to be confirmed (usually 10-30 seconds)

What’s happening: The deposit function wraps your ETH into WETH. For every 1 ETH you deposit, you receive 1 WETH.

Step 5: Verify Your WETH Balance

  1. Go back to the WETH contract page on SepoliaScan
  2. Click the “Read Contract” tab
  3. Find the “balanceOf” function
  4. Enter your wallet address in the address field
  5. Click “Query”
  6. You should see your WETH balance (it will be in wei, so divide by 10^18 to see the actual amount)

Alternative: You can also check your WETH balance in MetaMask:

  1. Open MetaMask
  2. Tap “Import tokens” at the bottom
  3. Enter the WETH contract address: 0x2D5ee574e710219a521449679A4A7f2B43f046ad
  4. Tap “Add Custom Token”
  5. Your WETH balance will now appear in MetaMask

🏩 Using the Compound Mini App

Now that you have WETH, let’s explore the app features!

Step 1: Connect Your Wallet

  1. In the Compound Mini App (still open in Telegram Web)
  2. Look at the top right corner - you’ll see “Tour as guest” and “Connect Wallet” buttons
  3. Click “Connect Wallet”
  4. A wallet connection modal will appear
  5. Choose your wallet:
    • Injected (Recommended): If using MetaMask browser extension, it will appear automatically and connect seamlessly
    • WalletConnect: Alternative option - scan QR code with MetaMask mobile app (may have issues on mobile Telegram)
  6. Approve the connection in MetaMask
  7. Select the Sepolia network if prompted

Connect Wallet

Tip: If you’re using Telegram Web with MetaMask extension, the connection should be instant and smooth. If you encounter issues, make sure:

Success! Your wallet is now connected. You’ll see your wallet address in the header.

Home Page

Step 2: Explore the Dashboard

  1. Tap the Dashboard icon in the bottom navigation
  2. You’ll see:
    • Current positions
    • Supply and borrow balances
    • Health factor in the next slides (if you have positions)

Dashboard

Step 3: Supply WETH (Earn Interest)

  1. Tap the Supply icon in the bottom navigation (or from the home page)
  2. You’ll see:
    • Your WETH wallet balance
    • Your current supplied WETH
    • Supply APY (Annual Percentage Yield)

Supply Page

  1. Enter the amount of WETH you want to supply:
    • Type the amount in the input field
    • Or tap “MAX” to supply all your WETH
  2. Review the supply preview:
    • Supply APY
    • Projected annual earnings
    • USD value
  3. Tap “Supply [amount] WETH” button
  4. MetaMask will pop up - review and confirm the transaction
  5. Wait for confirmation (this may take 10-30 seconds)
  6. Success! You’ll see a success screen with a “Go to Dashboard” button

What’s happening: You’re depositing WETH into Compound Protocol, which will start earning interest immediately.

Step 4: View Your Position

  1. After supplying, tap “Go to Dashboard” from the success screen
  2. Or navigate to Dashboard from the bottom menu
  3. You’ll now see:
    • Your supplied WETH amount
    • Your net worth updated
    • Health factor (should be very high since you haven’t borrowed yet)

Step 5: Borrow USDC (Optional)

Now that you have collateral (supplied WETH), you can borrow USDC:

  1. Tap the Borrow icon in the bottom navigation
  2. You’ll see:
    • Your collateral balance (supplied WETH)
    • Current health factor
    • Borrow APY
    • Maximum borrowable amount

Borrow Page

  1. Enter the amount of USDC you want to borrow
  2. Review the borrow preview:
    • Borrow APY
    • New health factor (make sure it stays above 1.5 for safety!)
    • Total borrowed amount
  3. Tap “Borrow [amount] USDC” button
  4. MetaMask will pop up - review and confirm
  5. Wait for confirmation
  6. Success! You’ll see a success screen

Important Notes:

Step 6: Withdraw WETH

If you want to withdraw some of your supplied WETH:

  1. Tap the Withdraw icon in the bottom navigation
  2. You’ll see:
    • Your current supplied WETH
    • Available to withdraw
    • Supply APY

Withdraw Page

  1. Enter the amount you want to withdraw
  2. Review the preview:
    • Interest lost annually
    • New health factor (if you have borrows)
    • Remaining collateral
  3. Tap “Withdraw [amount] WETH” button
  4. Confirm in MetaMask
  5. Wait for confirmation

Note: You can only withdraw if your health factor remains safe after withdrawal.

Step 7: Repay Borrowed USDC

To reduce your debt and improve your health factor:

  1. Tap the Repay icon in the bottom navigation
  2. You’ll see:
    • Your current borrow balance
    • Borrow APY
    • Your USDC wallet balance

Repay Page

  1. Enter the amount of USDC you want to repay
  2. Review the preview:
    • Interest saved annually
    • New health factor
    • Remaining debt
  3. Tap “Repay [amount] USDC” button
  4. Confirm in MetaMask
  5. Wait for confirmation

Note: You’ll need USDC in your wallet to repay. You can get test USDC from faucets or by borrowing it first.


💡 Tips and Best Practices

Health Factor Management

Gas Fees

Interest Rates

Guest Mode


❓ Troubleshooting

“Insufficient Balance” Error

“Transaction Failed” Error

“Network Mismatch” Error

Can’t Connect Wallet

WETH Balance Not Showing


🎓 Learning Resources


🎉 You’re All Set!

You now know how to:

Happy lending and borrowing! 🚀


Remember: This is a testnet application. All assets are test tokens with no real value. Always do your own research and understand the risks before using mainnet DeFi protocols.