Imo salary cap rising doesn't mean you should automatically max guys who didn't play like max players.
Why should it? Just because of the connotation of the word?
Hayward signed a max deal, but his deal was not going to count as a max deal because the cap was rising. Everybody knew that. It's why teams were lining up to give him max contracts after an unspectacular season.
Besides, he wasn't asking for a max contract for his extension. They should have gotten it done before the season for four years and no options. It was poor foresight by the FO. Anyone who paid attention to what was happening with the new TV deal should have given Hayward whatever he wanted for four years.