If he's on waivers because he was being waived, then the claiming team assumes his entire remaining salary (current year, and future years).
If the player was on the waiver wire because he was released, then the claiming team only pays the ML minimum ($327k, prorated for current year, and full $327k for future years) while the releasing team is on the hook for the rest.