Skip to main content

find_user_stake_program_address

Function find_user_stake_program_address 

Source
pub fn find_user_stake_program_address(
    program_id: &Pubkey,
    user_wallet: &Pubkey,
    seed: u64,
) -> (Pubkey, u8)
Expand description

Generates the user stake account PDA for session-based withdrawals. The PDA is derived from the user’s wallet and a unique seed.