Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

fix(compound): Remove dangerous catch statement when retrieving underlying token address #869

Merged
merged 2 commits into from
Jul 12, 2022

Conversation

immasandwich
Copy link
Contributor

Description

If the underlying address throws for whatever reason (even a timeout), we're defaulting to the zero address, and that ends up resolving to the ETH address, which bubbles up the wrong prices through the token structure.

Checklist

  • I have followed the Contributing Guidelines
  • (optional) As a contributor, my Ethereum address/ENS is:
  • (optional) As a contributor, my Twitter handle is:

How to test?

@immasandwich immasandwich merged commit d1d43ce into main Jul 12, 2022
@immasandwich immasandwich deleted the remove-dangerous-catch branch July 12, 2022 18:50
volt62 pushed a commit to volt62/zapper-studio that referenced this pull request Aug 2, 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.

1 participant