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_cpiaccounts). - 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.