Function get_meteora_vault_from_token_address

Source
pub fn get_meteora_vault_from_token_address(
    token_address: &Pubkey,
    central_context: Arc<CentralContext>,
) -> Arc<RwLock<MeteoraVault>>
Expand description

Get or create a Meteora vault for a given token address

Checks the cache first, and if not found, derives the vault PDA and creates a new vault instance. Ensures only one vault instance exists per token by using the cache’s mutex protection.