Build a Solana Lending Protocol Using Anchor (Devnet Demo) | Borrow & Deposit SOL | Full Guide 2025
Автор: GROKCHAIN LABS WITH BHUPENDRA
Загружено: 2025-11-27
Просмотров: 42
Описание:
Welcome back to 👨💻 GROKCHAIN LABS WITH BHUPENDRA 🚀
In today’s video, we’re building a *mini Solana Borrow / Lend DeFi protocol* using *Anchor* on *Devnet* — a real smart contract you can test without spending money.
We will:
• Initialize a global Vault PDA
• Deposit SOL as collateral
• Update user lending positions
• Run tests on Devnet
• View balance changes on the Solana Explorer
• Learn real DeFi concepts like collateral & over-collateralization
This is Part 3 of our Solana series:
📌 Part 1 — Build Your Own Solana Token (Anchor)
📌 Part 2 — Send SOL Instantly Without Wallet Popup
👉 Today’s Goal: Deposit SOL into a lending vault & verify balance on-chain 💎
━━━━━━━━━━━━━━━━━━━━━━━
🔗 *Project Source Code*
🔗 *Commands Used In Video*
anchor build
anchor deploy --provider.cluster devnet
anchor test --skip-local-validator --provider.cluster devnet
━━━━━━━━━━━━━━━━━━━━━━━
🎥 *Video Chapters*
00:00 Intro
01:10 What is Collateral in DeFi?
02:30 Project Structure Overview
04:10 Initialize Vault PDA
07:20 Deposit SOL as Collateral
10:50 Run Devnet Tests
13:00 Show Proof on Solana Explorer
15:00 Final Result & Concept Recap
16:00 Outro
━━━━━━━━━━━━━━━━━━━━━━━
📚 *Tech Stack*
• Solana
• Anchor Framework
• TypeScript Tests
• Devnet
• Rust Smart Contracts
━━━━━━━━━━━━━━━━━━━━━━━
💬 Comment below:
What DeFi feature should we build next?
• Borrow & repay loan?
• Liquidation bot?
• Token rewards?
• Frontend dashboard?
━━━━━━━━━━━━━━━━━━━━━━━
#solana #anchor #defi #crypto #blockchain #rustprogramming #programming #codingtutorial #solanadevelopment #web3
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: