diff --git a/sdks/v4-sdk/src/PositionManager.ts b/sdks/v4-sdk/src/PositionManager.ts index 11dc71b80..d6b546cfc 100644 --- a/sdks/v4-sdk/src/PositionManager.ts +++ b/sdks/v4-sdk/src/PositionManager.ts @@ -190,10 +190,8 @@ export abstract class V4PositionManager { const calldataList: string[] = [] const planner = new V4PositionPlanner() - const isMintAction = isMint(options) - // Encode initialize pool. - if (isMintAction && shouldCreatePool(options)) { + if (isMint(options) && shouldCreatePool(options)) { // No planner used here because initializePool is not supported as an Action calldataList.push( V4PositionManager.encodeInitializePool(position.pool.poolKey, options.sqrtPriceX96!, options.hookData) @@ -206,7 +204,7 @@ export abstract class V4PositionManager { const amount1Max = toHex(maximumAmounts.amount1) // mint - if (isMintAction) { + if (isMint(options)) { const recipient: string = validateAndParseAddress(options.recipient) planner.addMint( position.pool, diff --git a/sdks/v4-sdk/src/index.ts b/sdks/v4-sdk/src/index.ts index 02b2e435d..a1f307e7d 100644 --- a/sdks/v4-sdk/src/index.ts +++ b/sdks/v4-sdk/src/index.ts @@ -1,2 +1,3 @@ export * from './entities' export * from './utils' +export * from './PositionManager'