Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 958 Bytes

File metadata and controls

11 lines (8 loc) · 958 Bytes

v4-periphery

v4-periphery [Github]: Contains Uniswap v4 periphery contracts, mainly including:

  • PositionManager.sol: PositionManager contract, used to manage operations such as creating, destroying, and modifying liquidity of positions, calling PoolManager to execute specific operations.

    • External contracts operate positions through the PositionManager contract, rather than directly calling the v4-core PoolManager contract.
    • Supports combining multiple operations into one transaction to ensure atomicity and reduce gas consumption.
  • V4Router.sol: V4Router contract, used to execute trading operations, calling the PoolManager contract to execute specific trading operations.

    • Supports single-hop and multi-hop trading.
    • Supports specifying input or output token amounts.