-
Notifications
You must be signed in to change notification settings - Fork 2
Pools
Waves Rider edited this page Aug 28, 2023
·
6 revisions
Key: %s__shutdown
Type: Boolean
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
Statuses:
- Active = 1, pool without restrictions
- Put disabled = 2, pool with put operation disabled
- Matcher disabled = 3, pool with matcher operations disabled
- Shutdown = 4, pool operations halted
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\")"
}'
Key: %s__oneTokenOperationsDisabled
Type: Boolean
Key: %d%d%s__<amountAssetInternal>__<priceAssetInternal>__oneTokenOperationsDisabled
Type: Boolean
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\")"
}'
Key: %s__swapDisabled
Type: Boolean
Key: %d%d%s__<amountAssetInternal>__<priceAssetInternal>__swapDisabled
Type: Boolean