I’ve been at my current role for almost 7 years. It doesn’t pay nearly what I could be making elsewhere. I’ve interviewed and been offered better money, but it means giving up the kind of work I do now for something less interesting.
I’ve turned down those offers and stuck where I am, even though it means less money. As my wife told me when we were talking about this: This is the work that you’re going to be doing every day, and that has to be worth it.
That said, there is a cost to my career sticking here instead of moving around.