Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiago Pittella authored and Santiago Pittella committed Mar 27, 2024
1 parent 7c8ec45 commit 2a7761d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/guides/launch.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,24 +96,30 @@ output.

## Gas Price Oracle

As prices in a custom base token setting need to be in the native currency of the chain. These prices are partially determined by l1 gas prices in L1, which are in eth, so a conversion is required.
As prices in a custom base token setting need to be in the native currency of the chain. These prices are partially
determined by l1 gas prices in L1, which are in eth, so a conversion is required.

### Conversion rate API

To use a conversion rate oracle, you will need to add the component to the command:

```
zk server --components "api,tree,eth,state_keeper,housekeeper,commitment_generator,base_token_fetcher"
```

In order to run the server with the conversion rate, you will need to configure the variables in the `etc/env/base/base_token_fetcher.toml` file, or you can export the variables in the environment:
In order to run the server with the conversion rate, you will need to configure the variables in the
`etc/env/base/base_token_fetcher.toml` file, or you can export the variables in the environment:

```
export BASE_TOKEN_FETCHER_HOST=<Your host>
# Poll interval is in seconds
export BASE_TOKEN_FETCHER_POLL_INTERVAL=<Your poll interval>
export BASE_TOKEN_FETCHER_TOKEN_ADDRESS=<Your token address>
```

Additionally, you can run the server with the `dev_conversion_rate_api` component to enable the development conversion rate API, this component is only meant for development purposes and should not be used in production and will provide a fixed conversion rate for all tokens:
Additionally, you can run the server with the `dev_conversion_rate_api` component to enable the development conversion
rate API, this component is only meant for development purposes and should not be used in production and will provide a
fixed conversion rate for all tokens:

```
zk server --components "api,tree,eth,state_keeper,housekeeper,commitment_generator,base_token_fetcher,dev_conversion_rate_api"
Expand Down

0 comments on commit 2a7761d

Please sign in to comment.