YPF SA will acquire interest in two unconventional oil and gas blocks in Vaca Muerta shale, Argentina, from TotalEnergies SE.