Jun 14, 2021; Seattle, Washington, USA; Minnesota Twins reliever Hansel Robles (57) delivers a pitch during a game against the Seattle Mariners at T-Mobile Park. The Mariners won 4-3. Mandatory Credit: Stephen Brashear-USA TODAY Sports

The Minnesota Twins squeezed in one more trade before the MLB trade deadline Friday, swapping reliever Hansel Robles to Boston for minor-league pitcher Alex Scherff.

Robles signed a one-year contract as a free agent coming off a rough 2020 with the Los Angeles Angels.

He etched his way into a late-inning role in May and leads the Twins with 10 saves. Overall in his 45 appearances this season he has a 4.91 ERA, 1.386 WHIP and 8.8 K/9.

Robles’ final appearance with Minnesota certainly was memorable, allowing a game-tying grand slam in the ninth inning to Detroit on July 27.

Robles had 23 saves with the Angels in 2019, as well as a 2.48 ERA, 1.018 WHIP and 9.3 K/9.

The right-handed Scherff, a fifth-round pick by the Red Sox in 2017, was promoted from Single-A to Double-A on July 6.

In six appearances at the Double-A level he’s allowed two runs, one earned in 6 2/3 innings with nine strikeouts. In 22 2/3 innings in 17 relief games in Single-A, he had a 2.78 ERA, 1.24 WHIP and 37 strikeouts (14.1/9).

Scherff was not ranked as a top-30 prospects in Boston’s organization by either MLB Pipeline or Fangraphs.