@@ -100,6 +100,7 @@ configure_genesis() {
100100 done
101101 guardian_json+=" ]"
102102
103+ # shellcheck disable=SC2002
103104 cat " ${GENESIS_PATH} .orig" | \
104105 jq -M ' .app_state.gov.voting_params.voting_period = "60s"' \
105106 | jq -M ' .app_state.gov.params.voting_period = "60s"' \
@@ -109,8 +110,8 @@ configure_genesis() {
109110 | jq -M ' .app_state.wasm.params.instantiate_default_permission = "Everybody"' \
110111 | jq -M --argjson guardians " $guardian_json " --arg feed_id " $AKT_PRICE_FEED_ID " '
111112 .app_state.oracle.params.min_price_sources = 1 |
112- .app_state.oracle.params.max_price_staleness_period = 30 |
113- .app_state.oracle.params.twap_window = 50 |
113+ .app_state.oracle.params.max_price_staleness_period = "60s" |
114+ .app_state.oracle.params.twap_window = "30s" |
114115 .app_state.oracle.params.max_price_deviation_bps = 1000 |
115116 .app_state.oracle.params.price_retention = "86400s" |
116117 .app_state.oracle.params.prune_epoch = "hour" |
@@ -287,8 +288,8 @@ register_oracle_source() {
287288 "params": {
288289 "sources": ["$pyth_addr "],
289290 "min_price_sources": 1,
290- "max_price_staleness_period": 30 ,
291- "twap_window": 50 ,
291+ "max_price_staleness_period": "60s" ,
292+ "twap_window": "30s" ,
292293 "max_price_deviation_bps": 1000,
293294 "price_retention": "86400s",
294295 "prune_epoch": "hour",
@@ -299,7 +300,7 @@ register_oracle_source() {
299300 "@type": "/akash.bme.v1.MsgFundVault",
300301 "authority": "akash10d07y265gmmuvt4z0w9aw880jnsr700jhe7z0f",
301302 "amount": {"denom": "${CHAIN_TOKEN_DENOM} ", "amount": "1000000000000"},
302- "source": "$admin_addr "
303+ "source": "$( akash keys show main -a ) "
303304 }
304305 ],
305306 "deposit": "10000000uakt",
0 commit comments