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

Testing add unbalanced examples #433

Closed
wants to merge 1 commit into from

Conversation

MattPereira
Copy link
Member

@MattPereira MattPereira commented Oct 15, 2024

Updated the addLiquidityCustom and addLiquidityUnbalanced examples to use same pool alberto is targeting.

Examples run fine here on the SDK repo

pnpm example ./examples/addLiquidity/addLiquidityUnbalanced.ts
pnpm example ./examples/addLiquidity/addLiquidityCustom.ts

here's alberto's error logs for reference

{
    "cause": {
        "metaMessages": [
            "Error: PoolNotInitialized(address pool)",
            "                         (0xd71958aeD5E2e835A648Ff832a181F7BdaBbaF13)"
        ],
        "shortMessage": "The contract function \"queryAddLiquidityUnbalanced\" reverted.",
        "version": "2.21.22",
        "name": "ContractFunctionRevertedError",
        "data": {
            "abiItem": {
                "inputs": [
                    {
                        "internalType": "address",
                        "name": "pool",
                        "type": "address"
                    }
                ],
                "name": "PoolNotInitialized",
                "type": "error"
            },
            "args": [
                "0xd71958aeD5E2e835A648Ff832a181F7BdaBbaF13"
            ],
            "errorName": "PoolNotInitialized"
        }
    },
    "docsPath": "/docs/contract/simulateContract",
    "metaMessages": [
        "Error: PoolNotInitialized(address pool)",
        "                         (0xd71958aeD5E2e835A648Ff832a181F7BdaBbaF13)",
        " ",
        "Contract Call:",
        "  address:   0xB12FcB422aAe6720f882E22C340964a7723f2387\n  function:  queryAddLiquidityUnbalanced(address pool, uint256[] exactAmountsIn, bytes userData)\n  args:                                 (0xd71958aed5e2e835a648ff832a181f7bdabbaf13, [\"0\",\"1000000000000000000\"], 0x)"
    ],
    "shortMessage": "The contract function \"queryAddLiquidityUnbalanced\" reverted.",
    "version": "2.21.22", 

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