Merchant Auto-Sweep, Rebalance & Distribution Strategy Configuration Guide
This guide will walk you through configuring the auto-sweep, rebalance, and distribution strategies in the merchant admin console to automate your fund management.
This guide will walk you through configuring the auto-sweep, rebalance, and distribution strategies in the merchant admin console to automate your fund management.
This guide is intended for merchant operations and fund security teams. It covers the full workflow for cold contract replacement, emergency sweep address setup, emergency withdrawal address setup, and high-risk fund handling.
You can execute the process in the following order:
A cross-chain bridge is a protocol mechanism used to transfer assets between different blockchain networks. Because various public blockchains (such as TRON, Ethereum, BSC, etc.) are independent and use incompatible protocols, assets cannot be transferred directly. Cross-chain bridges enable equivalent circulation of the same asset across different chains through mechanisms like "lock → mint" or "swap → release".
This admin console already has built-in cross-chain swap functionality, allowing you to complete asset transfers between major blockchains without integrating an external bridge. It works similarly to "currency exchange": select the asset to sell, choose the destination chain for the asset to buy, enter the receiving address on the counterparty chain, and confirm to complete the cross-chain transfer.
| Feature | Description |
|---|---|
| Supported Assets | USDT and other mainstream stablecoins, native coins |
| Supported Chains | TRON (TRC20)、Ethereum (ERC20)、BSC (BEP20), etc. |
| Fund Source | Hot wallet (Finance) account balance |
| Settlement Time | Typically within minutes (subject to on-chain congestion) |
| Fees | Charged by the cross-chain bridge at real-time rates (included in the swap rate) |
A user's sub-contract can sometimes be contaminated by malicious transfers (e.g., receiving blacklisted USDT). If a normal sweep is performed, the blacklisted funds would be transferred into the cold contract, putting the merchant's main funds at risk. To prevent this, merchants should first blacklist the contaminated sub-contract to exclude it from the normal sweep flow, then use the emergency sweep feature to sweep the funds to a safe external address instead of the cold contract, achieving risk isolation.
The steps to use the emergency sweep feature are as follows:
This tutorial will guide you on how to repair orders where users have overpaid or underpaid through the backend management system.
Before starting to repair orders, please ensure you have the following information:
According to the operating mode of Pay Protocol, the funds paid or recharged by customers will be stored in the merchant's sub-contract. Merchants can extract the funds to their own wallets through the "Sweep"-"Rebalance"-"Transfer" process.
For ease of expression, this article uses "hot wallet" to refer to the hot contract address of the Pro version.