update rust `calculate_initial_bond_reserves` to be more general
dpaiton opened this issue · 1 comments
dpaiton commented
The calculate_initial_bond_reserves
function could really be calculate_bonds
that takes shares
, rate
, and vault_share_price
as arguments. This generalizes the utility beyond deploying pools to be able to answer more abstract questions about what bond reserves should be for a certain pool state.