Body
Liquidity 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.
LP public key of the pool to simulate adding liquidity to. The pool must exist and be active.
"03aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899"
Amount of Asset A to simulate adding, in its smallest unit. Must be positive. For constant product pools, actual amount used may be less to maintain the correct ratio.
x >= 0
100000000
Amount of Asset B to simulate adding, in its smallest unit. Must be positive for constant product pools, should be 0 for single-sided pools.
x >= 0
50000
Response
Simulation completed successfully
Response from liquidity addition simulation with expected outcomes.
Amount of LP tokens that would be minted. This represents your share of the pool.
"7071067"
Actual amount of Asset A that would be added to the pool. May be less than requested if ratio adjustment is needed.
x >= 0
100000000
Actual amount of Asset B that would be added to the pool. May be less than requested if ratio adjustment is needed.
x >= 0
50000
Amount of Asset A that would be refunded due to ratio mismatch. Zero if the provided ratio matches the pool ratio.
x >= 0
0
Amount of Asset B that would be refunded due to ratio mismatch. Zero if the provided ratio matches the pool ratio.
x >= 0
0
Your estimated share of the pool after adding liquidity, as a percentage.
"25.5"
Warning message if the simulation detects potential issues. Common warnings include single-sided pool requirements or significant ratio mismatch.
"Impossible to add liquidity to a single-sided pool"