Structs§
Traits§
Functions§
- calculate_
bonds_ given_ effective_ shares_ and_ rate - Calculates the bond reserves assuming that the pool has a given effective share reserves and fixed rate APR.
- calculate_
effective_ share_ reserves - Calculates the share reserves after zeta adjustment, aka the effective share
reserves:
$z_e = z - zeta$
. - calculate_
hpr_ given_ apr - Calculate the holding period return (HPR) given a non-compounding, annualized rate (APR).
- calculate_
hpr_ given_ apy - Calculate the holding period return (HPR) given a compounding, annualized rate (APY).
- calculate_
rate_ given_ fixed_ price - Calculate the rate assuming a given price is constant for some annualized duration.
- calculate_
time_ stretch