Her base salary at Yahoo may have been $1m, but during her first six months at Yahoo she got a total of $36,6m. She has $69 million worth of unexercised stock options plus $97 million of Yahoo stock she already owns, after less than five years, during which she run the company into the ground.
McInerney gets a base salary of $2m plus a bonus of up to $2m, and he "will also be eligible for grants of long-term incentive rewards of up to $24 million". All of this is connected to his performance, and I guess the requirements will be much stronger than the ones set for Mayer.