The 18-year-old high-school senior who acted in self-defense when he shot to death a 15-year-old boy near a Southeast Portland MAX platform was sentenced Wednesday to 90 days in jail.

Silvano D. Velasquez could have faced a drastically different future: Life in prison with the possibility of release after 25 years. Police were able to identify Velasquez as the shooter and arrest him under accusations of murder, attempted aggravated murder and first-degree assault nearly two weeks after the Oct. 11 killing of Abukar Madey.

Velasquez remained in jail for six weeks, until a grand jury found that he acted in self-defense. The grand jury indicted him on two misdemeanor charges: unlawful use of a firearm and tampering with evidence. He posted $500 and was released.

Abukar Madey died less than five blocks from his Southeast Portland home.Maxine Bernstein/The Oregonian

Wednesday, Velasquez pleaded guilty in Multnomah County Circuit Court to the two charges. As part of the plea deal, he was sentenced to three years of probation and the jail term -- which will start June 7, one day after he hopes to graduate with the rest of his high-school class. With credit for time he’s already served, he will be out by mid-summer.

As part of his probation, he will not be allowed to possess any weapons.

According to court records filed by the prosecution earlier this month, the incident unfolded this way:

On the night of Oct. 11, Madey and two friends walked up to Velasquez near the MAX platform at Southeast Holgate Boulevard. One of the friends asked Velasquez if he was affiliated with a gang.

By the time the encounter was over, Madey had pulled out a sawed-off shotgun, his friend had pointed a semi-automatic rifle at Velasquez and the other friend had punched Velasquez in the face. Velasquez responded by opening fire on the group with his gun. Madey, a Franklin High School freshman, died from two bullets to the head.

Velasquez took the sawed-off shotgun from Madey’s body and ran away, according to a prosecutor. That led to the tampering with evidence charge.

Madey was a Franklin High School freshman. His friend, Lucio Alexandro Ramirez Navarro, still faces charges of third-degree assault, being a felon in possession of a firearm and unlawful use of a weapon.