Darin Ruf has agreed to a one-year contract with the Milwaukee Brewers, just days after he elected free agency rather than accept an outright assignment to the minor leagues with the San Francisco Giants.

The Brewers will pay $541,935, a prorated share of the $720,000 major league minimum, and the Giants are responsible for the rest of Ruf's $3 million salary plus a $250,000 buyout of his contract's 2024 team option.

The Giants designated the 36-year-old for assignment on May 9.