5050.markets

How we move real money without ever losing a cent

The crash-safe plumbing behind your balance

The scariest moment in any money app is the payout. You hit withdraw, the server starts sending your USDC, and then... what if the machine crashes mid-send? Did the money go out? Did it vanish? Most apps cross their fingers. We refused to.

So we built 5050 to be boring, paranoid, and obsessed with one question: what actually happened on-chain? Here is the plumbing behind your balance.

We write the receipt before we send the money

When you withdraw, we record the transaction hash and mark the row "processing" before we broadcast the payment to the network. If the server dies in that tiny gap, no problem. On reboot it takes that exact hash and asks the chain directly: did this go through or not?

That single move kills the two nightmares of payouts. We never pay you twice, and we never quietly lose a withdrawal. The truth lives on the chain, and we always go check it.

Record the hash, broadcast, and on a crash ask the chain what really happened

Every dollar is counted in whole numbers

We never use floating point math for money. Every balance is counted in micro-USDC, millionths of a dollar, as plain integers. That sounds nerdy, but it matters: in normal computer math, 0.1 + 0.2 does not equal 0.3. Here it does, exactly. Tiny rounding errors can never quietly pile up into missing money.

Refunds follow the same discipline. They are keyed on the withdrawal's own id, so even if the code somehow runs twice, you get credited exactly once. Never zero, never double.

Two things can't spend the same dollar

Before any change to your balance, we take a per-user lock. So if a trade and a withdrawal fire at the exact same instant, they line up instead of colliding. They cannot both spend the same dollar.

Deposits get the same treatment from the other direction. Each one is deduplicated on its transaction hash and log index with a hard database rule, and we only credit it after 12 confirmations. That way a reorganization of the chain can never reverse a deposit you have already been paid.

We check our own books against the truth

Every few minutes, a solvency monitor compares the real on-chain balance against everything we owe users. If anything is ever off by a cent, we know fast. It is a smoke alarm for your money.

Money software should be boring. Ours is, on purpose.

Ready to take a position with real money that is actually treated like real money? Open 5050 and trade.

Play 5050 →