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.
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.
To run the project, you will already need:
- Anchor version 0.29.0 installed.
- Latest version of solana CLI.
- Docker.
- Npm.
- 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- Run Solana validator locally by running:
anchor localnet- Run the tests using the following command: (Running tests will also setup a pool)
yarn test- To start frontend in the
frontendrepo run:
npm run dev