-
Notifications
You must be signed in to change notification settings - Fork 6
Proposal: Move Pyth network updates to trigger on price movement rather than time #32
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
Open
CryptoFewka
wants to merge
9
commits into
main
Choose a base branch
from
20250506-pyth-config
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6df2fb7
move to price movement based updates rather than time
CryptoFewka fa8e7ca
use different values for BTC
CryptoFewka d715736
allow early updates if the price has moved at least 0.5%, and another…
CryptoFewka 1050ad7
Update mainnet/pyth-price-pusher-config.yaml
CryptoFewka de92340
fix spacing
CryptoFewka c7a7c1b
Merge branch '20250506-pyth-config' of https://github.com/zeta-chain/…
CryptoFewka ca211c9
Update pyth-price-pusher-config.yaml
CryptoFewka bca065a
use yaml anchors to avoid repeated lines
CryptoFewka f52527b
Merge branch '20250506-pyth-config' of https://github.com/zeta-chain/…
CryptoFewka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,113 @@ | ||
| --- | ||
| - alias: BTC/USD | ||
| id: "0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43" | ||
| time_difference: 30 | ||
| price_deviation: 5 | ||
| - alias: ARB/USD | ||
| id: "0x3fa4252848f9f0a1480be62745a4629d9eb1322aebab8a791e344b3b9c1adcf5" | ||
| time_difference: 600 # Time difference threshold (in seconds) to push a newer price feed. | ||
| price_deviation: 0.9 # The price deviation (%) threshold to push a newer price feed. | ||
| confidence_ratio: 1 # The confidence/price (%) threshold to push a newer price feed. This triggers on low confidence rather than high. | ||
| early_update: | ||
| price_deviation: 0.5 | ||
| - alias: AVAX/USD | ||
| id: "0x93da3352f9f1d105fdfe4971cfa80e9dd777bfc5d0f683ebb6e1294b92137bb7" | ||
| time_difference: 600 | ||
| price_deviation: 0.9 | ||
| confidence_ratio: 1 | ||
| early_update: | ||
| price_deviation: 0.5 | ||
| - alias: BNB/USD | ||
| id: "0x2f95862b045670cd22bee3114c39763a4a08beeb663b145d283c31d7d1101c4f" | ||
| time_difference: 30 | ||
| price_deviation: 1 | ||
| time_difference: 600 | ||
| price_deviation: 0.9 | ||
| confidence_ratio: 1 | ||
| early_update: | ||
| price_deviation: 0.5 | ||
| - alias: BTC/USD | ||
| id: "0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43" | ||
| time_difference: 600 | ||
| price_deviation: 0.4 | ||
| confidence_ratio: 1 | ||
| early_update: | ||
| price_deviation: 0.2 | ||
| - alias: CBBTC/USD | ||
| id: "0x2817d7bfe5c64b8ea956e9a26f573ef64e72e4d7891f2d6af9bcc93f7aff9a97" | ||
| time_difference: 600 | ||
| price_deviation: 0.4 | ||
| confidence_ratio: 1 | ||
| early_update: | ||
| price_deviation: 0.5 | ||
| - alias: DAI/USD | ||
| id: "0xb0948a5e5313200c632b51bb5ca32f6de0d36e9950a942d19751e833f70dabfd" | ||
| time_difference: 600 | ||
| price_deviation: 0.9 | ||
| confidence_ratio: 1 | ||
| early_update: | ||
| price_deviation: 0.5 | ||
| - alias: ETH/USD | ||
| id: "0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace" | ||
| time_difference: 30 | ||
| price_deviation: 1 | ||
| time_difference: 600 | ||
| price_deviation: 0.9 | ||
| confidence_ratio: 1 | ||
| early_update: | ||
| price_deviation: 0.5 | ||
| - alias: ETH/BTC | ||
| id: "0xc96458d393fe9deb7a7d63a0ac41e2898a67a7750dbd166673279e06c868df0a" | ||
| time_difference: 600 | ||
| price_deviation: 0.9 | ||
| confidence_ratio: 1 | ||
| early_update: | ||
| price_deviation: 0.5 | ||
| - alias: PEPE/USD | ||
| id: "0xd69731a2e74ac1ce884fc3890f7ee324b6deb66147055249568869ed700882e4" | ||
| time_difference: 600 | ||
| price_deviation: 0.9 | ||
| confidence_ratio: 1 | ||
| early_update: | ||
| price_deviation: 0.5 | ||
| - alias: POL/USD | ||
| id: "0xffd11c5a1cfd42f80afb2df4d9f264c15f956d68153335374ec10722edd70472" | ||
| time_difference: 600 | ||
| price_deviation: 0.9 | ||
| confidence_ratio: 1 | ||
| early_update: | ||
| price_deviation: 0.5 | ||
| - alias: SHIB/USD | ||
| id: "0xf0d57deca57b3da2fe63a493f4c25925fdfd8edf834b20f93e1f84dbd1504d4a" | ||
| time_difference: 600 | ||
| price_deviation: 0.9 | ||
| confidence_ratio: 1 | ||
| early_update: | ||
| price_deviation: 0.5 | ||
| - alias: SOL/USD | ||
| id: "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d" | ||
| time_difference: 600 | ||
| price_deviation: 0.9 | ||
| confidence_ratio: 1 | ||
| early_update: | ||
| price_deviation: 0.5 | ||
| - alias: SOL/ETH | ||
| id: "0xde87506dabfadbef89af2d5d796ebae80ddaea240fc7667aa808fce3629cd8fb" | ||
| time_difference: 600 | ||
| price_deviation: 0.9 | ||
| confidence_ratio: 1 | ||
| early_update: | ||
| price_deviation: 0.5 | ||
| - alias: USDC/USD | ||
| id: "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a" | ||
| time_difference: 30 | ||
| price_deviation: 1 | ||
| time_difference: 600 | ||
| price_deviation: 0.9 | ||
| confidence_ratio: 1 | ||
| early_update: | ||
| time_difference: 30 | ||
| price_deviation: 0.5 | ||
| confidence_ratio: 0.1 | ||
| - alias: ZETA/USD | ||
| id: "0xb70656181007f487e392bf0d92e55358e9f0da5da6531c7c4ce7828aa11277fe" | ||
| time_difference: 30 | ||
| price_deviation: 1 | ||
| confidence_ratio: 1 | ||
| - alias: USDT/USD | ||
| id: "0x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b" | ||
| time_difference: 30 | ||
| price_deviation: 1 | ||
| time_difference: 600 | ||
| price_deviation: 0.9 | ||
| confidence_ratio: 1 | ||
| early_update: | ||
| time_difference: 30 | ||
| price_deviation: 0.5 | ||
| confidence_ratio: 0.1 | ||
| - alias: POL/USD | ||
| id: "0xffd11c5a1cfd42f80afb2df4d9f264c15f956d68153335374ec10722edd70472" | ||
| time_difference: 30 | ||
| price_deviation: 1 | ||
| - alias: ZETA/USD | ||
| id: "0xb70656181007f487e392bf0d92e55358e9f0da5da6531c7c4ce7828aa11277fe" | ||
| time_difference: 600 | ||
| price_deviation: 0.9 | ||
| confidence_ratio: 1 | ||
| early_update: | ||
| price_deviation: 0.5 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.