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

Add method to check if Oracle is available for network #356

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

Uxio0
Copy link
Member

@Uxio0 Uxio0 commented Sep 20, 2022

  • This way it can be queried and no knowledge about the Oracle is required from the user

- This way it can be queried and no knowledge about the Oracle is required from the user
@Uxio0 Uxio0 requested a review from a team as a code owner September 20, 2022 14:48
@coveralls
Copy link

Pull Request Test Coverage Report for Build 3091100501

  • 24 of 36 (66.67%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.07%) to 83.988%

Changes Missing Coverage Covered Lines Changed/Added Lines %
gnosis/eth/oracles/kyber.py 2 3 66.67%
gnosis/eth/oracles/oracles.py 22 33 66.67%
Totals Coverage Status
Change from base Build 3088944973: 0.07%
Covered Lines: 3273
Relevant Lines: 3897

💛 - Coveralls

Comment on lines +269 to +272
cls.ROUTER_ADDRESSES.get(
ethereum_client.get_network(),
cls.ROUTER_ADDRESSES[EthereumNetwork.MAINNET],
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we default to Mainnet in for UniswapV2Oracle but not for UniswapOracle?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because Uniswap used deterministic deployment for V2 but not for V1

@Uxio0 Uxio0 merged commit c55241e into master Sep 21, 2022
@Uxio0 Uxio0 deleted the check-oracles-available branch September 21, 2022 10:40
@github-actions github-actions bot locked and limited conversation to collaborators Sep 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants