Skip to content

sushiswap/sushixswap-v2

Repository files navigation

SushiXSwapV2 Foundry

This repository contains the core smart contracts for SushiXSwapV2.

In-depth documentation is available at docs.sushi.com. [Coming Soon]

Background

SushiXSwapV2 is a cross-chain enabled protocol that utilizes general message passing through adapters to perform swaps across supported networks. Routing and swap logic is handled with the integration of Sushi's RouteProcessor contract, and additional cross-chain functionality can be implemented through payload-executors.

Setup

Install

First, initialize with:

make init

Make a copy of .env.sample to .env and for tests set the MAINNET_RPC_URL.

Test

To run tests:

make test

Deployments

Network SushiXSwapV2 StargateAdapter SquidAdapter
Ethereum

0x804b526e5bf4349819fe2db65349d0825870f8ee

0xD408a20f1213286fB3158a2bfBf5bFfAca8bF269

0xFF51a7C624Eb866917102707F3dA8bFb99Db8692

BSC

0x804b526e5bf4349819fe2db65349d0825870f8ee

0xFF51a7C624Eb866917102707F3dA8bFb99Db8692

0xbF3B71decBCEFABB3210B9D8f18eC22e0556f5F0

Avalanche

0x804b526e5bf4349819fe2db65349d0825870f8ee

0xFF51a7C624Eb866917102707F3dA8bFb99Db8692

0xbF3B71decBCEFABB3210B9D8f18eC22e0556f5F0

Polygon

0x804b526e5bf4349819fe2db65349d0825870f8ee

0x1719DEf1BF8422a777f2442bcE704AC4Fb20c7f0

0x1B4eb3e90dA47ff898d2cda40B5750721886E850

Arbitrum

0x804b526e5bf4349819fe2db65349d0825870f8ee

0xFF51a7C624Eb866917102707F3dA8bFb99Db8692

0x454714482cA38fBBcE7fC76D96Ba1CE2028A4fF6

Optimism

0x804b526e5bf4349819fe2db65349d0825870f8ee

0xA62eC622DbA415Aa94110739B1f951B1202Cf322

0xbF3B71decBCEFABB3210B9D8f18eC22e0556f5F0

Base

0x804b526e5bf4349819fe2db65349d0825870f8ee

0xD408a20f1213286fB3158a2bfBf5bFfAca8bF269

0xFF51a7C624Eb866917102707F3dA8bFb99Db8692

Fantom

0x804b526e5bF4349819fe2Db65349d0825870F8Ee

0xbF3B71decBCEFABB3210B9D8f18eC22e0556f5F0

0x454714482cA38fBBcE7fC76D96Ba1CE2028A4fF6

Linea

0x804b526e5bF4349819fe2Db65349d0825870F8Ee

0xA62eC622DbA415Aa94110739B1f951B1202Cf322

0xbF3B71decBCEFABB3210B9D8f18eC22e0556f5F0

Kava

0xD5607d184b1D6ecbA94A07c217497FE9346010D9

0x891f29AA86aB4E1F4798795378B5E763aA232EF6

0xEfb2b93B2a039A227459AAD0572a019Aba8eA69d

Metis

0x804b526e5bF4349819fe2Db65349d0825870F8Ee

0xDf1cfEc0DCF05bf647FbfbE12ea550Baa102E195

Moonbeam

0x804b526e5bF4349819fe2Db65349d0825870F8Ee

0x02a480a258361c9Bc3eaacBd6473364C67adCD3a

CELO

0x804b526e5bF4349819fe2Db65349d0825870F8Ee

0x02a480a258361c9Bc3eaacBd6473364C67adCD3a

Scroll

0x804b526e5bF4349819fe2Db65349d0825870F8Ee

0x02a480a258361c9Bc3eaacBd6473364C67adCD3a

Filecoin

0x804b526e5bF4349819fe2Db65349d0825870F8Ee

0xd5607d184b1d6ecba94a07c217497fe9346010d9

License

GPL-3.0-or-later