Product

On-chain USDt

Optional mode that moves real USDt with Tether WDK: joiners deposit stake to the host, host pays winners after settle.

Enable on-chain mode

  1. Set env vars so RPC and USDt token are on the same network.
  2. Restart the app.
  3. When creating a pot, enable On-chain USDt stakes.
VariableRole
NEXT_PUBLIC_EVM_RPC_URLJSON-RPC for WDK
NEXT_PUBLIC_USDT_ADDRESSERC-20 contract
NEXT_PUBLIC_USDT_DECIMALSUsually 6 for USDt
NEXT_PUBLIC_USDT_SYMBOLDisplay symbol
NEXT_PUBLIC_CHAIN_NAMEUI label
NEXT_PUBLIC_EXPLORER_TX_URLTx link prefix

Flow

  1. Host creates pot (host is marked as holding the pool; no self-transfer).
  2. Joiner signs pick, then confirms an ERC-20 transfer of the stake to the host.
  3. Host locks only after all non-host players show stake sent.
  4. Host settles the result.
  5. Host pays each winner with WDK transfer; explorer links are stored on the pot.

Technical path

Transfers call account.transfer({ token, recipient, amount }) on the WDK EVM account. Amount is converted to token base units with the configured decimals. Balance is checked before send.

What you need in the wallet

  • Enough USDt for stake or payouts
  • Native gas token for ERC-20 transfer fees
  • Network matching the configured RPC and token