Get Refund Liquidity
Parameter Explanation:
jetton0
: The address of the first tokenjetton1
: The address of the second token
Example Request:
This request will refund liquidity from the liquidity pool composed of the token with address 0x1234567890
and the token with address 0x0987654321
.
Successful Response:
Response Field Explanation:
success
: Whether the request was successfuldata.poolAddress
: The address of the liquidity pooldata.token1Address
: The address of the first tokendata.token2Address
: The address of the second tokendata.token1Amount
: The amount of the first token refundeddata.token2Amount
: The amount of the second token refundeddata.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.