Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pool init error for pool creation UI #509

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MattPereira
Copy link
Member

@MattPereira MattPereira commented Nov 29, 2024

I can't seem to figure out why SDK query for poolState is failing. See code comment below

I have confirmed using the vaultExplorer contract that the pool is registered and getPoolTokens works there.

At this point, I'm unsure if bug is in SDK or pool creation UI

Resources

  • pool address: 0xF5A25990da505a9d4C3E0d876f3951E9EDF9ABC3
  • vault address: 0xBC582d2628FcD404254a1e12CB714967Ce428915
  • vault explorer address: 0xa9F171e84A95c103aD4aFAC3Ec83810f9cA193a8
  • Tenderly call at vault with vaultExtension ABI

@MattPereira MattPereira marked this pull request as ready for review November 29, 2024 21:32
Comment on lines +71 to +82
const vaultExplorer = getContract({
abi: vaultExplorerAbi_V3,
address: VAULT_EXPLORER_V3[chainId],
client: client,
});
return (await vaultV3.read.getPoolTokens([poolAddress])) as Address[];
return (await vaultExplorer.read.getPoolTokens([
poolAddress,
])) as Address[];
} catch (e) {
console.warn(e);
throw new Error(
`Error: Unable to get pool tokens using this pool address: ${poolAddress}`,
`Unable to get pool tokens using this pool address: ${poolAddress}`,
Copy link
Member Author

@MattPereira MattPereira Nov 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaning towards bug is probably on the pool creation UI side of things if SDK tests arent failing

Somehow I am able to manually recreate poolstate and it works fine, but attempt to fetch with SDK results in PoolNotRegistered error

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant