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

Arbitrage cashback.

Live

Your swap moved the price. Now you get paid for it. Argus closes the gap your own buy opened, inside the same transaction, and pays most of the profit back to you in HYPE.

The mechanism

  1. 01
    You buy TOKEN on pool A. The buy pushes A's price above TOKEN's price on pool B, or above the price implied by a route such as TOKEN/HYPE + HYPE/USDC.
  2. 02
    In the same transaction, Argus buys TOKEN on the cheaper pool and sells it on the pricier one until their marginal prices meet. It uses Uniswap v4 flash accounting or a flash swap, so it needs no capital and ends holding nothing.
  3. 03
    The profit is split 70% to you, 20% to the protocol and 10% to that pool's LPs. The LP share is donated with v4 donate, or by transfer plus sync() on v2-style pairs.
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. The capture runs after your legs and before delivery, inside one atomic transaction.

Rules the router enforces

  • The capture runs only if profit ≥ minProfit after gas.
  • A failed or unprofitable capture is caught with try/catch. Your swap proceeds normally. A capture can never revert your trade.
  • It is atomic, holds no inventory and needs no keeper or off-chain bot.

The math

One constant-product pool

A pool holds reserves x (HYPE, the quote side) and y (TOKEN). The LP fee is taken on the input, so only γ = 1 − fee of what you send reaches the curve (γ = 0.997 for a 0.3% pool).

x · y = k
p = x / y (HYPE per TOKEN)
out(Δx) = y · γΔx / (x + γΔx)
Spot price and constant-product output with the fee on the input.

Your buy of Δx HYPE moves pool A to (x + Δx, y − out). Its curve price impact is γΔx / x, and its new spot price is higher than pool B's. That difference is the gap.

The closed-form optimal backrun

Call the cheaper pool c and the pricier pool r. Argus sends δ HYPE into c, takes the TOKEN out and sells it into r. Composing two constant-product swaps gives one curve:

loop(δ) = A·δ / (B + C·δ)
A = γ² · x_r · y_c
B = x_c · y_r
C = γ · y_r + γ² · y_c
HYPE out of the loop HYPE → c → TOKEN → r → HYPE, for δ HYPE in.

Profit π(δ) = loop(δ) − δ is concave. Its maximum is where the marginal loop rate equals 1, which has a closed form:

loop′(δ) = A·B / (B + C·δ)² = 1
δ* = (√(A·B) − B) / C
π* = loop(δ*) − δ*
δ* is positive only when A > B, i.e. p_r / p_c > 1 / γ²: the gap must beat both pool fees (about 0.6% for two 0.3% pools).

At δ* the two pools' fee-adjusted marginal prices are equal, so no further arbitrage pays. The same optimum can be found by bisection on the final price, which is how the engine handles curves without a closed form (v3/v4 ticks, triangle routes).

The split

trader = 0.7 · π*
protocol = 0.2 · π*
LPs = 0.1 · π*
With an Eyes tier, the trader share rises to 74, 77 or 80% and the extra comes out of the protocol share.

Worked case

Two pools of the same token, both at 0.001 HYPE per TOKEN, with a 0.3% fee. Pool A is thin, pool B is deep. You buy with 300 HYPE on pool A.

Computed with the exact formulas above (src/lib/amm.ts). Gas is ignored here; the router also checks profit ≥ minProfit after gas.
StepValue
Pool A reserves25,000 HYPE · 25,000,000 TOKEN
Pool B reserves400,000 HYPE · 400,000,000 TOKEN
Your buy on A300 HYPE → 295,563.87 TOKEN
Price impact on A (γΔx / x)1.196%
Gap opened (A over B)+2.411%
Optimal backrun δ* into B209.369 HYPE → 208,632.47 TOKEN
Sold into A→ 211.242 HYPE
Profit π*1.873 HYPE
Your cashback (70%)1.311 HYPE (+0.437% on 300 HYPE)
Protocol (20%) · LPs (10%)0.375 HYPE · 0.187 HYPE

Try it

Cashback calculatorx·y=k · 0.3% feecomputed in your browser
300 HYPE
25.0K HYPE
401K HYPE
Eyes tier
0%+1.5%+3%BeforeAfter buyAfter ArgusPool APool B
Price vs start
Impact on A
1.20%
Gap opened
+2.41%
Backrun size
209.4 HYPE
Capture profit
1.873 HYPE
Your cashback · 70%1.311HYPEEffective price improvement +0.437%
  • Protocol · 20%0.3747
  • Pool A LPs · 10%0.1873
Move the sliders: same math, computed live in your browser.

Honest limits

  • Single-pool tokens get $0 cashback. With no second price to arbitrage against, there is no gap to close. They still get the shield and routing.
  • Small trades give small cashback. The gap scales with your price impact. If it does not beat both pool fees plus gas, the capture is skipped.
  • Deep, balanced pools give little. Cashback is largest when you buy on a thin pool while a deeper pool quotes the same token.
Edited 2026-12Version v1.0