A complete submission for the Ranger Build-A-Bear Hackathon | Main Track.
- Rust & Cargo
- Anchor CLI 0.30
- Node.js 20+
- Solana CLI
- Create a
.envfile in theappdirectory:
HELIUS_API_KEY=your_helius_api_key_here
WALLET_KEYPAIR=[your,wallet,bytes,...]
RPC_URL=https://mainnet.helius-rpc.com/?api-key=your_helius_api_key_here- Install dependencies in
app:cd app npm install - Build and run tests:
anchor build anchor test - Run the Strategy Bot locally:
cd app npm run start
- Anchor Program: Tracks strategy state, balances, and handles vault lifecycle. Emits structured events for bot ingestion.
- TypeScript Bot: Uses Helius webhooks/logs to track states and execute periodic delta-neutral rebalances across Marginfi (base yield) and Zeta Markets (funding yield).