Right-handed starter Tyler Glasnow has signed a five-year, $136.5 million contract extension with the Los Angeles Dodgers that makes official the trade of Glasnow and outfielder Manuel Margot from the Tampa Bay Rays to Los Angeles, the Dodgers announced Saturday.

The deal, which sends right-handed starter Ryan Pepiot and outfield prospect Jonny Deluca to the Rays, was contingent on Glasnow signing an extension. The window to do so opened Thursday morning, and the parties quickly came together with the framework of a deal that will tack four years and $111.5 million in new money onto the $25 million Glasnow was owed for the 2024 season.