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

Tips triggered too often by chronicle backup branch #9

Open
0xSpuddy opened this issue Jun 5, 2024 · 0 comments
Open

Tips triggered too often by chronicle backup branch #9

0xSpuddy opened this issue Jun 5, 2024 · 0 comments

Comments

@0xSpuddy
Copy link
Collaborator

0xSpuddy commented Jun 5, 2024

An auto tipper bot was configured for backing up Chronicle's wusdm/usd feeds on polygonZkevm: https://chroniclelabs.org/dashboard/oracle/WUSDM/USD?blockchain=POLYZK&txn=0x2b673ebd1033a12d1d15fa8589069530802081b9a8e96853c47477e28d9678d5&contract=0xdC6720c996Fad27256c7fd6E0a271e2A4687eF18

Still Investigating, but seems like it's tipping on every check when it doesn't need to be.
log attached:
auto-tipper-log.txt

my .env (with keys removed)

NETWORK="zkevm"
QUERY_ID="0x6908dd654640ba7c223a7bfb615a6b6238b839f31e3cdcc8804483a620439912"
QUERY_DATA="0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000953706f7450726963650000000000000000000000000000000000000...
INTERVAL="3600"

CHAINLINK_AGGREGATOR_ADDRESS="0xdC6720c996Fad27256c7fd6E0a271e2A4687eF18" # CHRONICLE wusdm/usd contract address
CHAINLINK_IS_FROZEN_TIMEOUT="5400" # 1.5 hours
CHAINLINK_MAX_PRICE_DEVIATION_FROM_PREVIOUS_ROUND="0.5" # 50%
PRICE_CHANGE_THRESHOLD="0" # "0.05" means 5% price change; if chainlink is down, and price changes more than this, then we will add a tip. Set this to "0" to disable this feature.
COLLATERAL_TOKEN_PRICE_URL_COINGECKO="https://pro-api.coingecko.com/api/v3/simple/price?x_cg_pro_api_key=CG-Wct8YyminHoN1Zb3Yu9gZWFA&ids=usdm&vs_currencies=usd"

note that I'm grabbing the price for usdm instead of wusdm because no wusdm/usd price available from coingecko api. (unclear but could be why tips are triggering)

@0xSpuddy 0xSpuddy changed the title Tips triggered too often by chronicle backup branch (bonus error at the end) Tips triggered too often by chronicle backup branch Jun 5, 2024
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

No branches or pull requests

1 participant