Skip to content

code cleanup#967

Merged
dpaiton merged 7 commits intomainfrom
dpaiton/fixups
Apr 16, 2024
Merged

code cleanup#967
dpaiton merged 7 commits intomainfrom
dpaiton/fixups

Conversation

@dpaiton
Copy link
Copy Markdown
Contributor

@dpaiton dpaiton commented Apr 12, 2024

Resolved Issues

no issues

Description

  • removes unused imports
  • uses lib calc rate function instead of duplicated fn in targeted_long
  • moves reserves_given_rate into lib for use by targeted short
  • updates docstrings, var names, & fn names to be more clear

Review Checklists

Please check each item before approving the pull request. While going
through the checklist, it is recommended to leave comments on items that are
referenced in the checklist to make sure that they are reviewed. If there are
multiple reviewers, copy the checklists into sections titled ## [Reviewer Name].
If the PR doesn't touch Solidity and/or Rust, the corresponding checklist can
be removed.

[[Reviewer Name]]

Rust

  • Testing
    • Are there new or updated unit or integration tests?
    • Do the tests cover the happy paths?
    • Do the tests cover the unhappy paths?
    • Are there an adequate number of fuzz tests to ensure that we are
      covering the full input space?
    • If matching Solidity behavior, are there differential fuzz tests that
      ensure that Rust matches Solidity?

@dpaiton dpaiton changed the title Dpaiton/fixups code cleanup Apr 12, 2024
Comment thread crates/hyperdrive-math/src/lib.rs Outdated
Comment thread crates/hyperdrive-math/src/lib.rs
Comment thread crates/hyperdrive-math/src/lib.rs Outdated
Comment thread crates/hyperdrive-math/src/long/targeted.rs Outdated
dpaiton and others added 7 commits April 15, 2024 16:25
Functions that need to be shared by targeted_short are moved to a more
accessile location.
Functions that hae duplicate purpose are consolidated.
Co-authored-by: Ryan Goree <goree.ryan@gmail.com>
Co-authored-by: Ryan Goree <goree.ryan@gmail.com>
@dpaiton dpaiton enabled auto-merge April 15, 2024 23:26
@dpaiton dpaiton added this pull request to the merge queue Apr 15, 2024
Merged via the queue into main with commit 3360daa Apr 16, 2024
@dpaiton dpaiton deleted the dpaiton/fixups branch April 16, 2024 00:05
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.

2 participants