caelum0x bafe1da2d1 Full-stack integration: 5 Rust programs, 13 venue/yield modules, 181 tests pass
On-chain (programs/):
- driftbear_custom_adaptor (1,058 lines, deployed devnet)
- drift_vaults (15,243 lines)
- raydium_clmm (20,909 lines)
- drift_rs_sdk (55,940 lines)
- ctoken_market_program + mock (673 lines)

New TypeScript modules (ported from 19 plugins):
- JIT maker (sniper+shotgun from jit-proxy)
- Filler bot (DLOB fills from keeper-bots-v2)
- FloatingMaker (slot-based from keeper-bots-v2)
- Executor upgrades (tx simulation, Jito bundles, ALTs)
- Event stream (WebSocket + Yellowstone gRPC)
- DLOB orderbook + price impact + funding TWAP
- Ranger Data API (funding arbs, liquidation signals)
- Ranger SOR (full API: quotes, withdraw, deposit collateral)
- Sanctum LST (swap, APY, best LST selection)
- Lulo lending aggregator
- Pyth oracle cross-validation
- Helius DAS API + smart priority fees
- Flash Trade, Orca, Meteora, deBridge venue clients
- Voltr vault strategy client
- Drift insurance fund staking
- Adaptor CPI client for on-chain program
- Raydium LP strategy

All wired into strategy engine runCycle():
- 11 data sources called every cycle
- 3 background execution modules (JIT, Filler, FloatingMaker)
- Multi-venue funding rate comparison
- Lending yield optimizer across protocols
- LP yield scanning (Orca + Meteora)
- Auto-deploy idle capital to best lending protocol
- Pyth oracle cross-validation
- Realistic backtest mode (0.30% round-trip costs)

Tests: 20/20 suites, 181/181 pass
Build: zero TypeScript errors

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

50 lines
1.7 KiB
TypeScript

import { BN } from "@coral-xyz/anchor";
import { VaultConfig, VaultParams } from "@voltr/vault-sdk";
// ONLY NEEDED FOR INIT VAULT
export const vaultConfig: VaultConfig = {
maxCap: new BN(100_000_000_000), // 100K USDC (10^6 Decimals)
startAtTs: new BN(0),
managerPerformanceFee: 500, // 500 = 5% in basis points
adminPerformanceFee: 500, // 500 = 5% in basis points
managerManagementFee: 0, // 0 = 0% in basis points
adminManagementFee: 0, // 0 = 0% in basis points
lockedProfitDegradationDuration: new BN(0), // profit will be realised linearly over time (seconds)
redemptionFee: 0, // one time fee when withdrawing
issuanceFee: 0, // one time fee when depositing
withdrawalWaitingPeriod: new BN(0), // waiting period before withdrawing
};
// ONLY NEEDED FOR INIT VAULT
export const vaultParams: VaultParams = {
config: vaultConfig,
name: "",
description: "",
};
// ONLY NEEDED IF YOU WANT TO SET LP TOKEN METADATA
export const lpTokenMetadata = {
symbol: "",
name: "",
uri: "",
};
// MAIN ASSET DEPOSITED INTO VAULT
export const assetMintAddress = "";
export const assetTokenProgram = ""; // TOKEN_PROGRAM_ID or TOKEN_2022_PROGRAM_ID
// TO FILL UP AFTER INIT VAULT
export const vaultAddress = "";
// LUT CREATED AND EXTENDED ON INITS AND UTILISED FOR DEPOSIT AND WITHDRAW STRATEGIES
export const useLookupTable = true;
// TO FILL UP IF useLookupTable IS TRUE AFTER LUT IS CREATED
export const lookupTableAddress = "";
// TAKE INTO ACCOUNT TOKEN DECIMALS 1_000_000 = 1 USDC (6 DECIMALS) LP is ALWAYS 9 DECIMALS
// ONLY NEEDED FOR DEPOSIT VAULT, WITHDRAW VAULT
export const depositAmountVault = 1_000_000;
export const withdrawAmountVault = 1_000_000;
export const isWithdrawAll = false;
export const isWithdrawInLp = false;