Javascript bot for buy/sell ERC-20 token right after the listing on Uniswap V2 protocol. Sniper-bot follows those steps:
1)Initialize a web3 provider and a wallet from a private key 2)Start listening for new pairs using the factory contract of uniswap v2 3)When a new pair is listed, sniper-bot starts the buy/sell process
Buy/sell process: 1)Spend a certain amount of weth to buy the new token 2)Start waiting to reach the profit target OR to reach a stop loss point 3)Sell