GET
/
refundLiquidity

Parameter Explanation:

  • jetton0: The address of the first token
  • jetton1: The address of the second token

Example Request:

GET /refundLiquidity?jetton0=0x1234567890&jetton1=0x0987654321

This request will refund liquidity from the liquidity pool composed of the token with address 0x1234567890 and the token with address 0x0987654321.

Successful Response:

{
  "success": true,
  "data": {
    "poolAddress": "0x1234567890abcdef",
    "token1Address": "0x1234567890",
    "token2Address": "0x0987654321",
    "token1Amount": 500,
    "token2Amount": 250,
    "lpTokensBurned": 1000
  }
}

Response Field Explanation:

  • success: Whether the request was successful
  • data.poolAddress: The address of the liquidity pool
  • data.token1Address: The address of the first token
  • data.token2Address: The address of the second token
  • data.token1Amount: The amount of the first token refunded
  • data.token2Amount: The amount of the second token refunded
  • data.lpTokensBurned: The number of liquidity tokens burned

By calling this API endpoint and providing the addresses of the two tokens in the liquidity pool, you can refund the liquidity you provided to the liquidity pool on the ONTON Finance platform. After refunding the liquidity, you will receive the corresponding amount of tokens, and your liquidity tokens will be burned.

Please note that refunding liquidity may affect the price and share of other participants in the liquidity pool. Please carefully consider the impact on the market before refunding a large amount of liquidity.

Query Parameters

jetton0
string
required
jetton1
string
required