@@ -179,7 +179,7 @@ export async function increaseLiquidityInstructions(
179179 positionMintAddress : Address ,
180180 param : IncreaseLiquidityQuoteParam ,
181181 slippageToleranceBps : number = SLIPPAGE_TOLERANCE_BPS ,
182- authority : TransactionSigner = FUNDER ,
182+ authority : TransactionSigner < string > = FUNDER ,
183183) : Promise < IncreaseLiquidityInstructions > {
184184 assert (
185185 authority . address !== DEFAULT_ADDRESS ,
@@ -302,14 +302,15 @@ async function internalOpenPositionInstructions(
302302 mintA : Account < Mint > ,
303303 mintB : Account < Mint > ,
304304 slippageToleranceBps : number = SLIPPAGE_TOLERANCE_BPS ,
305- funder : TransactionSigner = FUNDER ,
305+ funder : TransactionSigner < string > = FUNDER ,
306306) : Promise < OpenPositionInstructions > {
307307 assert (
308308 funder . address !== DEFAULT_ADDRESS ,
309309 "Either supply a funder or set the default funder" ,
310310 ) ;
311311 const instructions : Instruction [ ] = [ ] ;
312312
313+ // rpc as Parameters<typeof fetchSysvarRent>[0],
313314 const rent = await fetchSysvarRent ( rpc ) ;
314315 let nonRefundableRent : bigint = 0n ;
315316
@@ -509,7 +510,7 @@ export async function openFullRangePositionInstructions(
509510 poolAddress : Address ,
510511 param : IncreaseLiquidityQuoteParam ,
511512 slippageToleranceBps : number = SLIPPAGE_TOLERANCE_BPS ,
512- funder : TransactionSigner = FUNDER ,
513+ funder : TransactionSigner < string > = FUNDER ,
513514) : Promise < OpenPositionInstructions > {
514515 const whirlpool = await fetchWhirlpool ( rpc , poolAddress ) ;
515516 const tickRange = getFullRangeTickIndexes ( whirlpool . data . tickSpacing ) ;
@@ -582,7 +583,7 @@ export async function openPositionInstructions(
582583 lowerPrice : number ,
583584 upperPrice : number ,
584585 slippageToleranceBps : number = SLIPPAGE_TOLERANCE_BPS ,
585- funder : TransactionSigner = FUNDER ,
586+ funder : TransactionSigner < string > = FUNDER ,
586587) : Promise < OpenPositionInstructions > {
587588 const whirlpool = await fetchWhirlpool ( rpc , poolAddress ) ;
588589 assert (
0 commit comments