refactor: remove dead storage helpers and unify interest-rate calculation (Closes #331) - #357
Open
laurentketterle-hub wants to merge 1 commit into
Open
Conversation
…tion (Closes Heliobond#331) storage.rs exposed six accessor helpers (read/write_project, read/write_proposal, read/write_whitelist) that lib.rs never referenced, and logic::calculate_interest_rate duplicated the private compute_rate formula in lib.rs. This removes the dead storage helpers and makes compute_rate delegate to logic::calculate_interest_rate (which already includes the underflow guard the local copy lacked), unifying the rate formula into a single implementation. Signed-off-by: laurentketterle-hub <laurentketterle-hub@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes dead code from project_registry and unifies the interest-rate calculation into a single implementation.
Changes
Verification
cargo build -p project-registry compiles with zero warnings (previously 9 dead-code/unused-import warnings).
Closes #331