nibiru
nibiru copied to clipboard
test(vpool): On pool init, the `SqrtDepth` should be equivalent to the base reserves because the base and reserves start out equal.
Should we require the base = quote at init by design?
maybe initialize pool with just phi instead of reserves
Personally, I'd prefer to pass in both baseReserve, sqrtDepth and pegMult as with the Drift convention as to not confuse ourselves. And we can just edit the initialize helper function:
market := types.NewMarket(types.ArgsNewMarket{
Pair: pair,
BaseReserves: baseAssetReserve,
QuoteReserves: quoteAssetReserve,
Config: &config,
Bias: bias,
PegMultiplier: pegMultiplier,
})