We present a model of a dynamic and complex economy in which the creation and the destruction of money result from interactions between multiple and heterogeneous agents. In the baseline scenario, we observe the stabilization of the income distribution between wages and profits. We then alter the model by increasing the flexibility of wages. This change leads to the formation of a deflationary spiral. Aggregate activity decreases and unemployment increases. The macroeconomic stability of the model is affected and eventually a systemic crisis arises. Finally, we show that the introduction of a minimum wage would have made it possible to boost the aggregate demand and to avoid this crisis.