Rebalance & Operations
Keystone Alpha Fund
Example — SOL at $100, ATH $260:
1. Read oracle: $100
2. Thresholds: $65 (low) / $208 (high)
3. Target: ~65% SOL → Current: 50% SOL
4. Move 3% toward target → 53% SOL
5. Jupiter swap: $3K USDC → jitoSOL
6. 0.1% rebalancing fee on $3Kawait program.methods
.rebalance(fundId, swapData)
.accounts({ caller, fundState: fundState, fundAuthority: fundAuthority, fundUsdc: fundUsdc, fundJitosol: fundJitosol, solOracle: PYTH_SOL_FEED })
.remainingAccounts([{ pubkey: JUPITER_PROGRAM_ID, isSigner: false, isWritable: false }, ...accounts])
.rpc();Keystone Neutral Fund
Deploy Capital (Standard Basis)
Deploy Reverse (Reverse Basis)
Close Reverse
Settle Funding
Adjust Position
Rate Limits
Operation
Cooldown
Automation
Common Errors
Error
Cause
Fix
Last updated