Skip to content

Commit

Permalink
Merge pull request #489 from balancer/composable-v5
Browse files Browse the repository at this point in the history
Remove CS pool version check from join concern
  • Loading branch information
brunoguerios committed Jul 17, 2023
2 parents f83d643 + 605f231 commit 3941002
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,16 @@ export class ComposableStablePoolJoin implements JoinConcern {
* V2: Reintroduced proportional exits. Has vulnerability.
* V3: Fixed vulnerability. Functionally the same as V2.
* V4: Update to use new create method with new salt parameter
* V5: Fixed vulnerability. Functionally the same as V4.
*/
if (pool.poolTypeVersion <= 4)
return this.sortV1(wrappedNativeAsset, tokensIn, amountsIn, pool);
return this.sortV1(wrappedNativeAsset, tokensIn, amountsIn, pool);
// Not release yet and needs tests to confirm
// else if (values.pool.poolTypeVersion === 5)
// sortedValues = this.sortV4(
// values.tokensIn,
// values.amountsIn,
// values.pool
// );
else
throw new Error(
`Unsupported ComposablePool Version ${pool.poolTypeVersion}`
);
}

/**
Expand Down

0 comments on commit 3941002

Please sign in to comment.