hybrid-perps-spec

Deposit & Withdrawal Scenarios


SC-DW-001: TRON USDT Deposit

Preconditions:

Steps:

  1. On-chain block scanner detects incoming transaction
  2. Waiting for confirmations (19 required on TRON)
  3. 19th confirmation reached
  4. Credit user Platform internal balance: +$1,000
  5. Evaluate aggregation: is address balance above aggregation threshold?

Expected Results:


SC-DW-002: Ethereum Deposit — Aggregation to Hot Wallet

Preconditions:

Steps:

  1. After 12 ETH confirmations, credit user balance: +$5,000
  2. Aggregation evaluation: balance $5,000 > threshold → execute aggregation
  3. Platform builds ETH aggregation transaction (consumes ETH for gas)
  4. USDT transferred to platform ETH hot wallet

Expected Results:


SC-DW-003: Small Auto Withdrawal (< $10K, 5-Min SLA)

Preconditions:

Steps:

  1. Tier check: $2,000 < $10,000 → auto review
  2. Risk rules pass (no blacklist, no frequency anomaly)
  3. 2FA verification passes
  4. Available balance check: $5,000 ≥ $2,000 ✓
  5. Hot wallet balance check: $300,000 sufficient ✓
  6. Build TRON USDT transfer transaction
  7. Broadcast on-chain

Expected Results:


SC-DW-004: Large Withdrawal — Manual Approval Flow

Preconditions:

Steps:

  1. Tier check: $150,000 > $100,000 → risk review + manual approval
  2. Risk team receives pending approval notification in admin panel
  3. Manual review: check user KYC, source of funds
  4. Approval granted → execute transfer

Expected Results:


SC-DW-005: Hot Wallet Insufficient — Trigger Cold Wallet Top-Up

Preconditions:

Steps:

  1. Hot wallet balance check: $80,000 insufficient (must maintain minimum level)
  2. System triggers cold wallet top-up flow
  3. Generate cold wallet transfer proposal (amount = target level - current balance)
  4. Risk officer approves offline (cold wallet requires offline signing)
  5. Approval granted → broadcast on-chain → await confirmation
  6. Hot wallet replenished → resume user withdrawal

Expected Results:


SC-DW-006: Withdrawal Risk Intercept — Frequency Anomaly

Preconditions:

Steps:

  1. Tier check: $500 < $10,000 → auto review
  2. Risk rule: same address > 3 withdrawals in 24h → frequency anomaly
  3. Auto-flag as suspicious; escalate to manual review

Expected Results: