Skip to content

Commit

Permalink
docs: adding more instructions about price feeder config (#1945)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba authored Mar 23, 2023
1 parent a47b8a2 commit b5d1760
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions price-feeder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ The `price-feeder` tool is responsible for performing the following:
specification.

<!-- markdown-link-check-disable -->

## Providers

The list of current supported providers:
Expand Down Expand Up @@ -53,6 +54,14 @@ Please see the [example configuration](price-feeder.example.toml) for more detai
$ price-feeder /path/to/price_feeder_config.toml
```

Umee rules for checking the free oracle transactions are:

- must be only prevote or vote
- gas is limited to [`MaxMsgGasUsage`](https://github.com/umee-network/umee/blob/main/ante/fee.go#L15) constant.

So, if you don't want to pay for gas, TX must be below `MaxMsgGasUsage`. If you set too much gas (which is what is happening when when you set `gas_adjustment` to 2), then the tx will allocate 2x gas, and hence will go above the free quota, so you would need to attach fee to pay for that gas.
The easiest is to just set constant gas. We recommend 10k below the `MaxMsgGasUsage`.

## Configuration

### `telemetry`
Expand Down

0 comments on commit b5d1760

Please sign in to comment.