documentation

Balances

Deposit USDC into the Exchange contract before trading. Outcome shares are standard ERC-1155 tokens — winning shares redeem for $1.00 each.

Deposits & withdrawals

deposit transfers USDC from your wallet into your exchange balance, and withdraw returns it to your wallet. Both are direct user-submitted transactions. Fills spend your deposited exchange balance rather than raw wallet USDC. (In local development, a faucet can mint demo ETH and USDC, which you still deposit before trading.)

Because Yes and No shares are ERC-1155 tokens, you can transfer them freely to another wallet via safeTransferFrom. Transferring a position automatically cancels any open sell orders, TP/SL exits, and closing stops attached to that position.

Share operations

Action Behavior
Split Locks n USDC and mints n Yes shares and n No shares.
Merge Burns 1 Yes share and 1 No share to return $1.00 USDC.
Close Sells held shares directly into same-side bids via a signed settleFill inventory transfer. See Trust.
Redeem After resolution, burns winning shares for $1.00 each. Losing shares pay $0 (redeeming with zero winners cleans up losing dust).
Automatic bid trimming on withdrawal After a withdrawal, your remaining balance must cover each market side’s open buys. If open buys on a given side exceed your new balance, the exchange cancels them starting from the lowest price until the remainder fits. Cancelled orders appear in history as Balance withdrawn.

Main wallet security

Withdraw, split, merge, and redeem always require your main wallet — even when 1-click trading is active. See Positions for tracking open holdings and Orders for how soft reserves back resting buys.