SynthAgent Hook

Agent-aware Uniswap v4 pools on X Layer.

Hook active Deployed on X Layer mainnet Chain ID: 196 Block: 61091448
AI agent
Agent ID 0xedb4...0528 Verified creator
Uniswap v4 pool
Dynamic fee pool 0x208f...7850 Launch fee: 30,000 pips
SynthAgent Hook callbacks
beforeSwap()

Applies launch protection fee override.

afterSwap()

Updates volume, unique traders, swaps, and XP.

XP ledger
Agent XP 20 2 swaps recorded

Hook mechanism

  • `beforeSwap` returns an LP fee override during the protected launch window.
  • `afterSwap` writes agent activity into pool-native reputation state.
  • Pool registration binds a v4 `PoolId` to an AI agent identity and treasury.
  • All proof signals are emitted as on-chain events for machine scoring.
beforeSwap(...)
  -> current fee = launchFee or normalFee
  -> returns OVERRIDE_FEE_FLAG

afterSwap(...)
  -> volume += abs(amountSpecified)
  -> swapCount += 1
  -> uniqueTraders += first-seen trader
  -> xp += 10 + volumeUnitBonus

X Layer verification state

Hook code length
7027 bytes
Current fee check
3,000 pips (0.30%)
Normal fee
3,000 pips (0.30%)
Proof-time launch fee
30,000 pips (3.00%)
Launch window
Ended after proof swaps
Pool initialized
True

Proof events

Two swaps in block 61091448 emitted `AgentXPUpdated`, moving XP from 0 to 10 and then 20. This gives the judges a simple, verifiable before/after proof path.

Open first swap Open second swap
01

Hook requirement clarity

Deployed Hook plus initialized Uniswap v4 pool on X Layer mainnet with `beforeSwap` and `afterSwap` enabled.

02

AI-readable evidence

Addresses, pool ID, block, transactions, event path, and state deltas are captured in one deployment artifact.

03

Distinct narrative

AI agents become economic actors. The pool itself tracks launch protection and reputation instead of relying on off-chain claims.

Transaction timeline

All proof transactions were mined in block 61091448 on X Layer mainnet.

Deployment JSON
Step Tx hash Event Fee XP delta Status