Administrative Operations

Administrative operations include creating banks and vaults, managing oracle price feeds, controlling team investment activities, and emergency circuit breaker functionality.

These operations are restricted to specific authorized accounts and require elevated privileges compared to user operations. For user-facing operations like minting and burning USD*, see User Operations.

Administrative Instruction Categories

Administrative operations in the bankineco program fall into several key categories:

System Creation and Configuration

  • Bank Creation: Initialize new banks that can issue USD* tokens

  • Vault Creation: Create new vaults for different asset types and yield strategies

  • Team Account Setup: Establish team accounts for vault management and fee collection

  • Oracle Configuration: Set up price feed mechanisms for yield-bearing assets

Price and Yield Management

  • Oracle Price Updates: Update asset prices from authorized oracle sources

  • Yield Information Updates: Report external yield generation for investment vaults

Team Investment Operations

  • External Investment Withdrawals: Move assets from vaults to external yield strategies

  • Investment Returns: Deposit returns from external investments back to vaults

  • Fee Collection: Withdraw accumulated fees to team accounts

Vault Configuration

Vault Creation Process

The create_gen_vault instruction initializes a new vault with specified parameters:

Parameter
Description
Validation

vault_type

Type of vault (YieldBearing, UnCollateralizedExternalYield, etc.)

Must be valid VaultType enum

yielding_token_index

Index for the yielding token within the bank

Must be unique within bank

default_fee_bps

Default fee in basis points for minting/burning

Applied to both minting and burning

The vault is initially created in a halted state and requires additional configuration before it can accept user operations. Key initialization includes:

  • Setting vault type and yielding token configuration

  • Creating associated token account for holding vault assets

  • Registering vault in the bank's vault registry

  • Initializing accounting fields to zero

  • Setting default fee structures

Investment Withdrawal Flow

The team_withdraws_to_invest instruction:

  • Validates the caller is the authorized external yield manager

  • Transfers yielding tokens from vault to external manager

  • Updates accounting to track external investment amounts

  • Maintains vault state consistency through sanitization checks

Investment Return Flow

The team_deposits_from_invest instruction reverses the investment process by returning tokens to the vault and reducing the tracked external investment amounts.

Last updated