whirlpools
whirlpools copied to clipboard
throw new Error(`Unable to fetch Whirlpool at address at ${poolAddress}`);
I'm try to implement the SDK to perform token swaps, I pass in the SPL Token mint addresses for the input and output token, so I can get the PDA and in turn use it to get the pool data, but apparently the whirlpoolPDA. I get from PDAUtil.getWhirlpool is not valid, and i get a throw new Error(
Unable to fetch Whirlpool at address at ${poolAddress});
The docs makes reference that that parameter is the whirlpoolsConfigKey but I believe its the whirlpools Address. PS: There's not other reference to what a WhirlpoolConfigKey is anywhere the Orca's docs. The whirlpoolProgramId and ConfigAddress are whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc and 2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ