Arbitrage cashback.
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
- 01You 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.
- 02In 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.
- 03The 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 plussync()on v2-style pairs.
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).
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:
Profit π(δ) = loop(δ) − δ is concave. Its maximum is where the marginal loop rate equals 1, which has a closed form:
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
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.
| Step | Value |
|---|---|
| Pool A reserves | 25,000 HYPE · 25,000,000 TOKEN |
| Pool B reserves | 400,000 HYPE · 400,000,000 TOKEN |
| Your buy on A | 300 HYPE → 295,563.87 TOKEN |
| Price impact on A (γΔx / x) | 1.196% |
| Gap opened (A over B) | +2.411% |
| Optimal backrun δ* into B | 209.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
- Impact on A
- 1.20%
- Gap opened
- +2.41%
- Backrun size
- 209.4 HYPE
- Capture profit
- 1.873 HYPE
- Protocol · 20%0.3747
- Pool A LPs · 10%0.1873
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.