Crypto exploits

VTSwapHook exploit analysis

VTSwapHook, a Uniswap v4 hook on Arbitrum pricing a custom ATH/vATH curve, wrote the full pre-fee swap amount into its reserves while pricing trades with a fee-adjusted amount; a two-swap round trip inside one unlock call reportedly drained 4,507,034.03 vATH and 2,007,935.14 ATH, per DeFiHackLabs.

David

Security ·

Reported loss
4,507,034.03 vATH and 2,007,935.14 ATH, per DeFiHackLabs's reproduction, matching the token transfers recorded on the attack transaction on Arbiscan
Occurred
Logged
Chain
Arbitrum

Logged as “2026-03-28: Pricing Error In Uniswapv4 Hook on VTSwapHook”.

Analysis3 min read

VTSwapHook was a Uniswap v4 hook on Arbitrum that paired Aethir's ATH token, which CoinGecko describes as an enterprise GPU-as-a-service network, with a vesting wrapper token called vATH, and priced swaps between the two through its own custom, non-linear VT/T curve rather than Uniswap v4's default pool math. vATH's Arbiscan token page caps its max supply at 7,785,656.98929877 vATH, which puts the vATH taken in this incident at roughly 58 percent of everything that token could ever hold.

The hook contract itself, deployed at 0xbf4b4A83708474528A93C123F817e7f2A0637a88, is not independently verified on Arbiscan, so its source is not confirmed beyond the proof of concept. What is known about the bug comes from the proof-of-concept's own code comments: VTSwapHook priced a swap using a fee-adjusted amount, then wrote the full pre-fee specified amount into its reserve state, tracked through a reserve1() getter the hook still exposes. That gap between the number used to quote a trade and the number used to update the pool's books is the entire bug. It let a caller run two opposite swaps back to back inside one unlock and come out with a net-positive balance in both of the pool's currencies, which a reserve update reconciled to the same fee-adjusted number would not have allowed.

The attack, reconstructed in the proof-of-concept against an Arbitrum fork at block 446,382,719, ran as one sequence inside a single Uniswap v4 unlock call:

  1. The attacker, 0xF378840dE079c70f55218cD3AF99D2D81ba154BA, deployed a fresh helper contract, 0x959EC1872100eccb8C9AC355304fED81FA5d237E, carrying no prior balance or state.
  2. The helper approved both vATH and ATH to the Uniswap v4 PoolManager at 0x360E68faCcca8cA495c1B759Fd9EEe466db9FB32, then called unlock.
  3. Inside the unlock callback, it read the hook's reserve1() and swapped 35 percent of that ATH reserve into vATH as an exact-input trade, with the price limit set to V4's maximum usable sqrtPriceLimitX96 so the trade could not fail on slippage.
  4. It immediately reversed direction, swapping vATH back into ATH as an exact-output trade sized to exactly the vATH it had just received, at the minimum usable price limit.
  5. The fee-versus-reserve mismatch left the helper's running PoolManager deltas positive in both vATH and ATH after the two swaps, which the contract withdrew directly with take(), with no repayment or further settlement required.
  6. The helper forwarded the resulting 4,507,034.03 vATH and 2,007,935.14 ATH to the attacker's address.

Those are the amounts DeFiHackLabs reports for the incident, and they match the token transfers visible on the attack transaction itself, 0x61a37afac7991e25391d72846819644a0938ce20ebab25ccf3a1123e1bb9459d, recorded on Arbiscan at 01:37:10 UTC on March 28, 2026. The transaction moved no ETH value and cost the attacker 0.00012811 ETH in gas; its only effect was the two drained token balances leaving the pool. No figure in US dollars has been reported for this loss by any source. Neither the README nor the attack transaction carries a contemporaneous valuation for ATH or vATH, and pricing a March transfer at today's token price would not be the same thing as a reported loss, so none is given here.

No statement from Aethir, from whoever deployed VTSwapHook, or from a security firm has been published. DeFiLlama's hacks list carries an entry for VTSwapHook (Arbitrum, dated 2026-03-28) but gives no loss amount. Its description attributes the exploit to a pricing-curve approximation error combined with fee-accounting bugs, which differs in emphasis from the DeFiHackLabs reading. No rekt.news entry was found. The x.com post that the DeFiHackLabs entry cites as its own source is not independently available.

What would have stopped this specific trade is reconciling the two numbers the hook computed on every swap. If reserve1 and its vATH counterpart had been debited and credited using the same fee-adjusted amount the hook used to price the trade, rather than the larger pre-fee specified amount, the round trip would have returned to its starting balances instead of leaving a profitable residue sitting in the PoolManager's flash accounting for the helper contract to collect with take().

Sources read (5)