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

AddLiquidityV2.query - proportional fails for WeightedPool2Tokens #534

Open
mkflow27 opened this issue Dec 12, 2024 · 0 comments
Open

AddLiquidityV2.query - proportional fails for WeightedPool2Tokens #534

mkflow27 opened this issue Dec 12, 2024 · 0 comments

Comments

@mkflow27
Copy link
Contributor

The sdk builds userData with the below fn. However for WeightedPool2Tokens, proportional joins do not exist. Therefor the query reverts, when the userData is being decoded on the smart contracts.

static addLiquidityProportional = (bptAmountOut: bigint): Hex => {
        return encodeAbiParameters(
            [{ type: 'uint256' }, { type: 'uint256' }],
            [
                BigInt(WeightedPoolJoinKind.ALL_TOKENS_IN_FOR_EXACT_BPT_OUT),
                bptAmountOut,
            ],
        );
    };
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

No branches or pull requests

1 participant