🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@juiceswapxyz/v3-periphery

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@juiceswapxyz/v3-periphery

🧃 Peripheral smart contracts for JuiceSwap V3 (Uniswap V3 fork with JuiceSwap branding)

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
3
Created
Source

JuiceSwap V3 Periphery

Tests Lint

This repository contains the periphery smart contracts for JuiceSwap V3, a fork of Uniswap V3 Protocol. For the lower level core contracts, see the v3-core repository.

Overview

JuiceSwap V3 Periphery provides user-facing smart contracts for interacting with the JuiceSwap V3 Protocol, including:

  • SwapRouter - Multi-hop swap execution with exact input/output amounts
  • NonfungiblePositionManager - ERC721 NFT representation of liquidity positions
  • V3Migrator - Migration from V2 to V3 positions
  • Quoter - Off-chain quote calculations for swap pricing
  • Oracle Library - TWAP oracle utilities

Key Modifications from Uniswap V3

  • Updated POOL_INIT_CODE_HASH for JuiceSwap's modified pool contract (50% max protocol fee vs 25%)
  • Rebranded NFT positions: JuiceSwap V3 Positions NFT-V1 with symbol JUICE-V3-POS
  • Updated package name: @juiceswapxyz/v3-periphery

Local Deployment

Install the npm package @juiceswapxyz/v3-periphery and import bytecode from artifacts:

import {
  abi as SWAP_ROUTER_ABI,
  bytecode as SWAP_ROUTER_BYTECODE,
} from '@juiceswapxyz/v3-periphery/artifacts/contracts/SwapRouter.sol/SwapRouter.json'

// deploy the bytecode

Using Solidity Interfaces

Import JuiceSwap v3 periphery interfaces into your smart contracts:

import '@juiceswapxyz/v3-periphery/contracts/interfaces/ISwapRouter.sol';

contract MyContract {
  ISwapRouter router;

  function doSomethingWithSwapRouter() {
    // router.exactInput(...);
  }
}

Development

Compile Contracts

npm run compile

Run Tests

npm test

Verify Pool Init Code Hash

Before deployment, verify that POOL_INIT_CODE_HASH matches the compiled v3-core bytecode:

npm run verify-pool-hash

This step is critical - an incorrect hash will cause all pool operations to fail.

License

GPL-2.0-or-later

Keywords

juiceswap

FAQs

Package last updated on 26 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts