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

Fix `calculate_implied_rate` Flake #107

Closed sentilesdal closed 5 months ago

sentilesdal commented 5 months ago

test_calculate_implied_rate is flaking, here is the error that was caught.


thread 'short::open::tests::test_calculate_implied_rate' panicked at crates/hyperdrive-math/src/short/open.rs:766:13:
error 102965645915920 exceeds tolerance of 100000000000000```