Function get_whirlpool_address

pub fn get_whirlpool_address(
    token_mint_a: &Address,
    token_mint_b: &Address,
    fee_tier_index: u16,
    whirlpool_deployment: Option<WhirlpoolDeployment>,
) -> Result<(Address, u8), ProgramError>
Expand description

Derives the whirlpool PDA for the given mint pair and fee tier index under the supplied target program.

Uses WhirlpoolDeployment::default when None.