Be very careful doing this.
Some people may find having to pay $1 very upsetting.
Some mistakes will have contributing factors (such as horrendous code written by someone else around the person's edit) making the system not exactly fair.
Also it may discourage productive behaviours like refactoring for fear of breaking things.
The success of such a policy depends on the culture of the team. Sometimes it will be fine, but it can have a negative impact as well. IMHO team members should never be afraid of breaking things. If you're moving fast and doing things, you WILL break stuff once in a while.
That being said, we used to shoot people relentlessly with nerf guns when they broke the build.