Skip to content

Commit

Permalink
Expose toInternal on buildRecovery.
Browse files Browse the repository at this point in the history
  • Loading branch information
johngrantuk committed Aug 17, 2023
1 parent 7eaa1ff commit d3cd4c4
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 d3cd4c4

Please sign in to comment.