delvtech / hyperdrive-rs

Rust SDK for the Hyperdrive AMM.
https://docs.rs/crate/hyperdrive-math/latest
Apache License 2.0
2 stars 0 forks source link

gen state with effective_share_reserves #122

Closed wakamex closed 5 months ago

wakamex commented 5 months ago

Resolved Issues

solves very intermittent failures when state was generated with a price above one. it could take up to 40k trials to hit.

thanks to @jalextowle for helping me debug this to track down the source of error.

Description

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.