Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use correct swap tree for oracle_init_msg #106

Merged
merged 1 commit into from
May 29, 2023

Conversation

Lockwarr
Copy link
Contributor

No description provided.

@Lockwarr Lockwarr requested review from gmanev7 and KirilMihaylov May 25, 2023 13:25
@@ -42,7 +42,7 @@ add_wasm_messages() {
"$ADMIN_CONTRACT_ADDRESS" "" "--instantiate-anyof-addresses $ADMIN_CONTRACT_ADDRESS" "$timealarms_init_msg"
_export_to_file "timealarms" "$TIMEALARMS_ADDRESS" "$contracts_info_file"

local -r oracle_init_msg='{"config":{"base_asset":"'"$lpp_native"'","price_config":{"min_feeders":500,"sample_period_secs":10,"samples_number":12,"discount_factor":750}},"swap_tree":{"value":[0,"USDC"],"children":[{"value":[766,"OSMO"],"children":[{"value":[1,"ATOM"]},{"value":[722,"EVMOS"]},{"value":[9,"CRO"]},{"value":[604,"STARS"]},{"value":[584,"SCRT"]},{"value":[704,"WETH"]},{"value":[712,"WBTC"]},{"value":[497,"JUNO"]}]}]}}'
local -r oracle_init_msg='{"config":{"base_asset":"'"$lpp_native"'","price_config":{"min_feeders":500,"sample_period_secs":10,"samples_number":12,"discount_factor":750}},"swap_tree":{"value":[0,"USDC"],"children":[{"value":[678,"OSMO"],"children":[{"value":[1,"ATOM"]}]}]}}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you checked the pool numbers at osmo-test-4? These numbers are valid for the osmo-main.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct, need to update the numbers to represent osmo-test-4 pools

chore: use correct pool numbers for osmo-test-5
@Lockwarr Lockwarr force-pushed the scripts-fix-oracle-init-message branch from e681b7e to 20e2333 Compare May 29, 2023 08:07
Copy link
Member

@gmanev7 gmanev7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gmanev7 gmanev7 merged commit a1835a9 into main May 29, 2023
@KirilMihaylov KirilMihaylov deleted the scripts-fix-oracle-init-message branch July 11, 2023 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants