Crypto exchange and prediction market on a ledger-first core
Users hold a USDT balance, trade, and take positions on event outcomes. The requirement that shaped everything: the books have to balance at any moment, including mid-trade and mid-withdrawal.
I put the accounting core in its own reusable module — double-entry postings, accounts, HD wallets, deposits and withdrawals across four networks, on-chain reconciliation, fees, compliance screening. The order book and prediction market sit on top of it. Private keys never live in the application: signing is isolated in a separate service.
The same core now backs a second, unrelated product. That's the test of whether a ledger was built properly: it survives being reused.


