Smart WBTC yield automation on Starknet. Deposit once, earn more through intelligent rebalancing across vesuxyz & EkuboProtocol
YieldStark is a non-custodial yield optimizer that intelligently allocates Bitcoin (WBTC) into the most profitable DeFi opportunities across the Starknet ecosystem. Built with Next.js and Starknet, it provides a seamless experience for BTC holders to earn yield directly on their assets.
Bitcoin holders looking to earn yield face several significant roadblocks:
-Lack of Native Yield Options
-Yield strategies are spread across multiple protocols, requiring manual research bridging, and tracking.
-Navigating yield farming, bridging, and gas optimization is too technical for the typical BTC holder.
YieldStark solves the complexity of earning BTC-native yield through three core components:
-
AI-Powered Yield Engine -Real-time APY tracking across BTC strategies -Predictive modeling for optimal rebalancing -Risk-adjusted portfolio rotation
-
Automated Smart Execution -Non-custodial BTC deposits into top-performing pools -Rebalancing and compounding based on performance data -Auto-conversion of rewards into BTC
-
Pragma Data Integration -On-chain APY feeds for BTC strategies -Real-time pool metrics and risk signals -Decentralized and verifiable price + yield data
import { VesuOracleService } from "../services/vesuOracle";
import { EkuboOracleService } from "../services/ekuboOracle";
export async function decideBestProtocol() {
const vesuAPY = await VesuOracleService.getInstance().calculateAPY();
const ekuboAPR = await EkuboOracleService.getInstance().calculateAPR();
return vesuAPY > ekuboAPR ? "vesu" : "ekubo";
}
// Usage:
// const best = await decideBestProtocol();
// // Use `best` to allocate funds accordingly
ββββββββββββββββββββββ ββββββββββββββββββββββ ββββββββββββββββββββββ
β Pragma Price Feeds βββββΆβ Analysis Engine βββββΆβ Strategy Engine β
β Vesu API β β - APY Calculation β β - Allocation β
β Ekubo API β β - Risk Metrics β β - Rebalancing β
β Historical Data β β - Market Trends β β - Execution Plan β
ββββββββββββββββββββββ ββββββββββββββββββββββ ββββββββββββββββββββββ
β² β β
β βΌ βΌ
ββββββββββββββββββββββ ββββββββββββββββββββββ ββββββββββββββββββββββ
β User Portfolio β β Risk Management β β Performance & β
β - Deposits ββββββΆ & Alerts ββββββΆ Learning Module β
β - Withdrawals β β - Thresholds β β - Backtesting β
β - Balances β β - Notifications β β - Optimization β
ββββββββββββββββββββββ ββββββββββββββββββββββ ββββββββββββββββββββββ
The YieldStark agent continuously collects data from integrated protocols and oracles, analyzes yield and risk, and executes optimal rebalancing strategies for user portfolios.
- Bitcoin-Native Yield Optimization: Focuses exclusively on Bitcoin, unlocking optimized yield opportunities without complex bridges or synthetic assets
- AI-Driven Rebalancing: Dynamically reallocates BTC deposits across top-performing protocols like Vesu and Ekubo
- Built on Starknet: Leverages Starknet's scalability and zero-knowledge infrastructure for fast, low-cost transactions
- Real-time Price Tracking: Integrated with Pragma for accurate BTC/USD price feeds
- PWA Support: Progressive Web App functionality for enhanced mobile experience
YieldStark/
βββ app/
β βββ dashboard/ # User dashboard UI
β βββ page.tsx # Landing page
βββ components/ # Reusable React components
βββ config/ # Configuration files (contracts, env)
βββ hooks/ # Custom React hooks
βββ services/
β βββ vesuOracle.ts # Vesu APY & price feed integration
β βββ ekuboOracle.ts # Ekubo APR integration
β βββ positionTracker.ts # User position & profit tracking
β βββ priceFeed.ts # Pragma price feed integration
β βββ vesu.ts # Vesu protocol execution logic
β βββ vesuVToken.ts # Vesu vToken logic
β βββ web3/ # Web3 utilities and protocol calls
βββ utils/ # Utility functions and constants
βββ contracts/ # Cairo smart contracts (if present)
βββ public/
βββ logo.png # Project logo
βββ agent-architecture.png # Architecture diagram
- Frontend: Next.js 15.3.2, React 19.0.0
- Styling: Tailwind CSS, DaisyUI
- Blockchain: Starknet
- State Management: Zustand
- Testing: Vitest, Testing Library
- Node.js (v18 or higher)
- yarn
- A Starknet wallet (e.g., Argent X)
- Clone the repository:
git clone https://github.com/yourusername/YieldStark.git
cd YieldStark/packages/nextjs
- Install dependencies:
yarn install
- Create a
.env
file:
cp .env.example .env
- Start the development server:
yarn dev
The application will be available at http://localhost:3000
Detailed documentation is available in the docs
directory:
- Pragma Integration - Details on data/price feed analysis
- Architecture - System architecture and components
- Development - Development setup and guidelines
-Up to 4x higher BTC yield compared to passive strategies
-100% automated strategy rotation powered by real-time Pragma feeds
-Rebalancing logic optimized for gas-efficiency and execution success
- Vesu and Ekubo strategy integration
- Statistical analysis engine
- Pragma data feed connection
- Minimalist frontend for deposits and tracking
- Mobile-friendly dashboard
- AI-powered rebalancing engine
- BTC staking and performance analytics
-
Bitcoin Maximalists
- Want to earn yield without leaving BTC
- Prefer BTC-denominated returns over altcoins
- Avoid complex DeFi exposure
-
Long-term Holders
- Automated rebalancing
- Risk management
- Portfolio optimization
Follow us for updates, insights, and behind-the-scenes development:
π§΅ X Thread: View our hackathon Prototype thread on X
π¦ Follow us on X: @YieldStark
This project is licensed under the MIT License - see the LICENSE file for details.
- Starknet Foundation
- Vesu Protocol
- Ekubo Protocol
- Pragma Oracle
Built with β€οΈ for Starknet Re{ignite} Hackathon 2025