Skip to main content

Module pda

Module pda 

Source
Expand description

PDA derivation helpers for Kvault accounts.

Each function calls Pubkey::find_program_address with the documented seeds and returns (address, bump).

Constants§

BASE_VAULT_AUTHORITY_SEED
Seed for the vault authority PDA.
CTOKEN_VAULT_SEED
Seed for per-reserve cToken vault PDAs.
EVENT_AUTHORITY
Seed for the Anchor event authority PDA.
GLOBAL_CONFIG_SEED
Seed for the global config PDA.
SHARES_SEED
Seed for the shares mint PDA.
TOKEN_VAULT_SEED
Seed for the token vault PDA.
WHITELISTED_RESERVES_SEED
Seed for reserve whitelist entry PDAs.

Functions§

base_vault_authority
Vault authority PDA that signs CPI calls on behalf of the vault.
ctoken_vault
Token account holding cTokens received from a specific Klend reserve.
event_authority
Anchor event authority PDA (used for event_cpi accounts).
global_config
System-wide vault configuration account.
shares_mint
SPL mint for vault share tokens issued to depositors.
token_vault
Token account holding the vault’s uninvested liquidity.
whitelisted_reserve
Whitelist entry PDA for a specific Klend reserve.