From 605f231b68c2619d3cd298977c7a237127af0f58 Mon Sep 17 00:00:00 2001 From: Bruno Eidam Guerios Date: Mon, 17 Jul 2023 14:05:19 -0300 Subject: [PATCH] Remove CS pool version check from join concern --- .../pool-types/concerns/composableStable/join.concern.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/balancer-js/src/modules/pools/pool-types/concerns/composableStable/join.concern.ts b/balancer-js/src/modules/pools/pool-types/concerns/composableStable/join.concern.ts index a438d06b1..7651fd8e6 100644 --- a/balancer-js/src/modules/pools/pool-types/concerns/composableStable/join.concern.ts +++ b/balancer-js/src/modules/pools/pool-types/concerns/composableStable/join.concern.ts @@ -107,9 +107,9 @@ 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( @@ -117,10 +117,6 @@ export class ComposableStablePoolJoin implements JoinConcern { // values.amountsIn, // values.pool // ); - else - throw new Error( - `Unsupported ComposablePool Version ${pool.poolTypeVersion}` - ); } /**