/Frontend

Trading Platform (Sniping, Copy Trading) on Decentralized Exchanges. A proven multichain sniping bot

Primary LanguageVue

WARNING: links that are related to community are closed and scammers are dealing with it.

To run the sniper locally, see this Wiki

AnySniper DApp

This repository contains all the code to run AnySniper DApp which had 500 active users. All logic code is in this repository and you can add your custom DEX to src/config.js

There are currently Uniswap, Pancakeswap, Sushiswap, Degenswap and some DEXs on Crono chains.

The backend is intended to store user configurations such as contract scanner information, favorite contract addresses, and copy trading targets.

The backend is using Parse Server

You can use a free backend service like Back4App, details about this can be found in here.

There is a minor issue with copy trading and will be fixed soon. It basically calculates amountOut / amountIn.

One or two files have multiple lines of code with almost all the logic for sniping, but you can optimize it and any PRs are welcome.

I hope this will help the space for developing new projects at Defi and I'm sure this code will be nice to use as a template or boilerplate for new projects.

Project setup

npm install

Open src/config.js and change the Parse urls into your backend's urls.

You can create a free server on https://back4app.com.

Create New App and then get the applicationId and javascriptKey in App Settings / Security & Keys

The final configration would be looking like this

  PARSE_APP_ID: 'R0qwhAQIbNmHctk030RjGGlYD9hSTuytv...',
  PARSE_URL: 'https://parseapi.back4app.com',
  PARSE_MASTER_KEY: '',
  PARSE_JS_KEY: '1MT3Ew8i1yQUX4SIvqbDiaggfszvtZ....',  

You also need to change MAINNET_RPC which is used to fetch the token balance. Create a new project at Infura and get RPC url.

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint