Skip to content

Commit

Permalink
Update delegation-pool-operations.md (aptos-labs#10299)
Browse files Browse the repository at this point in the history
reorganize page
  • Loading branch information
michelle-aptos authored and Zekun Wang committed Oct 13, 2023
1 parent f8168eb commit cbe9c80
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ slug: "delegation-pool-operations"
Validator operators should follow these instructions to carry out delegation pool operations for [staking](../../../concepts/staking.md). You may delegate as little as 10 APT plus a small add stake fee that will be mostly refunded as rewards at the end of the current 2-hour epoch. You might notice that some UIs might use 11 APT as the minimum for a round number. Note that your validator will become part of the *Active Validator Set* only when the delegation pool satisfies the minimum cumulative [staking requirement of 1 million APT](./staking-pool-operations.md).

Once the delegation pool attains 1 million APT, the pool's owner who initiates the delegation pool should set an operator for the pool via the `set_operator` function described in the [Perform pool owner operations](#perform-pool-owner-operations) section. The operator should then start their own Aptos node, as it is a best practice to have a different account for owner and operator. The operator should now [join in the active set of validators](./staking-pool-operations.md#joining-validator-set).
The delegation pool owner should set an operator for the pool via the `set_operator` function described in the [Perform pool owner operations](#perform-pool-owner-operations) section. The operator should then start their own Aptos node, as it is a best practice to have a different account for owner and operator. Once the delegation pool attains 1 million APT, the operator can join the validator set.

The operator address will receive the pool commission that was set at the initialization of the delegation pool, which is automatically distributed as stake in the delegation pool at the end of each epoch. The operator will act as a normal Delegation Pool account that is able to do all of the operations described in [Perform delegation pool operations](#perform-delegation-pool-operations).

Expand All @@ -19,11 +19,10 @@ The operator address will receive the pool commission that was set at the initia
1. [Install](../../../tools/aptos-cli/install-cli/index.md) and [configure](../../../tools/aptos-cli/use-cli/use-aptos-cli.md#configuration-examples) the Aptos CLI. If you are looking to develop on the Aptos blockchain, debug apps, or perform node operations, the Aptos tool offers a command line interface for these purposes.
2. [Initialize local configuration and create an account](../../../tools/aptos-cli/use-cli/use-aptos-cli.md#initialize-local-configuration-and-create-an-account) on the Aptos blockchain.

## Connect to Aptos network

To create a delegation pool and obtain information about it, [connect to the Aptos Network](./connect-to-aptos-network.md) and launch your own Aptos node.
## Initialize a delegation pool

You can use the following CLI commands to obtain the delegation pool address depending on where you are in the process:
Before initializing a delegation pool, you need to know the delegation pool address. You can use the following CLI commands to obtain the delegation pool address depending on where you are in the process:
- Before you create the delegation pool:
```bash
aptos account derive-resource-account-address --address <owner_address> --seed "aptos_framework::delegation_pool<SEED>" --seed-encoding utf8
Expand All @@ -34,10 +33,6 @@ You can use the following CLI commands to obtain the delegation pool address dep
aptos account derive-resource-account-address
```

## Initialize a delegation pool

Now initialize a delegation pool by following these steps:

1. Run the command below, substitute in the profile you previously configured during initialization:
```bash
aptos move run --profile <your-profile> \
Expand All @@ -57,6 +52,8 @@ Now initialize a delegation pool by following these steps:

4. The delegation pool can now accept a minimum amount of 10 APT from any user who wishes to delegate to it.

5. The delegation pool can now [connect to the Aptos Network](./connect-to-aptos-network.md).

## Perform delegation pool operations

This section describes the available operations that can be performed on this recently created pool. Once the delegation pool has been established, use the Aptos CLI to operate the pool. The available actions that can be performed on it include:
Expand Down

0 comments on commit cbe9c80

Please sign in to comment.