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

add calculate_bonds_given_effective_shares_and_rate #94

Merged
merged 4 commits into from
May 11, 2024

Conversation

dpaiton
Copy link
Contributor

@dpaiton dpaiton commented May 10, 2024

Description

#75 removed a function that was used by agent0. This PR brings the function back under a different, more accurate name.

I also had to write a new test for it since the function does not exist in solidity.

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.

  • 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 force-pushed the dpaiton/calc-bonds branch from 0cfec1c to c77085f Compare May 10, 2024 23:41
@dpaiton dpaiton force-pushed the dpaiton/calc-bonds branch from c77085f to 801a810 Compare May 10, 2024 23:45
@dpaiton dpaiton force-pushed the dpaiton/calc-bonds branch from 9a18f47 to d9fae38 Compare May 11, 2024 00:04
@dpaiton dpaiton force-pushed the dpaiton/calc-bonds branch from d9fae38 to 8e21d70 Compare May 11, 2024 00:11
@dpaiton dpaiton enabled auto-merge (squash) May 11, 2024 00:15
@dpaiton dpaiton merged commit 3a44b63 into main May 11, 2024
8 checks passed
@dpaiton dpaiton deleted the dpaiton/calc-bonds branch May 11, 2024 00:18
@dpaiton dpaiton changed the title Dpaiton/calc bonds add calculate_bonds_given_effective_shares_and_rate May 13, 2024
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