Skip to content

Cross Chain CP Swap: A cross-chain DEX allows users to easily swap tokens between blockchains like Ethereum and Solana.

Notifications You must be signed in to change notification settings

SushantChandla/cross-chain-cp-swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cross Chain Dex

This is a cross chain CP AMM for evm and solana based chains. The AMM communicates inter chain with the help of wormhole. The frontend of the app is present in frontend directory and program directory contains all the smart contract logic and scripts to start local environment.

Why a cross chain Dex?

A cross-chain DEX allows users to easily swap tokens between blockchains like Ethereum and Solana. It opens new markets for liquidity providers, reduces the number of transactions needed for swaps (e.g., Ethereum-based DIA to Solana-based USDC), and enhances security by removing the need for centralized exchanges.

How to run?

To run the project, you will already need:

  • Anchor version 0.29.0 installed.
  • Latest version of solana CLI.
  • Docker.
  • Npm.
Steps:
  1. Start local environment by running, the following command in program directory:
sh ./wormhole-scripts/setup.sh
sh ./wormhole-scripts/wormhole.sh
sh ./wormhole-scripts/evm.sh
  1. Run Solana validator locally by running:
anchor localnet
  1. Run the tests using the following command: (Running tests will also setup a pool)
yarn test
  1. To start frontend in the frontend repo run:
npm run dev

About

Cross Chain CP Swap: A cross-chain DEX allows users to easily swap tokens between blockchains like Ethereum and Solana.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages