Dcaf Labs
  • 🚦Official Links and Notes
  • ☕Products
    • 💧Drip
      • 📚Programming Model
        • Vault Proto Config
        • Vault
        • Vault Period
        • Position
      • 📺Web Guide
        • Deposit
        • Withdraw
      • 💻Typescript Guides
        • Deposit
        • Drip
          • Orca Whirlpools
          • SPL Token Swap
        • Withdraw
      • 🦀Rust Guides
      • 💵Fee Structure
Powered by GitBook
On this page

Was this helpful?

  1. Products
  2. Drip
  3. Programming Model

Vault Proto Config

The VaultProtoConfig stores the common configuration for a set of vaults such as fee information, the drip granularity, and the admin that can deploy new vaults using this config.

pub struct VaultProtoConfig {
    pub granularity: u64, // 8
    // spread applied to each drip trigger in bps
    pub token_a_drip_trigger_spread: u16, // 2
    // spread applied to each withdrawal in bps
    pub token_b_withdrawal_spread: u16, // 2
    // spread applied to each withdrawal in bps
    pub token_b_referral_spread: u16, //2
    // to be used with the vault to modify certain fields (whitelist)
    pub admin: Pubkey, //32
}
PreviousProgramming ModelNextVault

Last updated 2 years ago

Was this helpful?

☕
💧
📚