Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Clarify comments and names in inflation code#11977

Merged
ryoqun merged 1 commit intosolana-labs:masterfrom
ryoqun:inflation-code-cleaning
Sep 3, 2020
Merged

Clarify comments and names in inflation code#11977
ryoqun merged 1 commit intosolana-labs:masterfrom
ryoqun:inflation-code-cleaning

Conversation

@ryoqun
Copy link
Copy Markdown
Contributor

@ryoqun ryoqun commented Sep 1, 2020

Problem

There is somewhat outdated/wrong comment and misleading identifier names for the inflation code.

Also, we could add a sanity assertion for year being >= 0.

Summary of Changes

Do them.

There should be no function change.

Context

folllow-up #10914

@ryoqun ryoqun added the v1.3 label Sep 1, 2020
@ryoqun ryoqun requested a review from t-nelson September 1, 2020 18:11
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 1, 2020

Codecov Report

Merging #11977 into master will increase coverage by 0.0%.
The diff coverage is 98.7%.

@@           Coverage Diff           @@
##           master   #11977   +/-   ##
=======================================
  Coverage    82.1%    82.2%           
=======================================
  Files         333      333           
  Lines       78153    78223   +70     
=======================================
+ Hits        64236    64330   +94     
+ Misses      13917    13893   -24     

@ryoqun
Copy link
Copy Markdown
Contributor Author

ryoqun commented Sep 2, 2020

@t-nelson Could you sanity-check this? :)

Copy link
Copy Markdown
Contributor

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

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

LGTM!

@ryoqun ryoqun merged commit 89bca61 into solana-labs:master Sep 3, 2020
@ryoqun ryoqun added v1.3 and removed v1.3 labels Sep 3, 2020
mergify Bot pushed a commit that referenced this pull request Sep 3, 2020
mergify Bot added a commit that referenced this pull request Sep 3, 2020
(cherry picked from commit 89bca61)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
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.

2 participants