About the Project

The sBTC Yield Vault is a non-custodial yield-generating protocol I developed on the Stacks blockchain. It allows sBTC (wrapped Bitcoin) holders to earn rewards passively without losing control of their assets. The vault calculates yield per block and supports secure deposits, withdrawals, and emergency exits.

Inspiration

I was inspired by the potential of Bitcoin to earn yield safely in a decentralized way. Most Bitcoin yield platforms are custodial, so I wanted to build a transparent and trustless alternative using smart contracts.

What I Learned

I gained hands-on experience with:

  • Writing smart contracts in Clarity
  • Managing user state and rewards securely
  • Designing non-custodial financial flows
  • Implementing admin-controlled, time-locked updates

How I Built It

The project was built entirely using Clarity for the smart contract, deployed on the Stacks testnet with this address: ST2VXPMB7WBJRS0HPJENJD7FR35907JV4X1E64DGN.sbtc-yield-vault . I tested the logic using the Clarity CLI and structured the system around key DeFi patterns like principal protection, APY adjustment, and automated yield accrual.

Challenges Faced

My challenge was ensuring accurate yield calculations across block intervals without introducing vulnerabilities. I also had to design fallback mechanisms like emergency withdrawals and administrative timelocks to ensure the system stayed secure and user-focused.

This project helped me grow as a blockchain developer and deepened my understanding of decentralized finance.

Built With

Share this project:

Updates