This smells rotten.

Apparently, five felonies in NYS will only cost you a measly $1000 fine…

Former state Sen. George Maziarz avoided a trial Friday and pled guilty to a misdemeanor charge in a corruption case.

The former western New York senator pleaded guilty to one misdemeanor charge of filing a false instrument and agreed to pay a $1,000 fine.

Maziarz, R-Newfane, Niagara County, was charged in March 2017 with five felony counts of offering a false instrument for filing. The charges could have come with prison time if he was convicted, though such a sentence was unlikely.

His trial was slated to start next week.

Maziarz, 64, was accused by Attorney General Eric Schneiderman of hiding $95,000 in campaign payments to a former staff member who was accused of sexual harassment

The charges contended that payments from Maziarz’s campaign account and the Niagara County GOP were routed through public-relations firms rather than paid directly to the former staffer — a way, Schneiderman charged, to disguise the payments.