Skip to content

Commit

Permalink
Adding missing parameters to sdk.pools.buildExitExactBPTIn method;
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiz Gustavo Abou Hatem De Liz committed Sep 11, 2023
1 parent f4879f0 commit 2b576ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion balancer-js/src/modules/pools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,15 @@ export class Pools implements Findable<PoolWithMethods> {
bptAmount,
userAddress,
slippage,
shouldUnwrapNativeAsset,
singleTokenOut,
}: {
pool: Pool;
bptAmount: string;
userAddress: string;
slippage: string;
shouldUnwrapNativeAsset?: boolean;
singleTokenOut?: string;
}): ExitExactBPTInAttributes {
const concerns = PoolTypeConcerns.from(pool.poolType);
if (!concerns || !concerns.exit.buildExitExactBPTIn)
Expand All @@ -388,7 +392,8 @@ export class Pools implements Findable<PoolWithMethods> {
slippage,
wrappedNativeAsset:
this.networkConfig.addresses.tokens.wrappedNativeAsset.toLowerCase(),
shouldUnwrapNativeAsset: false,
shouldUnwrapNativeAsset: shouldUnwrapNativeAsset ?? false,
singleTokenOut: singleTokenOut ?? undefined,
toInternalBalance: false,
});
}
Expand Down

0 comments on commit 2b576ee

Please sign in to comment.