Function get_token_badge_address

pub fn get_token_badge_address(
    token_mint: &Address,
    whirlpool_deployment: Option<WhirlpoolDeployment>,
) -> Result<(Address, u8), ProgramError>
Expand description

Derives the token badge PDA for the given mint under the supplied target program.

Uses WhirlpoolDeployment::default when None.