Lumen Loop
All media
VideoYouTubeJames BachiniDecember 22, 20254mo ago5:39

Building A Vault With Blend & OpenZeppelin

A technical walkthrough of an auto-compounding USDC vault built on Stellar using Blend Protocol, OpenZeppelin vault libraries, and Comet DEX. The vault automatically claims BLND rewards, swaps them to USDC, and reinvests them for users.

DeFiSmart ContractsSoroban
Lumen Loop's take

This video demonstrates a complete auto-compounding vault architecture combining Blend Protocol and OpenZeppelin's vault libraries on Stellar. The vault accepts USDC deposits, earns yield through Blend's Yieldbox V2 (12.94% APY plus 1% BLND emissions), and automatically compounds rewards by claiming BLND tokens, swapping them to USDC via Comet DEX, and reinvesting the proceeds. The speaker walks through the React frontend, explains the Soroban smart contract implementation including deposit, withdrawal, and compound functions, and demonstrates a live mainnet example. The code is open source on GitHub and uses Stellar's JavaScript SDK and OpenZeppelin vault libraries (ERC 4626 equivalent). The speaker emphasizes this is a teaching example for demonstration purposes only and has not been audited for production use.

Mentioned projects
2 projects linked
C
CometFinancial Protocols
SCFAudited
DEXDeFi

Comet is a weighted AMM protocol that offers soroban projects a flexible solution set when picking liquidity venues.

View →
O
OpenZeppelin
Audited
SecurityDevXSDK

OpenZeppelin is a recognized leader in blockchain security and smart contract development, known for creating widely-used framew…

View →