This endpoint allows users to preview the results of removing liquidity before execution. It calculates the expected amounts of both assets that would be returned based on the current pool reserves and the LP tokens to be burned.
The simulation:
When removing liquidity:
Simulations are read-only operations and don’t require authentication. However, the provider’s public key is used to check their LP balance.
pool_id
- LP public key of the poolprovider_public_key
- Public key of the liquidity providerlp_tokens_to_remove
- Amount of LP tokens to simulate burning200 OK
with simulation results400 Bad Request
if validation fails or insufficient balance500 Internal Server Error
if simulation failsLiquidity removal simulation parameters
Request body for simulating liquidity removal without executing it.
Simulation allows users to preview how much of each asset they would receive when burning their LP tokens.
Simulation completed successfully
Response from liquidity removal simulation with expected outcomes.