Previously, provisionLiquiditiesForMinipoolCreation() rebalanced the vaults. This was happening after hasSufficientLiquidity() was checked but before the deposit to RP was made. This is incorrect, because rebalancing the vaults may move liquidity away from OD and cause it to not have enough left for minipool creation.
This PR fixes the above by moving the rebalance of the vaults to happen after the minipool deposit is made.
Previously,
provisionLiquiditiesForMinipoolCreation()
rebalanced the vaults. This was happening afterhasSufficientLiquidity()
was checked but before the deposit to RP was made. This is incorrect, because rebalancing the vaults may move liquidity away from OD and cause it to not have enough left for minipool creation.This PR fixes the above by moving the rebalance of the vaults to happen after the minipool deposit is made.