From eaa2d57b82db8548e7c0057908bb814563fc507b Mon Sep 17 00:00:00 2001 From: McSam Date: Fri, 10 May 2024 12:35:15 +0800 Subject: [PATCH] fix: constant type error --- ts-client/src/dlmm/constants/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ts-client/src/dlmm/constants/index.ts b/ts-client/src/dlmm/constants/index.ts index 3261638..90f22dc 100644 --- a/ts-client/src/dlmm/constants/index.ts +++ b/ts-client/src/dlmm/constants/index.ts @@ -34,9 +34,7 @@ const CONSTANTS = Object.entries(IDL.constants); export const MAX_BIN_ARRAY_SIZE = new BN( CONSTANTS.find(([k, v]) => v.name == "MAX_BIN_PER_ARRAY")?.[1].value ?? 0 ); -export const MAX_BIN_PER_POSITION = new BN( - CONSTANTS.find(([k, v]) => v.name == "MAX_BIN_PER_POSITION")?.[1].value ?? 0 -); +export const MAX_BIN_PER_POSITION = new BN(70); export const BIN_ARRAY_BITMAP_SIZE = new BN( CONSTANTS.find(([k, v]) => v.name == "BIN_ARRAY_BITMAP_SIZE")?.[1].value ?? 0 );