Overview
Creating smart contracts and configuring auto sweeping rules through the Custody web interface ensures that the system executes corresponding auto sweep operations according to the rules during the sweeping process. Simultaneously, by authorizing sub-wallets for sweeping contract in the App, you can precisely determine which sub-wallets have the right to sweep assets.Configure Auto Sweeping Rule Process
Configuring auto sweeping rules involves three processes:- Create and publish a sweeping contract.
- Configure sweeping assets.
- Contract authorization.
Step 1: Create and Publish a Sweeping Contract
1
Create and Publish a Sweeping Contract
In the MPC web interface, select “Sweep ERC-20 Tokens,” and click ”+” to create a sweeping contract.
2
Edit Auto Sweep Rules
- Enter the rule name, select the main chain, and confirm the sweeping address.
- Choose the aimed sub-wallet to receive assets.
3
Sign and Publish the Contract
The private key holder signs using the Custody App to scan the code, and the auto sweep rule is successfully published.
Step 2: Configure Sweeping Assets
1
Edit Sweeping Threshold
Click Edit button on the Sweep ERC-20 Tokens page, and click ”+” on the edit page to add tokens.
2
Edit Sweeping Threshold
After adding the tokens that need sweeping, click “Edit Threshold” to set the sweeping threshold: trigger auto sweeping when the asset amount exceeds the threshold.
Step 3: Contract Authorization
1
Open Sweep Tokens Feature
Log in and open the Custody App, switch to the MPC system, and open the “Discover - Sweep Tokens” function.
2
Authorization Management
Click on “Authorization Management” . The private key holder needs to sign with the private key to authorize the sub-wallet.