Skip to main content
The ixDepositLiquidity method on the MarketThree class creates a new LP position by depositing PT and SY tokens within a specified APY range.
This is a low-level method that requires you to already hold PT and SY tokens. To provide liquidity from base assets (e.g., USDC), use ixWrapperProvideLiquidity or ixProvideLiquidityClassic instead.

Usage

The signers value is the generated LP position keypair. You must include it when signing the transaction, otherwise the transaction will fail.
The lowerTickKey and upperTickKey parameters are decimal numbers — use 0.05 for 5% APY, not 500 or 50000.

Required Parameters

Optional Parameters

Returns

Returns an object with:
  • ix — The TransactionInstruction that deposits liquidity
  • signers — The LP position Keypair (must be included when signing)