Crate hyperdrive_math
source ·Structs§
Traits§
Functions§
- Calculates the bond reserves assuming that the pool has a given effective share reserves and fixed rate APR.
- Calculate the holding period return (HPR) given a non-compounding, annualized rate (APR).
- Calculate the holding period return (HPR) given a compounding, annualized rate (APY).
- Calculate the rate assuming a given price is constant for some annualized duration.