After Germany was defeated in November 1918 and the Whites were repulsed, the first priority for Moscow was instigating revolutions across Western Europe, above all Germany. It was the country that Lenin most admired and assumed to be most ready for revolution. Lenin also encouraged revolutions that failed in Germany, Bavaria and Hungary from 1918 to 1920 - this support was solely political and economic, and the Red Army did not participate in these revolutions. In 1920 the newly formed state of Poland expanded eastwards into the Russian territories of Ukraine and Belarus. The Red Army retaliated, but was defeated outside Warsaw in August 1920. Shortly afterwards, the RSFSR sued for peace, which was signed at the Peace of Riga on 18 March 1921. The RSFSR recompensed 30 million rubles, as well as sizeable territory in Belarus and Ukraine.