File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -190,10 +190,8 @@ export abstract class V4PositionManager {
190
190
const calldataList : string [ ] = [ ]
191
191
const planner = new V4PositionPlanner ( )
192
192
193
- const isMintAction = isMint ( options )
194
-
195
193
// Encode initialize pool.
196
- if ( isMintAction && shouldCreatePool ( options ) ) {
194
+ if ( isMint ( options ) && shouldCreatePool ( options ) ) {
197
195
// No planner used here because initializePool is not supported as an Action
198
196
calldataList . push (
199
197
V4PositionManager . encodeInitializePool ( position . pool . poolKey , options . sqrtPriceX96 ! , options . hookData )
@@ -206,7 +204,7 @@ export abstract class V4PositionManager {
206
204
const amount1Max = toHex ( maximumAmounts . amount1 )
207
205
208
206
// mint
209
- if ( isMintAction ) {
207
+ if ( isMint ( options ) ) {
210
208
const recipient : string = validateAndParseAddress ( options . recipient )
211
209
planner . addMint (
212
210
position . pool ,
Original file line number Diff line number Diff line change 1
1
export * from './entities'
2
2
export * from './utils'
3
+ export * from './PositionManager'
You can’t perform that action at this time.
0 commit comments