DeFi Protocols

Uniswap V4 AMM Swap

Permissionless token swap via concentrated liquidity AMM. V4 hooks enable optional KYC at pool level.

Vendors

Uniswap · Hook Deployers

Compliance center

Identity — only if hooks deployed. Most pools have no compliance. Honesty marker.

defidexuniswapammhookspermissionlesscompliance-gap
Filter by shape:
|
D1 · DEFIUniswap swap·4 stations(1 compliance, 3 infra)·coinbase
S1INTENTS2S3DISCOVERYS4NEGOTIATIONS5S6S7FACILITATIONS801Smart Wallet02Oracle Feed03Swap04Smart Wallet
3+5 shape system
GatePre-condition — blocks if it failsMonitorConcurrent — observes without haltingObligationPost-settlement — reports after the factsolid = codedashed = policy
How to read this diagram
Each station on the rail represents a compliance or infrastructure event in the Uniswap swap path. Hover any station to inspect it. The shape tells you what kind of event it is. The ring tells you how it's enforced.
Gate Monitor Obligation| Ingress Crossing Transform Settlement Venue
This path at a glance
4 stations across 4 of 8 segments. 1 are compliance checkpoints, 3 are infrastructure.
3 code-enforced1 policy-enforced
L5 APPLICATIONL4 ACCOUNTL3 EXECUTIONL2 CONSENSUSL1 NETWORKBASE
L5 APPLICATIONWALLET
L4 ACCOUNTWALLET

Step 1 · User Wallet (Base)Policy-Enforced

"The trader's brokerage account — identity verified, funds available, order ready to submit."

User's self-custody wallet on Base. L4 Account (token balance, approval) and L5 Application (wallet UX, swap interface) are lit above the enforcement line. The swap order has been constructed but not yet submitted.

Counterparty
Self (user holds keys)
Latency
Instant · no on-chain tx yet
Finality
N/A — swap not yet submitted
Vendors
Coinbase Wallet · Coinbase Smart Wallet (ERC-4337 account abstraction — passkey-based onboarding) · EOA + ERC-4337 Smart Account (Coinbase Smart Wallet is the canonical Coinbase-operated AA surface) · Coinbase Custody Trust Company, LLC (New York limited-purpose trust company under NYDFS) · Coinbase Prime brokerage (institutional custody + execution surface) · third-party qualified custodians per integrator (Anchorage · BitGo · Fireblocks) · Securitize LLC (SEC-registered transfer agent; runs Reg D 506(c)(2)(ii) accredited-investor verification workflow; transfer-agent function is off-chain, identical on Base and Ethereum) · Coinbase Paymaster (gas-sponsorship primitive for Coinbase Smart Wallet flows · ERC-4337 paymaster contract) · Coinbase Verifications (Ethereum Attestation Service-backed attestation product binding Coinbase-verified identity attributes — country of residence, accredited-investor status, etc. — to addresses) · Securitize Markets ATS (SEC-registered ATS) · BlackRock BUIDL · other Securitize-issued RWAs (Base deployments via multichain expansion — ACRED was Ethereum-mainnet and Base availability is NOT independently confirmed)
Chain
Base (Coinbase (sole sequencer operator at launch; decentralization on roadmap))
L5 APPLICATIONL4 ACCOUNTL3 EXECUTIONL2 CONSENSUSL1 NETWORKBASE
L3 EXECUTIONOracle price
◆ Enforcement Line — code-enforced at this layer

Step 2 · Oracle Price CheckCode-EnforcedINGESTDETECTALERT

"The exchange's pre-trade price validation — ensuring the order will execute within acceptable slippage."

Price oracle verification at L3 Execution: the swap router checks current pool prices against the user's slippage tolerance. Uniswap v4 hooks may fire additional compliance checks (D16) at this point — MEV protection, front-running detection.

Counterparty
Uniswap v4 pool + oracle
Latency
<1s · on-chain read
Finality
Pre-condition — swap reverts if price moved beyond slippage
Vendors
Uniswap v4 · Aerodrome (Base-native AMM derived from Velodrome) · BaseSwap · Chainalysis OFAC Oracle (on-chain SDN-list enforcement primitive · code-enforced at the contract layer for opt-in callers) · Circle CCTP v2 (canonical USDC burn-and-mint cross-chain transport between Base and Ethereum / other CCTP-supported chains) · Base Bridge (OP Stack canonical L1 ↔ L2 bridge with 7-day challenge window · L1-escape-hatch via force-inclusion) · Securitize DS Protocol (on-chain transfer-restriction smart-contract framework enforcing eligible-investor whitelisting — ACRED is Ethereum-only; BUIDL multi-chain expansion to Base reported in public reporting but primary-source confirmation pending)
Chain
Base (Coinbase (sole sequencer operator at launch; decentralization on roadmap))
L5 APPLICATIONL4 ACCOUNTL3 EXECUTIONL2 CONSENSUSL1 NETWORKBASE
L4 ACCOUNTDEX
L3 EXECUTIONDEX
◆ Enforcement Line — code-enforced at this layer

Step 3 · AMM Swap ExecutionCode-Enforced

"The exchange matching engine — the trade is executed against available liquidity at the current price."

Uniswap v4 constant-product AMM executes the swap: input tokens are deposited to the pool, output tokens are withdrawn. L3 Execution (AMM logic, v4 hooks) and L4 Account (balance state changes) are lit. The bracket straddles the enforcement line.

Counterparty
Uniswap v4 AMM pool
Latency
~2s · single Base block
Finality
Final on Base block confirmation
Vendors
Uniswap v4 · Aerodrome (Base-native AMM derived from Velodrome) · BaseSwap · Chainalysis OFAC Oracle (on-chain SDN-list enforcement primitive · code-enforced at the contract layer for opt-in callers) · Circle CCTP v2 (canonical USDC burn-and-mint cross-chain transport between Base and Ethereum / other CCTP-supported chains) · Base Bridge (OP Stack canonical L1 ↔ L2 bridge with 7-day challenge window · L1-escape-hatch via force-inclusion) · Securitize DS Protocol (on-chain transfer-restriction smart-contract framework enforcing eligible-investor whitelisting — ACRED is Ethereum-only; BUIDL multi-chain expansion to Base reported in public reporting but primary-source confirmation pending) · EOA + ERC-4337 Smart Account (Coinbase Smart Wallet is the canonical Coinbase-operated AA surface) · Coinbase Custody Trust Company, LLC (New York limited-purpose trust company under NYDFS) · Coinbase Prime brokerage (institutional custody + execution surface) · third-party qualified custodians per integrator (Anchorage · BitGo · Fireblocks) · Securitize LLC (SEC-registered transfer agent; runs Reg D 506(c)(2)(ii) accredited-investor verification workflow; transfer-agent function is off-chain, identical on Base and Ethereum)
Chain
Base (Coinbase (sole sequencer operator at launch; decentralization on roadmap))
L5 APPLICATIONL4 ACCOUNTL3 EXECUTIONL2 CONSENSUSL1 NETWORKBASE
L5 APPLICATIONWALLET
L4 ACCOUNTWALLET
◆ Enforcement Line — code-enforced at this layer

Step 4 · User Wallet (Base)Code-Enforced

"The trader's updated portfolio — swapped tokens received, position updated."

Swapped tokens arrive in the user's wallet. Same silhouette as Step 1 — L4 Account and L5 Application lit. The DeFi path is complete: fully on-chain, fully atomic, no intermediary touched the value. Recordkeeping is the on-chain transaction receipt.

Counterparty
Self (same wallet as Step 1)
Latency
Instant · same tx as swap
Finality
Final · atomic with swap execution
Vendors
Coinbase Wallet · Coinbase Smart Wallet (ERC-4337 account abstraction — passkey-based onboarding) · EOA + ERC-4337 Smart Account (Coinbase Smart Wallet is the canonical Coinbase-operated AA surface) · Coinbase Custody Trust Company, LLC (New York limited-purpose trust company under NYDFS) · Coinbase Prime brokerage (institutional custody + execution surface) · third-party qualified custodians per integrator (Anchorage · BitGo · Fireblocks) · Securitize LLC (SEC-registered transfer agent; runs Reg D 506(c)(2)(ii) accredited-investor verification workflow; transfer-agent function is off-chain, identical on Base and Ethereum) · Coinbase Paymaster (gas-sponsorship primitive for Coinbase Smart Wallet flows · ERC-4337 paymaster contract) · Coinbase Verifications (Ethereum Attestation Service-backed attestation product binding Coinbase-verified identity attributes — country of residence, accredited-investor status, etc. — to addresses) · Securitize Markets ATS (SEC-registered ATS) · BlackRock BUIDL · other Securitize-issued RWAs (Base deployments via multichain expansion — ACRED was Ethereum-mainnet and Base availability is NOT independently confirmed)
Chain
Base (Coinbase (sole sequencer operator at launch; decentralization on roadmap))

Resolved 4 steps across 1 chain(s). 0 threshold(s) triggered. Frameworks: Common Reporting Standard / FATCA.

Coverage notes: 5 disclosed gap(s).

TOOL 01 · 7 CHAINS COMPARED

Settlement Chain Comparator

Side-by-side compliance depth across Base, Arc, Solana, Tempo, Ethereum, TRON, and Pharos — which layers each chain lights up.

ArcCircle · Institutional-grade stablecoin L1 · Malachite BFTA-301 · ARC SECTION CUTCOMPLIANCE DEPTH →L5 APPLICATIONWallets, dApps, UIL4 MIDDLEWAREAPIs, bridges, oraclesL3 EXECUTIONSmart contracts, VML2 CONSENSUSBlock production, finalityL1 NETWORKP2P transport, gossipMalachite BFTConfidential TraEVM ContractsCCTP v2Regulatory View Institutional FXreservtransfidentiexecuttoken
EthereumGeneral-purpose L1 · Proof of Stake · Open validator setA-101 · ETHEREUM SECTION CUTCOMPLIANCE DEPTH →L5 APPLICATIONWallets, dApps, UIL4 MIDDLEWAREAPIs, bridges, oraclesL3 EXECUTIONSmart contracts, VML2 CONSENSUSBlock production, finalityL1 NETWORKP2P transport, gossipERC-4337ERC-20 Freeze/BuChainalysis APIsCircle APIs / CCWallets & dAppsneutratransfexecuttoken
MetricArcEthereum
Code-Enforced Ratio67%40%
Deep Blocks (L2-L3 code)3 of 62 of 5
Deepest LayerL2L3
ConsensusMalachite BFT (permissioned validators)Proof of Stake (open)
Finality~1s~12min
Gas ModelUSDC (stablecoin-native)ETH
Categorystablechaingeneral-purpose

HOW TO READ THESE DIAGRAMS

Compliance Depth

Measures how deeply compliance mechanisms are embedded in the chain's architecture. Higher scores indicate mechanisms woven into core consensus rather than bolted on at the edges.

Layer Stack

Five layers from L1 Network through L5 Application. Compliance enforced at lower layers (L2 Consensus, L3 Execution) is more robust than policy enforced at L4–L5.

Enforcement

Solid borders indicate code-enforced (compiled into chain logic), dashed borders indicate policy-enforced (depends on external actors and can be bypassed).

Other DeFi Protocols Paths

SETTLEMENT CHAINS