The veteran slugger will get $24 million for the two seasons and the Dodgers have a $10-million club option for 2026.