Argus.Field manual
Elysium · 99901 · 100 ms blocksHomeOpen the app
Eye 05 / 08Developers0% read

For developers.

Deployed · verified

Contract overview, the ArgusRouter interface, events and errors, owner powers, the deployed addresses, and how to integrate Argus as a route.

Contract overview

Phase 1 is three deployed contracts on Elysium. The router is one contract assembled from the route executor, the shield and the capture engine. Phase 2 and 3 contracts are marked.

ContractRole
ArgusRouterEntry points swapExactIn(SwapParams) (payable: approval or native HYPE) and swapExactInWithPermit2. Pulls the input, runs the route inside one Uniswap v4 PoolManager unlock, runs the shield on buys, runs the optional capture in try/catch, splits its profit, delivers to recipient and enforces minAmountOut. Holds no balance between transactions.
· RouteExecutorPart of the router. Executes legs on Uniswap v4 (including Montra launch pools, which are v4 pools with a hook), v2-style and v3-style pools. Routes of up to 4 hops, each split across up to 8 legs.
· ShieldProbePart of the router. The revert-probe: test-sells 1% of the bought amount and reverts the whole swap with ShieldBlocked if the sell fails or costs more than maxSellTaxBps.
· CaptureEnginePart of the router. Runs the capture plan (a 2–4 leg cycle) with a PoolManager flash borrow and returns the profit. A failure, or a profit below minProfit, emits CaptureSkipped and the swap continues.
ArgusTreasuryReceives the protocol share. distribute converts it to HYPE through the router, sends 50% to EyesStaking as rewards and uses 50% to buy back and burn $ARGUS.
EyesStakingStake $ARGUS for an Eyes tier (70 / 74 / 77 / 80% trader share) and earn HYPE rewards. Each stake restarts a 1-day unstake cooldown (the owner can set it up to 30 days).
FairPriceGuard · P2Reads the HyperCore mark / oracle precompile and checks the pool's deviation.
ArgusLaunchHook · P3Uniswap v4 hook: decaying sniper tax and a dev-sell event.
One Elysium transactionatomic · reverts together · holds no inventory01Route + quotesplit across pools02Shield probetest-sell, then revert03Your buylegs fill on pool A04Capturebuy B low, sell A high05Split70 / 20 / 1006Delivertokens + HYPE to youflash accounting: no capital neededtry / catch: a failed capture never blocks your swapOne Elysium transactionatomic · reverts together · holds no inventory01Route + quotesplit across pools02Shield probetest-sell, then revert03Your buylegs fill on pool A04Capturebuy B low, sell A high05Split70 / 20 / 1006Delivertokens + HYPE to youflash accounting: no capital neededtry / catch: never blocks your swap
Fig. Call order inside one ArgusRouter swap.

Safety properties

  • No upgradeability. The router, treasury and staking contracts have no proxy; the code at an address cannot change.
  • Split caps in code. The trader share is clamped to 60–90%, the LP share to at most 20% and the protocol share to at most 30% (any excess goes to the trader). No setting can move them past these caps.
  • Pause. The owner can pause all swaps, or swaps of a single token.
  • No custody. Every swap ends with the router at a zero balance; leftover input and dust are refunded to the caller.
  • Open source, and source-verified on the Elysium explorer.

Owner powers

The owner (two-step ownership transfer) can do exactly this, and nothing else:

ContractOwner can
ArgusRouterPause and unpause all swaps, or pause a single token. Set the treasury and staking addresses. Set the LP share (capped at 20%). Rescue stray balances sent to the router by mistake; the router holds no user funds between transactions.
ArgusTreasuryTrigger distribute (rewards and buyback). Rescue stray tokens that cannot be routed to HYPE; it cannot touch HYPE, WHYPE or $ARGUS.
EyesStakingSet the $ARGUS token once, set the tier thresholds, set the unstake cooldown (at most 30 days), and rescue stray tokens other than staked $ARGUS.

ArgusRouter interface

IArgusRouter.solSolidityDeployed
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;

/// Deployed and source-verified on Elysium mainnet (chain 99901).
/// Native HYPE is address(0). HYPE and WHYPE are one asset for routing.
interface IArgusRouter {
    enum Venue { V4, V2, V3 }      // Montra launch pools are v4 pools with a hook

    struct Leg {
        Venue venue;
        address pool;              // V2 / V3 pool (ignored for V4)
        PoolKey key;               // v4 PoolKey (ignored for V2 / V3)
        uint16 shareBps;           // share of the hop's input; a hop sums to 10_000
        uint24 v2Fee;              // V2 only: fee in pips, 0 = ask the pair
        bytes hookData;            // V4 only: passed to the pool's hook
    }

    struct Hop {
        address tokenOut;          // every hop swaps all of the previous hop's output
        Leg[] legs;                // up to 8 legs per hop
    }

    struct CapturePlan {
        address asset;             // profit asset the cycle starts and ends in
        uint256 amountIn;          // flash-borrowed from the PoolManager
        uint256 minProfit;         // below this the capture is skipped
        Leg[] legs;                // 2-4 legs forming a cycle; empty = no capture
    }

    struct SwapParams {
        address tokenIn;           // address(0) = native HYPE
        address tokenOut;
        uint256 amountIn;
        uint256 minAmountOut;      // enforced on the whole delivered output
        uint256 deadline;          // unix seconds
        address recipient;
        uint16 maxSellTaxBps;      // shield threshold; 10_000 turns the shield off
        Hop[] hops;                // up to 4 hops
        CapturePlan capture;
    }

    function swapExactIn(SwapParams calldata p)
        external payable returns (uint256 amountOut);

    function swapExactInWithPermit2(
        SwapParams calldata p,
        ISignatureTransfer.PermitTransferFrom calldata permit,
        bytes calldata signature
    ) external returns (uint256 amountOut);
}
FieldMeaning
tokenIn / tokenOutThe pair. address(0) means native HYPE; the router wraps and unwraps WHYPE between legs as each pool needs.
amountIn / minAmountOutExact input, and the minimum the recipient must receive in total. The swap reverts below it.
deadlineThe swap reverts after this unix time.
recipientReceives the output and the trader's share of any capture.
maxSellTaxBpsShield threshold: the highest round-trip cost the 1% test-sell may show, in bps. It includes pool fees, so set it above them. 10_000 turns the shield off (sells, or tokens you already trust).
hopsThe route: up to 4 hops, each split across up to 8 legs by shareBps. Token direction is derived on-chain from each pool.
captureThe capture plan from the quote: profit asset, flash-borrow size, minProfit and 2–4 cycle legs. Empty legs means no capture.

Both entry points return amountOut, the total delivered to recipient in tokenOut (it includes the cashback when the capture's profit asset is tokenOut).

Events and errors

Events and errorsSolidityDeployed
event Swap(
    address indexed user,
    address indexed recipient,
    address indexed tokenIn,
    address tokenOut,
    uint256 amountIn,
    uint256 amountOut,
    bytes32 routeHash          // keccak256 of the ABI-encoded hops
);

event Capture(
    address indexed user,
    address indexed asset,     // the profit asset
    bytes32[] pools,           // v4 pool ids, or v2 / v3 addresses as bytes32
    uint256 profit,
    uint256 traderCut,
    uint256 protocolCut,
    uint256 lpCut,
    bool lpDonated             // false: the LP cut went to the treasury
);

/// A capture plan was supplied but skipped; the swap went through without it.
event CaptureSkipped(address indexed user, bytes4 reason);

/// Revert, not a log: a blocked buy reverts as a whole.
/// taxBps = measured round-trip cost of the test-sell (10_000 = the sell failed).
error ShieldBlocked(address token, uint256 taxBps);

The app indexes Swap, Capture and CaptureSkipped from the router since its deployment block for the live protocol stats (GET /api/protocol).

decodeShield.tsTypeScript
// Decode a ShieldBlocked revert from a failed router call.
// bytes4(keccak256("ShieldBlocked(address,uint256)"))
const SHIELD_BLOCKED = "0x5ebcac53";

export function decodeShield(revertData: string) {
  if (!revertData.toLowerCase().startsWith(SHIELD_BLOCKED)) return null;
  const body = revertData.slice(10);
  const token = "0x" + body.slice(24, 64);
  const taxBps = Number(BigInt("0x" + body.slice(64, 128)));
  return { token, sellFailed: taxBps >= 10_000, roundTripCostPct: taxBps / 100 };
}

Integrating Argus as a route

Wallets, bots and other front ends on Elysium can use Argus as one route among others:

  1. 01
    Quote

    The app's quote endpoint below, computed from real on-chain reserves. It returns the route split, the capture estimate and plan: the exact hops, legs and capture plan for swapExactIn.

  2. 02
    Compare

    Compare amountOut (plus the capture.trader estimate, if you count cashback) with your other routes.

  3. 03
    Execute

    Build SwapParams from plan.hops and plan.capture, your minAmountOut and deadline, pre-flight with eth_call, then call swapExactIn (or swapExactInWithPermit2) from the user's wallet.

  4. 04
    Read results

    Parse Swap, Capture and CaptureSkipped from the receipt, or decode ShieldBlocked from a revert.

quote.tsTypeScript
// Read-only quote from the Argus app (same engine as the swap screen).
type Quote = {
  ok: boolean;
  amountOut: number;
  priceImpactPct: number;
  route: { pool: string; dex: string; sharePct: number; amountIn: number; amountOut: number }[];
  bestSinglePool: { pool: string; dex: string; amountOut: number };
  gap: { cheap: string; rich: string; gapPct: number } | null;
  capture: { profit: number; trader: number; protocol: number; lp: number } | null;
  minReceived: number;
  at: number;
};

export async function quote(tokenIn: string, tokenOut: string, amountIn: number): Promise<Quote | null> {
  const q = new URLSearchParams({ tokenIn, tokenOut, amountIn: String(amountIn) });
  const res = await fetch(`/api/quote?${q}`);
  if (!res.ok) return null;
  const data = (await res.json()) as Quote;
  return data.ok ? data : null;
}

Addresses

Deployed on Elysium mainnet at block 15,413,653, source-verified on the Elysium explorer. Published on this page and the official X. Nowhere else.
ContractElysium address
ArgusRouter (verified)0xbd46AFF221B430B0C72A8fbD0f1b918A54007A13
· RouteExecutor, ShieldProbe, CaptureEngineModules inside ArgusRouter (same address)
ArgusTreasury (verified)0xB6b10012E02E2054D54F545957AE1EF95218f0CF
EyesStaking (verified)0x1d1f08E5e3CE926FFf655e4Da45D9aFf258f495e · opens when $ARGUS launches
Owner (single key; multisig recommended)0xfDDb4Ca02Eab749F51585caDbe19608958D6f5Fc
$ARGUSCA: Launching on Montra

Elysium reference addresses

Existing Elysium contracts the router interacts with. Verify on the explorer before use.
ContractAddress
WHYPE0xbA876237B0F021A6c6D852d6c26E107997cC5E81
USDC0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65
Multicall30xcA11bde05977b3631167028862bE2a173976CA11
Uniswap v4 PoolManager0xE2e105d3F7209A9DA11f83cCf3E7398a753823F1
Permit20x000000000022D473030F116dDEE9F6B43aC78BA3
Edited 2026-12Version v1.0