Fun fact: Non-competes in Germany are legal only for up to two years and only if the previous company pays at least 50% of the previous salary for the duration of the non-compete.
What happens in cases like AWS where the Base salary is 170k and Bonus is in Millions of dollars - will the previous company only pay 85k and get away with it ?
Base salary is the basis unless the bonus is regular and even. At that point they can consider the argument of using base+bonus as the "normal pay".
Most countries take your whole comp as your anual salary when being laid off.