← Back to Gearbox
Gearbox · closed proposal

[GIP-38]: Updating Uniswap V2/V3 adapters to prevent paths through arbitrary tokens

0xb9b7…ceeA·ended 3y ago·Discussion ↗
Voters
492
GEAR voted
221.04M
Token price

AI summary

Summary pending — generation runs every 15 minutes.

Voting results

Quorum
221.04M / 200.00M GEAR(111%)
✓ Quorum met
Yes, update the Uniswap adapters220.45M (99.7%)
No, do not update adapters597.87K (0.3%)
221.04M GEAR · 492 votersblock 16234059

🐳 Whale votes

0 votes > 5% VP
No whale votes on this proposal.

Full proposal

Original markdown · Gearbox

Overview

This GIP aims to improve the security of the protocol by disallowing arbitrary tokens in Uniswap V2/V3 paths and limiting the maximal path length to 3 hops.

Problem statement

Currently, UniswapV2Adapter and UniswapV3Adapter only check that the input and output tokens in a swap are allowed tokens, without performing any sanity checks on intermediate tokens.

This leads to an ability to set up an intermediary pool with custom tokens and use it to call untrusted code during a swap. Normally, this does not pose an issue, due to health checks being performed after any swap. However,…

📚 Similar past proposals

Finding similar proposals…