Skip to main content

PumpAmmLpTokenPriceTask

Derive the fair LP token price for a given Pump AMM liquidity pool.

Input: Pool address, X token price job, Y token price job. Returns: The fair LP token price for the given Pump AMM liquidity pool. Example: Derive the fair LP token price for a given Pump AMM liquidity pool.

{
"pumpAmmLpTokenPriceTask": {
"pool_address": "Gf7sXMoP8iRw4iiXmJ1nq4vxcRycbGXy5RL8a8LnTd3v", // USDC/SOL
"x_price_job": {
"oracleTask": {
"switchboardAddress": "..." // USDC/USD
}
},
"y_price_job": {
"oracleTask": {
"switchboardAddress": "..." // SOL/USD
}
}
}
}


Fields

NameTypeDescription
 poolAddress

string

Required. The address of the liquidity pool in the Pump AMM.

 xPriceJob

Required. The job to execute to fetch the price of the pool x token

 yPriceJob

Required. The job to execute