Skip to content

Add get_spot_price_after_short method to rust sdk #753

@DannyDelott

Description

@DannyDelott

The ability to know what the spot price is after opening a short is helpful, and there is prior art for this in open long.

Prior art:
https://github.com/delvtech/hyperdrive/blob/main/crates/hyperdrive-math/src/long/open.rs#L39

Having this capability for shorts would allow arbers to know how big of a short they need to open in order to bring the fixed rate back up to the vault rate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions