The Peace of Olomouc was signed on 2 April 1479 between Matthias Corvinus of Hungary and King Vladislaus II of Bohemia (and Hungary, later), bringing the Bohemian–Hungarian War (1468–1478) to an end.
Based on the terms of the treaty, Vladislaus would cede the territories of Moravia, Silesia, and Lusatia to Corvinus.
If Matthias perished, then Vladislaus could redeem these lands for 400,000 florins.
Moreover, both monarchs would be permitted to utilize the title King of Bohemia.
However, only Matthias was required to address the other claimant as the King of Bohemia.