delvtech / hyperdrive

An automated market maker for fixed and variable yield with on-demand terms.
Apache License 2.0
33 stars 4 forks source link

`calculate_add_liquidity` #873

Closed ryangoree closed 7 months ago

ryangoree commented 8 months ago

Add a function to the Rust SDK that calculates the amount of LP shares received when adding liquidity. Traders and UIs could use this to preview their position without hitting the chain.

sentilesdal commented 7 months ago

Fixed in https://github.com/delvtech/hyperdrive/pull/934