Skip to content

Commit

Permalink
cleanup after applying bot comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed May 24, 2024
1 parent 6732a29 commit 7311d74
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/docs/features/democracy-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ With these changes, Governators can become community advocates that can speciali

Additionally, Governators can choose to provide additional infrastructure such as RPC/API access points, archive nodes, indexers and similar software.

### Tokenomics
#### Tokenomics

The consumer chain's token will remain a governance and reward token. The token's parameters (inflation, max supply, burn rate) are not affected.

:::info
Staking rewards are distributed to all Governators and their delegators after distributing the rewards to the provider chain's validator set.
:::

## Integration
### Integration

The `x/ccv/democracy/staking` module provides these `x/staking` overrides:

Expand Down Expand Up @@ -76,7 +76,7 @@ func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.Val

To integrate the `democracy/staking` follow this guide:

### 1. confirm that no modules are returning validator updates
#### 1. confirm that no modules are returning validator updates

:::tip
Only the `x/ccv/consumer` module should be returning validator updates.
Expand Down Expand Up @@ -224,7 +224,7 @@ func NewApp(...) {
}
```

### Governance
## Governance

The `x/ccv/democracy/governance` module extends the `x/governance` module with the functionality to filter proposals.

Expand All @@ -234,7 +234,7 @@ Consumer chains can limit in the types of governance proposals that can be execu

The module uses `AnteHandler` to limit the types of proposals that can be executed.

#### Integrating governance
### Integration

Add new `AnteHandler` to your `app`.

Expand Down Expand Up @@ -447,13 +447,13 @@ func NewApp(...) {
}
```

### Distribution
## Distribution

:::tip
The `democracy/distribution` module allows the consumer chain to send rewards to the provider chain while retaining the `x/distribution` module for internal reward distribution to Governators and stakers.
:::

#### How it works
### How it works

First, a % of rewards to be distributed to the provider chain's validator set is calculated and sent to the provider chain. Only opted-in validators from the provider chain will receive the consumer rewards.

Expand All @@ -467,7 +467,7 @@ e.g. `ConsumerRedistributionFraction = "0.75"`
means that the consumer chain retains 75% of the rewards, while 25% gets sent to the provider chain to be distributed as rewards to provider chain validators.
:::

#### Integration
### Integration

Change the wiring in `app.go`

Expand Down

0 comments on commit 7311d74

Please sign in to comment.