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

Check addressbook for duplicate addresses with different oracles #1292

Conversation

ReflectiveChimp
Copy link
Collaborator

Script ignores duplicate entries for WNATIVE.
Produces warnings for duplicate addresses and errors when those duplicates have different oracleIds

[WARN] Duplicate address 0xa3fa99a148fa48d14ed51d610c367c61876997f1 on polygon: MAI (MAI), miMATIC (MAI)
[WARN] Duplicate address 0x60781c2586d68229fde47564546784ab3faca982 on avax: PNG (PNG), PNG-Pangolin (PNG-Pangolin)
[ERROR] Different oracleIds for 0x60781c2586d68229fde47564546784ab3faca982 on avax: PNG, PNG-Pangolin
[WARN] Duplicate address 0x321162cd933e2be498cd2267a90534a804051b11 on fantom: WBTC (fmcBTC), BTC (fmcBTC)
[WARN] Duplicate address 0x74b23882a30290451a17c44f4f05243b6b58c76d on fantom: WETH (fmcETH), ETH (fmcETH)
[WARN] Duplicate address 0xbec775cb42abfa4288de81f387a9b1a3c4bc552a on one: SUSHI (SUSHI), oneSUSHI (SUSHI)
[WARN] Duplicate address 0xe4fe50cdd716522a56204352f00aa110f731932d on celo: DAIV1 (DAIV1), DAI (DAI)
[ERROR] Different oracleIds for 0xe4fe50cdd716522a56204352f00aa110f731932d on celo: DAIV1, DAI
[WARN] Duplicate address 0xd15ec721c2a896512ad29c671997dd68f9593226 on celo: SUSHIV1 (SUSHI), cSUSHI (SUSHI)
[WARN] Duplicate address 0xf50225a84382c74cbdea10b0c176f71fc3de0c4d on moonriver: WMOVR_SUSHI (WMOVR), WNATIVE_SUSHI (WMOVR)
[WARN] Duplicate address 0xf390830df829cf22c53c8840554b98eafc5dcbc2 on moonriver: SUSHI (SUSHI), mSUSHI (SUSHI)
[WARN] Duplicate address 0x085416975fe14c2a731a97ec38b9bf8135231f62 on moonbeam: axlUST (axlUST), UST (UST)
[ERROR] Different oracleIds for 0x085416975fe14c2a731a97ec38b9bf8135231f62 on moonbeam: axlUST, UST

Applied fixes:
PNG-Pangolin on avax - set oracleId to PNG
DAI on celo - set oracleId to DAIV1
UST on moonbeam - set oracleId to axlUST

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.

1 participant