If Boston buys Yam out, they should give him a vet min contract for 2 years with a team option for a third. Given they are picking up the cost of the buyout and that Mader is still a 2nd rounder, Yam should be good with that contract.
Might be best just to let him develop another year in Europe though.