Skip to content
Waves Rider edited this page Aug 28, 2023 · 6 revisions

Pools Settings

Global Shutdown

Key: %s__shutdown
Type: Boolean

Pool Status

curl -X 'POST' \
  'https://nodes.wavesnodes.com/utils/script/evaluate/3PCuHsTU58WKhCqotbcSwABvdPzqqVAbbTv?trace=false' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "expr": "getPoolStatusREADONLY(\"3PFzaH2ghpwANHFgjeva83N1yxzErELx2eh\")"
}'

Key: %d%d%s__<internalAmountAsset>__<internalPriceAsset>__config
Type: String
Index: 2

Status Description
0 Active, pool without restrictions
1 Put disabled, pool with put operation disabled
2 Matcher disabled, pool with matcher operations disabled
3 Shutdown, pool operations halted

One Token Operations Disabled

No key means operations are enabled

curl -X 'POST' \
  'https://nodes.wavesnodes.com/utils/script/evaluate/3PCuHsTU58WKhCqotbcSwABvdPzqqVAbbTv?trace=false' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "expr": "isPoolOneTokenOperationsDisabledREADONLY(\"3PFzaH2ghpwANHFgjeva83N1yxzErELx2eh\")"
}'

All pools

Key: %s__oneTokenOperationsDisabled
Type: Boolean

Specific pool

Key: %d%d%s__<amountAssetInternal>__<priceAssetInternal>__oneTokenOperationsDisabled
Type: Boolean

Swap Disabled

No key means operations are enabled

curl -X 'POST' \
  'https://nodes.wavesnodes.com/utils/script/evaluate/3PCuHsTU58WKhCqotbcSwABvdPzqqVAbbTv?trace=false' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "expr": "isPoolSwapDisabledREADONLY(\"3PFzaH2ghpwANHFgjeva83N1yxzErELx2eh\")"
}'

All pools

Key: %s__swapDisabled
Type: Boolean

Specific pool

Key: %d%d%s__<amountAssetInternal>__<priceAssetInternal>__swapDisabled
Type: Boolean