This endpoint allows users to preview the results of adding liquidity before execution. It calculates the expected LP tokens to be minted, actual amounts that would be used, and any refunds due to ratio mismatch, without actually performing the operation.
The simulation:
Simulations are read-only operations and don’t require authentication.
poolId
- LP public key of the poolassetAAmount
- Amount of Asset A to simulate addingassetBAmount
- Amount of Asset B to simulate adding200 OK
with simulation results400 Bad Request
if pool invalid or amounts inappropriate500 Internal Server Error
if simulation failsLiquidity addition simulation parameters
Request body for simulating liquidity addition without executing it.
Simulation allows users to preview the results including actual amounts that would be added, LP tokens that would be minted, and any refunds due to ratio mismatch.
Simulation completed successfully
Response from liquidity addition simulation with expected outcomes.