-
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
implement calculate_remove_liquidity
#22
Comments
This is related to #23. Both of these will require |
Several PRs in flight for this: Will need to wait for |
calculate_remove_liquidity
calculate_remove_liquidity
#100 needs delvtech/hyperdrive#1049 to land first in order to have the exact results |
# Resolved Issues #22 # Description Adds `calculate_remove_liquidity` and a test. # 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?
Add a function to the Rust SDK that calculates the amount of
proceeds
andwithdrawal_shares
received for removing liquidity. Traders and UIs could use this to preview their returns without hitting the chain.The text was updated successfully, but these errors were encountered: