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

chore: log multicall v2 pool state error #522

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Conversation

agualis
Copy link
Contributor

@agualis agualis commented Dec 7, 2024

We are hitting this error quite frequently from our integration tests in GHA.

This PR adds a console.log to debug the issue.

@agualis agualis changed the title Chore/log multicall state error chore: log multicall v2 pool state error Dec 7, 2024
Copy link
Member

@brunoguerios brunoguerios left a comment

Choose a reason for hiding this comment

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

Sure! Let us know what you find, so we're able to fix on our end.

@agualis agualis merged commit e8819c5 into main Dec 9, 2024
4 checks passed
@agualis agualis deleted the chore/logMulticallStateError branch December 9, 2024 14:07
@agualis
Copy link
Contributor Author

agualis commented Dec 10, 2024

This is what we get:

at ProportionalAddLiquidityHandler.simulate (/Users/runner/work/frontend-monorepo/frontend-monorepo/packages/lib/modules/pool/actions/add-liquidity/handlers/BaseProportionalAddLiquidity.handler.ts:42:28) {
  cause: [ContractFunctionRevertedError],
  details: undefined,
  docsPath: '/docs/contract/readContract',
  metaMessages: [Array],
  shortMessage: 'The contract function "aggregate3" reverted with the following reason:\n' +
    'failed to get storage for 0xBA12222222228d8Ba445958a75a0704d566BF2C8 at 107707011422490837088752583065249430628904096105598449986072670469746407883117: HTTP error 500 with body: {"id":56,"jsonrpc":"2.0","error":{"message":"Unknown block","code":26}}',
  version: '2.21.54',
  abi: [Array],
  args: [Array],
  contractAddress: '0xca11bde05977b3631167028862be2a173976ca11',
  formattedArgs: undefined,
  functionName: 'aggregate3',
  sender: undefined
}
],
chainId: 137,
poolId: '0xdac42eeb17758daa38caf9a3540c808247527ae3000200000000000000000a2b'

@brunoguerios
Copy link
Member

Do you happen to have the inputs that caused this error?
I can see it's adding liquidity proportionally to this pool, but I can't reproduce the issue 😬
I even added an integration test that is passing on my end.

@agualis
Copy link
Contributor Author

agualis commented Dec 10, 2024

Thanks for checking Bruno 🙏
I will take a look at this after the launch

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.

2 participants