Function get_oracle_address

pub fn get_oracle_address(
    whirlpool: &Address,
    program_id: Option<Address>,
) -> Result<(Address, u8), ProgramError>
Expand description

Derives the oracle PDA for the given whirlpool under the supplied target program.

Uses the mutable Whirlpool program (“whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc”) when None.