Endogenous money, inflation, and welfare