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.
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.