The Mets have their Robinson Cano replacement.

After days of speculation and mutual interest, second baseman Joe Panik to the Mets is a done deal. The sides had to wait until he cleared waivers on Friday afternoon and for the Mets to clear a roster spot, with infielder Adeiny Hechavarría being the odd man out.

The Giants designated the 2015 All-Star for assignment earlier this week. He is expected to join the Mets on Friday.

Panik, a New York native and St. John’s alum, has struggled this season, but there is hope he can turn it around in Queens and provide some extra depth in the wake of Cano’s potentially season-ending hamstring injury.

A World Series winner in 2014, Panik would be a welcome presence on a team hunting for its first postseason appearance since 2016.