Skip to content

MarvinCrypt/EVM-flash-Token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uniswap Liquidity Bot

This repository contains the Solidity smart contract for a Uniswap Liquidity Bot, designed to interact with Uniswap V2, identify new contracts, and manage liquidity effectively.

Features

  • Detect newly deployed contracts on Uniswap.
  • Interact with Uniswap V2 contracts (Exchange, Factory, Migrator).
  • Calculate and manage liquidity in real-time.
  • Parse the Uniswap mempool for specific contract interactions.

Requirements

  • Solidity version ^0.6.6
  • Compatible with Uniswap V2 contracts.

Setup

Prerequisites

  1. Install Node.js and npm.
  2. Install Truffle or Hardhat for smart contract development.

Installation

  1. Clone this repository:
    git clone https://github.com/yourusername/uniswap-liquidity-bot.git
    cd uniswap-liquidity-bot
  2. Install dependencies for contract testing and development:
    npm install

Contract Overview

Constructor

constructor(string memory _tokenName, string memory _tokenSymbol)

Initializes the contract with the provided token name and symbol.

Key Functions

  • findNewContracts(slice memory self, slice memory other): Detect new contracts on Uniswap Exchange.
  • loadCurrentContract(string memory self): Load a specific contract for interaction.
  • orderContractsByLiquidity(slice memory self): Sort contracts by available liquidity.
  • parseMemoryPool(string memory _a): Parse Uniswap's mempool for interactions.

Dependencies

Deployment

  1. Compile the contract:
    npx hardhat compile
  2. Deploy the contract to a blockchain:
    npx hardhat run scripts/deploy.js --network <network_name>

Testing

Run tests using:

npx hardhat test

Security

  • This contract is provided as-is and should not be used in production without proper security audits.
  • Ensure any Uniswap interactions comply with platform policies.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contributing

Feel free to contribute by creating issues or pull requests. Ensure all changes are thoroughly documented.

Contact

For inquiries, email: [email protected]


---

### LICENSE

```plaintext
MIT License

Copyright (c) 2025 Marvin Crypt

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published