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

new test for closing trades after maturity #196

Closed dpaiton closed 1 month ago

dpaiton commented 2 months ago

Resolved Issues

https://github.com/delvtech/hyperdrive-rs/issues/197

Description

This PR adds a test to ensure that the calculate_close_long and calculate_close_short function correctly handle proceeds going to LPs after maturity.