Skip to content

Commit

Permalink
docs: fix beta description (#54)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Johnson <[email protected]>
  • Loading branch information
rootulp and Alex Johnson authored Jan 12, 2024
1 parent 5a3acf4 commit e6f642f
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

This document specifies the feemarket module.

The feemarket module is an implementation of the Additive Increase Multiplicative Decrease (AIMD) EIP-1559
feemarket. More information about the implementation can be found [here](./x/feemarket/README.md).
The feemarket module is an implementation of the Additive Increase Multiplicative Decrease (AIMD) EIP-1559
feemarket. More information about the implementation can be found [here](./x/feemarket/README.md).

This module is planned to be used in the Cosmos Hub.

Expand Down Expand Up @@ -107,7 +107,7 @@ The feemarket module provides a keeper interface for accessing the KVStore.

```go
type FeeMarketKeeper interface {
// Get the current state from the store.
// Get the current state from the store.
GetState(ctx sdk.Context) (types.State, error)

// Set the state in the store.
Expand All @@ -118,8 +118,8 @@ type FeeMarketKeeper interface {

// Set the params in the store.
SetParams(ctx sdk.Context, params types.Params) error
// Get the current minimum gas prices (base fee) from the store.

// Get the current minimum gas prices (base fee) from the store.
GetMinGasPrices(ctx sdk.Context) (sdk.Coins, error)
}
```
Expand Down Expand Up @@ -212,9 +212,8 @@ when it is above or below the target +/- threshold.

### Beta

The default send enabled value controls send transfer capability for all
coin denominations unless specifically included in the array of `SendEnabled`
parameters.
Beta is the amount we multiplicatively decrease the learning rate
when it is within the target +/- threshold.

### Theta

Expand Down Expand Up @@ -248,13 +247,13 @@ TargetBlockUtilization is the target block utilization for the current block.

### MaxBlockUtilization

MaxBlockUtilization is the maximum block utilization. Once this has been surpassed,
MaxBlockUtilization is the maximum block utilization. Once this has been surpassed,
no more transactions will be added to the current block.

### Window

Window defines the window size for calculating an adaptive learning rate
over a moving window of blocks. The default EIP1559 implementation uses
over a moving window of blocks. The default EIP1559 implementation uses
a window of size 1.

### FeeDenom
Expand All @@ -264,7 +263,7 @@ FeeDenom is the denom that will be used for all fee payments.
### Enabled

Enabled is a boolean that determines whether the EIP1559 fee market is
enabled. This can be used to add the feemarket module and enable it
enabled. This can be used to add the feemarket module and enable it
through governance at a later time.

```protobuf
Expand Down Expand Up @@ -536,4 +535,3 @@ Example Output:
]
}
```

0 comments on commit e6f642f

Please sign in to comment.