-
Notifications
You must be signed in to change notification settings - Fork 0
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_shares_delta_given_bonds_delta_derivative
#7
Merged
sentilesdal
merged 3 commits into
main
from
matt/calculate-shares-delta-given-bonds-delta-derivative
Apr 30, 2024
Merged
Add calculate_shares_delta_given_bonds_delta_derivative
#7
sentilesdal
merged 3 commits into
main
from
matt/calculate-shares-delta-given-bonds-delta-derivative
Apr 30, 2024
Conversation
This file contains 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
sentilesdal
requested review from
jalextowle,
jrhea,
mcclurejt,
dpaiton and
ryangoree
as code owners
April 29, 2024 14:46
jalextowle
reviewed
Apr 30, 2024
jalextowle
reviewed
Apr 30, 2024
jalextowle
reviewed
Apr 30, 2024
jalextowle
reviewed
Apr 30, 2024
jalextowle
reviewed
Apr 30, 2024
jalextowle
reviewed
Apr 30, 2024
jalextowle
reviewed
Apr 30, 2024
jalextowle
approved these changes
Apr 30, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The impl looks right to me. A few style nits that should be addressed before merging, but otherwise LGTM
sentilesdal
force-pushed
the
matt/calculate-shares-delta-given-bonds-delta-derivative
branch
from
April 30, 2024 14:41
f655ccb
to
06b6646
Compare
dpaiton
reviewed
Apr 30, 2024
dpaiton
reviewed
Apr 30, 2024
dpaiton
reviewed
Apr 30, 2024
dpaiton
reviewed
Apr 30, 2024
dpaiton
reviewed
Apr 30, 2024
dpaiton
reviewed
Apr 30, 2024
sentilesdal
force-pushed
the
matt/calculate-shares-delta-given-bonds-delta-derivative
branch
from
April 30, 2024 15:54
06b6646
to
72a9062
Compare
dpaiton
approved these changes
Apr 30, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved pending replies to our comments
sentilesdal
force-pushed
the
matt/calculate-shares-delta-given-bonds-delta-derivative
branch
from
April 30, 2024 18:35
72a9062
to
3f4c4b3
Compare
sentilesdal
force-pushed
the
matt/calculate-shares-delta-given-bonds-delta-derivative
branch
2 times, most recently
from
April 30, 2024 18:38
c46cc22
to
6693f32
Compare
sentilesdal
force-pushed
the
matt/calculate-shares-delta-given-bonds-delta-derivative
branch
from
April 30, 2024 18:39
6693f32
to
1c0052b
Compare
sentilesdal
deleted the
matt/calculate-shares-delta-given-bonds-delta-derivative
branch
April 30, 2024 19:12
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.
Resolved Issues
This is a part of adding functions needed to test remove_liquidity
Description
calculate_shares_delta_given_bonds_delta_derivative
to lp.rscalculate_present_value_safe
that doesn't panic. Future work will remove the previous version.calculate_shares_delta_given_bonds_delta_derivative
.I ran diagnostics to make sure that we were actually testing the function, the test errors on the present value calculation about half the time, errors on the actual function 1/4 time and succeeds about a 1/4 of the time.
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.
covering the full input space?
ensure that Rust matches Solidity?