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

fix fx oracle decimals #478

Merged
merged 1 commit into from
Jul 7, 2023
Merged

fix fx oracle decimals #478

merged 1 commit into from
Jul 7, 2023

Conversation

mendesfabio
Copy link
Member

@mendesfabio mendesfabio commented Jul 7, 2023

Description

Sync failed on Polygon due to null fxOracleDecimals -- this attribute is only set on Pool and Token creation (1y ago) but we're grafting based on a recent block. Since all the oracles FX tokens use (tokens are hard coded in the assets file) have 8 decimals, I'm changing the logic to set fxOracleDecimals on handleAnswerUpdated as well.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency changes
  • Code refactor / cleanup
  • Documentation or wording changes
  • Other

Checklist:

  • I have performed a self-review of my own code
  • I have requested at least 1 review (If the PR is significant enough, use best judgement here)
  • I have commented my code where relevant, particularly in hard-to-understand areas

@mendesfabio mendesfabio marked this pull request as ready for review July 7, 2023 17:32
@mendesfabio mendesfabio merged commit 5702d69 into staging-dev Jul 7, 2023
4 checks passed
This was referenced Jul 7, 2023
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