Testnet only, on qorechain-diana. See how a copy works

QoreCopy

eye, brain, hand, index

How QoreCopy works

The problem

Skilled traders work the native AMM of QoreChain around the clock. Following them by hand is hopeless: bursts of swaps land seconds apart, and every manual copy pays gas, slippage, and your own hesitation. QoreCopy turns one choice, "follow this trader", into a deterministic daemon that watches the chain and mirrors each qualifying swap on your funds, inside limits you can tune per trader.

The core promise is honesty about cost: with the journal configured, each copy records a receipt on the Native registry in the same transaction, and the daemon measures the lag cost of each copy in basis points against the trader's own price.

Six steps

  1. The Eye subscribes to the node's transaction events and keeps only swaps signed by followed traders; if the websocket drops it falls back to polling every 10 seconds.
  2. Each swap event goes to the Brain: eight deterministic rules, no model, no memo reading. The first failing rule skips the copy and logs it.
  3. The rules check the follow list, allowed pools, 60 second pacing, pool impact, token balance, the daily budget, a fresh quote, and the slippage tolerance.
  4. The Hand: the relayer sends a MsgExec that carries your MsgSwapExactIn, under the permission you gave, with your copy size and a minimum out taken from the quote minus tolerance.
  5. When the journal is configured, the same transaction carries a second message that calls the QoreCopyJournal contract, writing the receipt to the Native registry. The receipt note is always in the memo. Cosmos transactions are atomic over their messages: if the receipt cannot be written, the swap is cancelled.
  6. The Index rebuilds history from the chain into memory and serves it over HTTP; this dashboard reads that API and updates from its event stream.

Architecture

Trader swaps on a native AMM pool
The Eye: chain watcher, polling fallback
The Brain: 8 rules, deterministic code
Logged as skipped, with rule and reason
The Hand: relayer, your copy size, min out from quote
MsgExec(MsgSwapExactIn) + MsgCrossVMCall to QoreCopyJournal
Pool swap done, receipt on the Native registry
The Index: in-memory stats, HTTP API
This dashboard, plus the Stop button

The eight rules

  1. 1

    Trader on the list

    Only traders you chose get copied; a stopped pair is skipped.

  2. 2

    Pool allowed

    Only pools 2, 4, 6 and 7, and only swaps with QOR on one side.

  3. 3

    60 second pacing

    One copy per minute per trader by default, so a burst cannot drain the budget.

  4. 4

    Swap not too big

    A swap over 1% of the pool reserve is skipped; we move before the chain's 5% cap.

  5. 5

    Token in stock

    Your wallet must hold the input token, or the swap would just fail.

  6. 6

    Daily budget

    Copy size plus fee must fit inside the daily budget, 30 QOR by default.

  7. 7

    Quote sane

    The quote must return output above zero and impact under 2% by default.

  8. 8

    Minimum out set

    Min out is the quote minus a tolerance, 1% by default; without a fresh quote there is no copy.

What the chain enforces vs what our code enforces

Enforced by the chain

  • A single swap cannot move a pool price by more than 5%.
  • The two messages are atomic: receipt fails, swap reverts.
  • The journal contract accepts only printable notes of 1 to 140 characters, no quotes, no backslashes.
  • Only allowlisted targets can be called through the cross-VM bridge.

Enforced by our code only

  • The follow list and the allowed pools (2, 4, 6, 7).
  • The 1% pool impact rule.
  • The limits of each follow, with defaults of 0.5 QOR per copy, a 30 QOR daily budget, 60 second pacing, a 2% impact ceiling and 1% slippage. You can change them per trader, down to 0.1 QOR and 30 seconds.
  • Stopping a follower, which the daemon decides, not the chain.

Limits, honestly

  • The only payer is the wallet that signed in with QoreX. It follows up to two traders, and each followed trader has its own daily budget, 30 QOR by default. The tokens stay in that wallet: the user gives the relayer one permission, for the swap message, which expires after 30 days and can be taken back at any time. The daemon holds no key for that wallet.
  • That permission carries no amount limit on chain: it covers any swap from the account, in any pool. The copy size, the allowed pools and the daily budget are enforced by the daemon's code. Whoever held the relayer key could trade the account badly on purpose, so use an account that holds only what you are ready to lose.
  • No database: the index lives in memory and is rebuilt from the chain at startup. History older than the query window is not shown.
  • Lag cost compares the trader's execution price with the price quoted for our copy when the daemon decides; on fast pools part of it is inherent to copying, not a bug.