The uniform price auction with endogenous supply