Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0n00gler authored and swelf19 committed Jul 19, 2024
1 parent 12287b1 commit e3ad966
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions network/init-neutrond.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ CW4_GROUP_CONTRACT=$THIRD_PARTY_CONTRACTS_DIR/cw4_group.wasm
NEUTRON_CHAIN_MANAGER_CONTRACT=$CONTRACTS_BINARIES_DIR/neutron_chain_manager.wasm

# Slinky genesis configs
USE_CORE_MARKETS=true
USE_RAYDIUM_MARKETS=false
USE_UNISWAPV3_BASE_MARKETS=false
USE_COINGECKO_MARKETS=false
USE_CORE_MARKETS=${USE_CORE_MARKETS:-true}
USE_RAYDIUM_MARKETS=${USE_RAYDIUM_MARKETS:-false}
USE_UNISWAPV3_BASE_MARKETS=${USE_UNISWAPV3_BASE_MARKETS:-true}
USE_COINGECKO_MARKETS=${USE_COINGECKO_MARKETS:-true}

echo "Add consumer section..."
$BINARY add-consumer-section --home "$CHAIN_DIR"
Expand Down Expand Up @@ -736,8 +736,6 @@ MARKETS=$MARKETS; jq --arg markets "$MARKETS" '.app_state["marketmap"]["market_m
MARKETS=$MARKETS; jq --arg markets "$MARKETS" '.app_state["oracle"]["currency_pair_genesis"] += [$markets | fromjson | .markets | values | .[].ticker.currency_pair | {"currency_pair": {"Base": .Base, "Quote": .Quote}, "currency_pair_price": null, "nonce": 0} ]' "$GENESIS_PATH" > genesis_tmp.json && mv genesis_tmp.json "$GENESIS_PATH"
MARKETS=$MARKETS; jq --arg markets "$MARKETS" '.app_state["oracle"]["currency_pair_genesis"] |= (to_entries | map(.value += {id: (.key + 1)} | .value))' "$GENESIS_PATH" > genesis_tmp.json && mv genesis_tmp.json "$GENESIS_PATH"

cat markets.json

rm markets.json

echo "Setting the rest of Neutron genesis params..."
Expand Down

0 comments on commit e3ad966

Please sign in to comment.