Skip to content

Commit

Permalink
LBP -> v12
Browse files Browse the repository at this point in the history
  • Loading branch information
jonator committed Sep 29, 2022
1 parent eec1b84 commit 644f9b3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/pools/src/weighted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,18 @@ export class WeightedPool implements Pool {
}

get smoothWeightChange(): SmoothWeightChangeParams | undefined {
if (this.raw.poolParams.smoothWeightChangeParams !== null) {
const { start_time, duration, initialPoolWeights, targetPoolWeights } =
this.raw.poolParams.smoothWeightChangeParams;
if (this.raw.pool_params.smooth_weight_change_params !== null) {
const {
start_time,
duration,
initial_pool_weights,
target_pool_weights,
} = this.raw.pool_params.smooth_weight_change_params;
return {
startTime: start_time,
duration,
initialPoolWeights,
targetPoolWeights,
initialPoolWeights: initial_pool_weights,
targetPoolWeights: target_pool_weights,
};
}
}
Expand Down

1 comment on commit 644f9b3

@vercel
Copy link

@vercel vercel bot commented on 644f9b3 Sep 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.