POST
/
v1
/
liquidity
/
remove
/
simulate
Simulate Remove Liquidity
curl --request POST \
  --url https://api.amm.flashnet.xyz/v1/liquidity/remove/simulate \
  --header 'Content-Type: application/json' \
  --data '{
  "lpTokensToRemove": "100000",
  "poolId": "03aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899",
  "providerPublicKey": "03abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234567"
}'
{
"assetAAmount": "50000000",
"assetBAmount": "25000",
"currentLpBalance": "200000",
"poolShareRemovedPercentage": "50.0",
"warningMessage": null
}

Body

application/json

Liquidity 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.

Response

200
application/json

Simulation completed successfully

Response from liquidity removal simulation with expected outcomes.