Skip to main content

Merchant Auto-Sweep, Rebalance & Distribution Strategy Configuration Guide

ยท 6 min read
Pay Protocol Support
Pay Protocol Support
Pay Protocol BD & Support Team

This guide will walk you through configuring the auto-sweep, rebalance, and distribution strategies in the merchant admin console to automate your fund management.

1. Access the Strategy Settings Pageโ€‹

Log in to the admin console and navigate to:

Configuration โ†’ Strategy Settings

On this page, you can configure prepaid accounts, sweep strategies, rebalance strategies, and withdrawal/distribution strategies.

Strategy settings entry


2. Enable the Prepaid Accountโ€‹

By default, you will land on the Prepaid Account tab.

If the status shows Disabled, toggle the switch on the right to enable it.

Prepaid account disabled

Once enabled, the status will change to Enabled and a Deposit button will appear.

Prepaid account enabled


3. Deposit to the Prepaid Balanceโ€‹

Click the Deposit button to open the deposit dialog.

Steps:

  1. Select a deposit network, e.g. BSC(BEP20);
  2. The system will generate a deposit address and QR code for the selected network;
  3. Click Copy to copy the deposit address;
  4. Send USDT to this address from your wallet or exchange;
  5. After the deposit is confirmed, refresh the page to check your balance.

Deposit dialog

Important

Make sure to select the correct network. If the page shows BSC(BEP20), you must send via the BSC(BEP20) network. Do not deposit any tokens other than USDT.


4. Configure the Sweeping Strategyโ€‹

Navigate to Strategy Settings and select the Sweeping Strategy tab.

The sweeping strategy automatically collects funds from sub-contracts when their balances reach the configured thresholds.

Configurable items:

SettingDescription
Current ChainThe blockchain network being configured, e.g. BSC(BEP20)
Strategy StatusEnable or disable the strategy
Pollution BlockingWhen enabled, abnormal sub-contracts are blacklisted and excluded from sweeping
Total Sub-Contract Balance ThresholdTrigger sweep when the cumulative balance of all sub-contracts exceeds this amount
Single Sub-Contract Balance ThresholdTrigger sweep when a single sub-contract balance exceeds this amount

After configuration, click Save Sweeping Strategy.

Sweeping strategy configuration


5. Configure the Rebalancing Strategyโ€‹

Select the Rebalancing Strategy tab.

The rebalancing strategy automatically triggers withdrawals when cold or hot wallet balances reach the configured thresholds.

Configurable items:

SettingDescription
Current ChainThe blockchain network being configured
Strategy StatusEnable or disable the strategy
Cold Contract ThresholdTrigger withdrawal when the cold wallet/cold contract balance exceeds this amount
Hot Contract ThresholdTrigger withdrawal or refill when the hot wallet balance falls below this amount

After configuration, click Save Rebalancing Strategy.

Rebalancing strategy configuration


6. Configure the Withdrawal/Distribution Strategyโ€‹

Select the Withdrawal Strategy tab.

The withdrawal/distribution strategy limits the number of wallets and maximum amount processed per task to prevent excessive processing in a single run.

Configurable items:

SettingDescription
Current ChainThe blockchain network being configured
Strategy StatusEnable or disable the strategy
Max Wallets Per TaskMaximum number of wallets processed per task run
Max Withdrawal Amount Per TaskMaximum amount allowed per task run

After configuration, click Save Withdrawal Strategy.

Withdrawal strategy configuration

Note

To use the distribution feature, please contact the platform for pre-configuration and transfer funds to the designated distribution address.


7. Create Sub-Contract Addressesโ€‹

Navigate to:

Funds โ†’ Sub-Contracts

On this page, you can view existing sub-contract addresses, types, statuses, balances, and last update times.

Sub-contract list


8. Batch Create Sub-Contractsโ€‹

Click the Create button to open the sub-contract creation dialog.

Fill in the following:

FieldDescription
QuantityNumber of sub-contracts to create
Sub-Contract TypeChoose from Recharge, Payment, etc.
SubmitConfirm and create sub-contracts

After filling in, click Submit.

Create sub-contract dialog


9. Sub-Contract Typesโ€‹

1. Recharge Sub-Contractโ€‹

Recharge sub-contract addresses can be provided directly to users for deposits.

Use cases:

  1. Assign a fixed deposit address to users;
  2. Users transfer USDT directly to this address;
  3. The system monitors incoming funds and sweeps them according to the strategy.

2. Payment Sub-Contractโ€‹

Payment sub-contracts are used for payment pool scaling. Merchants generally do not need to create them manually.

When a merchant creates a payment link, the system automatically generates a payment sub-contract address.


10. Complete Operation Workflowโ€‹

  1. Log in to the admin console with a super admin account;
  2. Navigate to System Configuration โ†’ Strategy Configuration;
  3. Toggle on the Prepaid Account switch;
  4. Click Top Up, select the network and copy the deposit address;
  5. Send USDT to the deposit address via the corresponding network;
  6. Refresh the page after deposit to confirm the prepaid balance has increased;
  7. Navigate to Strategy Settings;
  8. Configure the Sweeping Strategy;
  9. Configure the Rebalancing Strategy;
  10. Configure the Withdrawal/Distribution Strategy;
  11. Click the corresponding save button after configuring each strategy;
  12. Navigate to Funds โ†’ Sub-Contracts;
  13. Click Create;
  14. Select the sub-contract type and enter the quantity;
  15. Click Submit to generate sub-contract addresses;
  16. Provide the recharge sub-contract addresses to users for deposits.

11. Important Notesโ€‹

Important
  1. Before using auto-sweep, rebalance, or distribution strategies, you must enable the prepaid account and complete a top-up.
  2. Prepaid account fees are deducted from the balance for each on-chain transaction.
  3. Always select the correct network when topping up to avoid loss of funds.
  4. Strategies must be saved after configuration, otherwise they will not take effect.
  5. When pollution blocking is enabled, abnormal sub-contracts may be blacklisted and excluded from sweeping, and will be processed separately.
  6. Recharge sub-contract addresses can be provided directly to users for deposits.
  7. Payment sub-contracts are for payment pool scaling; most merchants do not need to create them manually.
  8. When creating payment links, the system automatically generates payment sub-contract addresses.
  9. The distribution feature requires platform pre-configuration and funds must be transferred to the designated distribution address.
  10. If the prepaid balance is insufficient, auto-sweep, rebalance, or distribution tasks may not execute properly.