Matching that fixes itself
Each time anyone adds or removes a stake, SideBet clears every match on the bet and pairs the money again from scratch, oldest stake first, at the bet’s odds. Money with no partner stays unmatched, so it isn’t at risk.
Because matches are rebuilt every time, they can’t go stale. An older version patched them in place, and deleting a stake could leave one side with more matched money than the other side had put up.
Ada puts $30 on Side A, Cy puts $40 on Side B, then Ben puts $20 on Side A.
Ada drops out, so SideBet starts over




