• Derives the program address for a collateral pool associated with a Neon wallet PDA.

    Parameters

    • neonWalletPDA: PublicKey

      The public key of the Neon wallet PDA.

    • collateralPoolIndex: number

      The index of the collateral pool.

    Returns [PublicKey, number]

    A tuple containing the derived public key and a nonce.

    const [poolAddress] = collateralPoolAddress(walletPDA, 0);