deepskew
ManualHow-To

Trade Binaries

DeepBook Predict is an options-style market: you buy a binary that pays $1 per contract if BTC finishes on the chosen side of a strike at expiry, and nothing if it does not. deepskew lets you trade it from the Flow & Edge view, leading with the model-fair N(d2) so you see what the position is worth before you sign. Trades run through a PredictManager, your own on-chain account that holds the dUSDC positions are bought from and paid into. This is the full path: connect, fund the account, read the fair value, buy, then redeem and withdraw.

  1. 1
    Connect a wallet
    Use the Connect control at the top-right of the desk. deepskew reads balances and signs transactions through the connected Sui wallet, so nothing in this flow works until an account is attached.
  2. 2
    Request Testnet dUSDC
    The faucet is a Tally form. dUSDC is Predict’s quote asset, not the official Sui Testnet USDC, so the two are not interchangeable. You also need a little SUI in the same wallet to pay for gas.
  3. 3
    Create a trading account
    Open Flow & Edge, go to the Account tab, and choose Create trading account. This signs predict::create_manager, which creates and shares your PredictManager. It is a one-time setup and appears as your account a few seconds later, once the indexer picks up the on-chain event.
  4. 4
    Fund the account
    On the Account tab, Deposit dUSDC. This signs predict_manager::deposit and moves dUSDC from your wallet into the account. Buying spends from this account balance, not from your wallet directly; Withdraw on the same tab moves dUSDC back out.
  5. 5
    Read the bet
    On the Buy tab, pick a Direction (Up or Dn), a Strike (it defaults to at-the-money and snaps to the oracle’s on-chain strike grid), and a Max payout (what you win if it hits). The ticket leads with the model-fair N(d2) for that strike and side, and the order summary spells out the premium you pay, what you win, the max loss, and the time to expiry, before you sign.
  6. 6
    Buy (mint)
    Buy Up or Buy Dn signs predict::mint. It builds the MarketKey on-chain (market_key::new(oracle_id, expiry, strike, is_up)) and debits the premium from your account balance. When the button is disabled it names what is blocking it: connect a wallet, create an account, enter a size, add dUSDC, or the market is not live.
  7. 7
    Sell or settle (redeem)
    On the Sell tab, your open positions are listed with their mark value and unrealized PnL. Redeem signs predict::redeem: before expiry it pays the live bid, and once the oracle settles it pays $1 per contract if you were on the right side, 0 if not. The payout lands in your account balance.
  8. 8
    Withdraw to your wallet
    Back on the Account tab, Withdraw moves your account balance (anything unspent, plus winnings and settled payouts) back to your wallet via predict_manager::withdraw.
  9. 9
    Confirm on-chain
    Every step ends on a toast with the transaction digest and a Suiscan link, so the whole loop, create, deposit, mint, redeem, withdraw, is verifiable against the chain.
NoteWhere your dUSDC lives
Buying spends from your trading account, not your wallet. You fund the account from your wallet on the Account tab; premiums are debited from it, and winnings and settled payouts are credited back to it; you withdraw to your wallet whenever you like. Keeping every deduction in one place is what makes the order summary’s “from account” line exact.
CautionThe premium is a fair-value floor on Testnet
The premium is the live ask times your payout. While Predict’s pricing-config feed is unpublished on Testnet, deepskew shows the model-fair N(d2) as the floor and the contract applies the exact spread on-chain at mint, so what you actually pay can be a little higher than the estimate. The order summary marks it with a when it is estimated. See On-Chain Integration for the write path and Provide Liquidity for the LP side.