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: increase price calc precision for high exponent assets #1633

Merged
merged 16 commits into from
Dec 2, 2022
Merged

Conversation

toteki
Copy link
Member

@toteki toteki commented Dec 1, 2022

Description

Affects QueryMarketSummary for frontend as well as some leverage calculations internally. See changelog.


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • added appropriate labels to the PR
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

x/leverage/keeper/oracle.go Outdated Show resolved Hide resolved
x/leverage/keeper/limits.go Outdated Show resolved Hide resolved
@toteki toteki marked this pull request as ready for review December 1, 2022 19:44
@toteki toteki requested review from a team as code owners December 1, 2022 19:44
@codecov-commenter
Copy link

codecov-commenter commented Dec 1, 2022

Codecov Report

Merging #1633 (8af5a0c) into main (c11c191) will increase coverage by 0.05%.
The diff coverage is 70.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1633      +/-   ##
==========================================
+ Coverage   54.05%   54.11%   +0.05%     
==========================================
  Files          71       71              
  Lines        7150     7194      +44     
==========================================
+ Hits         3865     3893      +28     
- Misses       2988     3000      +12     
- Partials      297      301       +4     
Impacted Files Coverage Δ
x/leverage/keeper/limits.go 13.88% <0.00%> (-1.74%) ⬇️
x/leverage/keeper/oracle.go 64.13% <71.42%> (+1.05%) ⬆️
x/leverage/keeper/liquidate.go 82.58% <82.35%> (-0.45%) ⬇️
x/leverage/client/tests/tests.go 100.00% <100.00%> (ø)
x/leverage/keeper/grpc_query.go 62.68% <100.00%> (ø)

Copy link
Member

@robert-zaremba robert-zaremba left a comment

Choose a reason for hiding this comment

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

pre-approving. Let's make sure we have all "zero" checks in place.

x/leverage/keeper/grpc_query.go Outdated Show resolved Hide resolved
x/leverage/keeper/grpc_query_test.go Show resolved Hide resolved
x/leverage/keeper/limits.go Show resolved Hide resolved
x/leverage/keeper/liquidate.go Outdated Show resolved Hide resolved
x/leverage/keeper/msg_server_test.go Show resolved Hide resolved
x/leverage/keeper/oracle.go Show resolved Hide resolved
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.

3 participants