After a roller-coaster offseason that included a surprising trade request, a social media scrubbing and a half-dozen other receivers signing lucrative contracts, the final domino fell Sunday when wideout Deebo Samuel agreed to a three-year contract extension with the San Francisco 49ers.

The deal is worth a maximum value of $73.5 million over the three years and includes $58.1 million in guarantees, sources told ESPN’s Adam Schefter.

Samuel is the seventh wideout this offseason to sign a deal worth at least $24 million per year. Before this season, only DeAndre Hopkins of the Arizona Cardinals had hit that mark.

In striking the deal, the Niners and Samuel brought a peaceful end to a turbulent negotiation that saw Samuel request a trade from the Niners in April. Despite that request, San Francisco held firm to its desire to work through whatever issues bothered Samuel and reward him with a significant contract that would keep him with the team well into the future.