I've proposed:
Three years of outfielder Jacoby Ellsbury at $68.5 million
One year of righthander Adam Warren with a 2018 salary of $3.315 million
Two years of center fielder Aaron Hicks with a 2018 salary of $2.825 million
for
Three years of reliever Mark Melancon at $48 million
One or two years of DH / third baseman Pablo Sandoval at the league minimum
Replacing Ellsbury’s contract with Melancon’s, the Yankees save roughly $7 million AAV over the next three seasons. Melancon and Warren swap bullpens while the Giants fill out their outfield with Ellsbury and Hicks. The Yanks also shed the combined 2018 salaries of $6.14 million for Warren and Hicks.
The trade would leave the Yankees with an outfield of Brett Gardner, Giancarlo Stanton and Aaron Judge with Clint Frazier, Estevan Florial, Billy McKinney and Jake Cave waiting in the wings.
Three years of Melancon could provide insurance against the potential departure of David Robertson, another converted closer, when the latter's contract expires after this season. Robertson and Melancon are right-handed relievers, born 11 days apart, selected by the Yankees in the 2006 draft (along with Dellin Betances).
Pablo Sandoval, a wild card at the league minimum, is a DFA candidate but could serve as a DH option or play third base until the touted prospects are ready. With no designated hitter and the recent addition of Evan Longoria, the Giants have no room for Sandoval. Then again, the Yankees might not have room for Sandoval on their 40-man roster.
The Giants would field a lineup of C Buster Posey, 1B Brandon Belt, 2B Joe Panik, SS Brandon Crawford, 3B Evan Longoria, LF Jacoby Ellsbury, CF Aaron Hicks and RF Hunter Pence to go with a shallow starting rotation impressively topped by Madison Bumgarner, Johnny Cueto and Jeff Samardzija.
The keys, of course, are the off-setting salaries of Ellsbury and Melancon, who each have full no-trade clauses. I don’t know the status of Sandoval’s limited no-trade clause.