Skip to content

Commit

Permalink
Merge branch 'master' into fee-distribution-veBAL-claimer
Browse files Browse the repository at this point in the history
* master:
  Authorizer: Migration script (#1173)
  Managed Pool: BPT management fees (#1163)
  Improve token checkpointing logic (#1217)
  Prevent late lockers from having to claim many weeks of zero-value distributions (#1218)
  fix: make sure to use EVM time when calculating startTime (#1221)
  • Loading branch information
TomAFrench committed Apr 7, 2022
2 parents 5b6be96 + e3127d1 commit b50166d
Show file tree
Hide file tree
Showing 42 changed files with 477,160 additions and 652 deletions.
17 changes: 0 additions & 17 deletions pkg/balancer-js/src/pool-weighted/encoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export enum WeightedPoolExitKind {
EXACT_BPT_IN_FOR_ONE_TOKEN_OUT = 0,
EXACT_BPT_IN_FOR_TOKENS_OUT,
BPT_IN_FOR_EXACT_TOKENS_OUT,
MANAGEMENT_FEE_TOKENS_OUT,
}

export class WeightedPoolEncoder {
Expand Down Expand Up @@ -91,19 +90,3 @@ export class WeightedPoolEncoder {
[WeightedPoolExitKind.BPT_IN_FOR_EXACT_TOKENS_OUT, amountsOut, maxBPTAmountIn]
);
}

export class ManagedPoolEncoder {
/**
* Cannot be constructed.
*/
private constructor() {
// eslint-disable-next-line @typescript-eslint/no-empty-function
}

/**
* Encodes the userData parameter for exiting a ManagedPool for withdrawing management fees.
* This can only be done by the pool owner.
*/
static exitForManagementFees = (): string =>
defaultAbiCoder.encode(['uint256'], [WeightedPoolExitKind.MANAGEMENT_FEE_TOKENS_OUT]);
}
Loading

0 comments on commit b50166d

Please sign in to comment.