Problem
If Hyperdrive simply adjusts bond liquidity proportional to the liquidity being added we run into issues with price discovery and sandwich attacks. If someone adds liquidity at an irrationally high interest rate, it inflates the bond reserves so much that the rate can't be arbed back. Additionally, this creates an opportunity for a long-range sandwich attack. To mitigate this, we implement the following initialize routine.
Zeta and Bond Reserves for Initialization
\begin{align}
&\text{We want to solve for } y \text{ and } \zeta \text{ using the following systems of equations:} \
&\quad(1) \quad c z - c \zeta + p y = c z \
&\quad(2) \quad p =\left( \frac{\mu z - \mu \zeta}{y} \right)^{t_s}\
&\text{where } c z \text{ is the amount of base the pool is initialized with. Combining (1) and (2) we have:} \
&\quad(3) \quad \zeta = z - \frac{1}{\mu}p^{\frac{1}{t_s}}y\