It's already been done [1]. An interesting point someone brought up about this is if your money goes to a good cause, it may be less of a motivator, since even if you fail your personal goal, you still did some good.
Perhaps donating money to a charity or political party you don't agree with would be more motivating.