Skip to content

Commit

Permalink
Merge pull request #522 from balancer/expose-tointernal
Browse files Browse the repository at this point in the history
Expose toInternal on buildRecovery.
  • Loading branch information
brunoguerios authored Aug 17, 2023
2 parents 7eaa1ff + d3cd4c4 commit 5c47959
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion balancer-js/src/modules/pools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,13 @@ export class Pools implements Findable<PoolWithMethods> {
bptAmount,
userAddress,
slippage,
toInternalBalance,
}: {
pool: Pool;
bptAmount: string;
userAddress: string;
slippage: string;
toInternalBalance?: boolean;
}): ExitExactBPTInAttributes {
const concerns = PoolTypeConcerns.from(pool.poolType);
if (!concerns || !concerns.exit.buildRecoveryExit)
Expand All @@ -413,7 +415,7 @@ export class Pools implements Findable<PoolWithMethods> {
pool,
bptIn: bptAmount,
slippage,
toInternalBalance: false,
toInternalBalance: !!toInternalBalance,
});
}

Expand Down

0 comments on commit 5c47959

Please sign in to comment.