South Korea’s president has been impeached, and the de facto head of the country’s largest business empire is being pursued by prosecutors on allegations of having paid bribes to the government in exchange for favors.

None of this appears to have ruffled investor bullishness on South Korea, whose perpetually underperforming market has suddenly found its groove.

Since the corruption scandal erupted in the fall last year, the country’s benchmark stock market has climbed to an 18-month high. Foreigners have poured $1 billion into Korean stocks already this year, second only to Japan in the region, while $1.2 billion of foreign capital has flowed into the bond market, according to data from Saxo Markets. The Korean won has been the second-best performing currency in the world so far in 2017, behind the Russian ruble.

The South Korean government last week sold $1 billion in 10-year bonds that were priced at a tighter-than-expected spread over benchmark U.S. 10-year Treasurys. On Wednesday in New York, a $1.5 billion bond offering by the Export-Import Bank of Korea, a state-run creditor, was oversubscribed and priced more tightly than expected.

Even the Samsung conglomerate, which has been in prosecutors’ crosshairs for months, has shrugged off the scandal. Smartphone maker Samsung Electronics Co. has soared roughly 65% over the past year, and climbed another 1.5% on Thursday after a court rejected an arrest warrant against Lee Jae-yong, the conglomerate’s de facto head. Shares fell 0.7% Friday, while the Kospi Composite Index slipped 0.3%.