By treaty I’m assuming you mean the treaty of Versailles which held Germany responsible for starting the war and imposed harsh penalties in terms of loss of territory, massive reparations payments and demilitarization. This caused them to be in debt in fact
they were so much in debt that they went into a deep depression in fact they were so in debt that it took them from 1919 to 2010 to pay off their debt that’s 91 years that’s insane almost makes you feel bad for them