caelum0x 3a44b8e0f0 Add Voltr-template-compatible rebalance bot with delta-neutral strategy
scripts/rebalance-bot/rebalance_loop.ts:
- Drop-in replacement for voltrxyz/rebalance-bot-template rebalance_loop.ts
- Follows exact template pattern: WebSocket ATA monitoring + scheduled loop
- Custom allocation: 50% Drift USDC lending + 50% delta-neutral (swap + short)
- Uses voltrClient.createDepositStrategyIx for vault-managed execution

scripts/rebalance-bot/strategies.json:
- 3 strategies: driftLend (40%), jupiterLend (10%), deltaNeutralSOL (50%)
- Matches template's strategy config format

npm run rebalance-bot — runs the delta-neutral rebalance loop

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 17:46:33 +03:00

32 lines
725 B
JSON

{
"strategies": [
{
"id": "driftLend",
"type": "driftEarn",
"marketIndex": 0,
"description": "Drift USDC spot lending — earn deposit APY (~4-8%)"
},
{
"id": "jupiterLend",
"type": "jupiterLend",
"description": "Jupiter Lend USDC — earn lending APY"
},
{
"id": "deltaNeutralSOL",
"type": "driftEarn",
"marketIndex": 1,
"description": "Delta-neutral SOL — long SOL spot + short SOL perp for funding capture"
}
],
"allocation": {
"mode": "custom",
"weights": {
"driftLend": 0.40,
"jupiterLend": 0.10,
"deltaNeutralSOL": 0.50
}
},
"rebalanceIntervalMs": 1800000,
"depositMinAmountUsdc": 1
}