From 0a15f848fcdff77ee9bf5fc5d5517ef1203d27ac Mon Sep 17 00:00:00 2001 From: johngrantuk Date: Fri, 26 Jul 2024 16:05:16 +0100 Subject: [PATCH] fix: Use correct name for remove. --- typescript/src/stable/stablePool.ts | 2 +- typescript/src/vault/types.ts | 2 +- typescript/src/weighted/weightedPool.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/typescript/src/stable/stablePool.ts b/typescript/src/stable/stablePool.ts index 47bb8f9..bbc3866 100644 --- a/typescript/src/stable/stablePool.ts +++ b/typescript/src/stable/stablePool.ts @@ -50,7 +50,7 @@ export class Stable implements PoolBase { return MAX_UINT256; } - getMaxSingleTokenExitAmount( + getMaxSingleTokenRemoveAmount( isExactIn: boolean, totalSupply: bigint, tokenOutBalance: bigint, diff --git a/typescript/src/vault/types.ts b/typescript/src/vault/types.ts index 5582c13..fe579b0 100644 --- a/typescript/src/vault/types.ts +++ b/typescript/src/vault/types.ts @@ -17,7 +17,7 @@ export enum SwapKind { export interface PoolBase { getMaxSwapAmount(maxSwapParams: MaxSwapParams): bigint; - getMaxSingleTokenExitAmount( + getMaxSingleTokenRemoveAmount( isExactIn: boolean, totalSupply: bigint, tokenOutBalance: bigint, diff --git a/typescript/src/weighted/weightedPool.ts b/typescript/src/weighted/weightedPool.ts index 264a50d..59bcc84 100644 --- a/typescript/src/weighted/weightedPool.ts +++ b/typescript/src/weighted/weightedPool.ts @@ -44,7 +44,7 @@ export class Weighted implements PoolBase { return MAX_UINT256; } - getMaxSingleTokenExitAmount( + getMaxSingleTokenRemoveAmount( isExactIn: boolean, totalSupply: bigint, tokenOutBalance: bigint,