Trading

DEX Smart Trade (Entry + TP + SL bundle)

8 min read

What it is

One signed bundle = Entry limit order + Take-Profit + Stop-Loss. Sign 3 EIP-712 orders ONCE (plus a one-time token approval). The bundle then runs autonomously: entry fills when price reaches your target → TP and SL legs both arm → whichever triggers first executes, the other cancels (OCO). Gas-free fills via CoW or Velora solvers.

How to think about it

Smart Trade is the DEX answer to "buy the dip, take profit at X, stop loss at Y" — usually a 3-step manual dance with most DEXes. Here, you commit to all three legs upfront. The page shows live distance-to-target % for entry, TP, and SL once you connect, so you can see how close each trigger is. Status lifecycle: pending_entry → entry_filled (TP/SL armed) → completed. Live-validated on CEX Coinbase using the same worker-monitored pattern.

Step-by-step

  1. Connect wallet + pick protocol + chain

    Connect Wallet. Pick CoW (Ethereum / Arbitrum / Base) or Velora (adds Polygon / BSC / Optimism / Avalanche). Pick the chain — the dropdown filters by what the protocol supports.

  2. Pick Spend + Buy tokens

    Spend (sell) = usually USDC. Buy = the asset you want to accumulate at entry and exit on TP/SL. For custom tokens, paste the contract address. The TradingView chart below the form follows your pair.

  3. Set Sell amount + Entry price

    Sell amount = total USD you commit to the trade. Entry price = USD per 1 buy-token you want to pay at entry (e.g., "buy WETH at $2,800"). The entry leg is a normal limit order — it only fills when market reaches your price.

  4. Set Take-Profit % and Stop-Loss %

    TP % = sell at entry × (1 + tp%). Field shows "→ Sells at $X" preview as you type. SL % = sell at entry × (1 - sl%). Same preview. Typical retail: TP 10-20% / SL 3-5%. Aggressive day-trade: TP 5% / SL 2%. Long-hold: TP 50%+ / SL 10%.

  5. Set Slippage + Watch duration

    Slippage default 1% (applied to BOTH TP and SL legs at fill time). Watch for: 24h / 7d / 30d. If entry never fills within the window, the entire bundle expires — all 3 signed orders die together.

  6. Sign approval + 3 leg orders

    Click Arm Smart Trade. First-time sell-token: ERC-20 approval transaction (gas). Then 3 EIP-712 signatures back-to-back labeled "Sign 1 of 3 — Entry", "Sign 2 of 3 — Take-profit", "Sign 3 of 3 — Stop-loss". All 3 are free (no gas) and take ~5 seconds total.

  7. Watch the lifecycle in the orders list

    Row shows status badge + live distance % to entry, TP, SL. Status flow: "Waiting for entry" (amber) → "TP/SL Armed" (emerald, entry filled) → "Completed" (one of TP or SL triggered and filled). If TP fires, SL is auto-cancelled. If SL fires, TP is auto-cancelled. OCO behavior built in.

Tips & pitfalls

  • 3 signatures total = the entire trade is pre-committed. After signing, you can close the browser, log out, walk away — bundle runs autonomously for the full watch period.
  • Entry leg is a normal limit order on the protocol orderbook. TP and SL legs are Chainlink-triggered — same mechanism as standalone DEX Stop Orders. Once entry fills, the TP/SL watchers go live.
  • OCO (one-cancels-other) is built in. When TP fires and fills, the SL order is automatically cancelled. When SL fires and fills, the TP is cancelled. You will never accidentally double-exit.
  • Slippage applies to both TP and SL fills — too tight (under 1%) on volatile pairs and the legs may not fill at trigger. Too loose (over 3%) and you may get filled significantly off the trigger price during fast moves.
  • Approval gas-paid ONCE per (sell-token, protocol) combo. Future Smart Trades + Limit Orders + Stop Orders + DCA on the same spend-token + protocol share the same approval.
  • If entry never fills within your watch duration, the entire bundle expires unfilled. Your funds are never touched — they sit in your wallet the whole time. You can re-create with a new entry price.
  • TP/SL preview shows the exact USD trigger price as you type the %. Use this to sanity-check before signing — if you accidentally type 100% TP instead of 10%, the "→ Sells at $5,600" line catches the typo.
  • Cancel button on the row cancels ALL 3 legs at once. CoW cancellations are free off-chain. Velora cancellations may require an on-chain tx depending on leg state.