Join our new Affiliate Program!
    Back to Generator

    Advanced AI Prompt Template for Blockchain Projects

    Developing a bot for flash loan arbitrage

    Blockchain Development
    Advanced
    95/100

    Main Prompt

    Primary Version

    CONTEXT:
    You are a blockchain developer specializing in JavaScript for decentralized finance applications who is part of a skilled development team.
    
    GOAL:
    I need you to complete a project today that develops a state-of-the-art flash loan arbitrage bot optimized for multiple DEXes on the BSC network. The bot should wow stakeholders by showcasing potential returns on investment through effective arbitrage.
    
    CRITERIA/REQUIREMENTS:
    - The bot must perform circular arbitrage across multiple hops between DEXes.
    - Implement a multi-coin exit strategy using aggregations back to the borrowed asset to repay the flash loan.
    - Ensure the bot is aligned with a smart contract that operates both on-chain and off-chain for executing flash loans and DEX swaps.
    - Include an advanced arbitrage search tool with efficient algorithms to identify opportunities promptly.
    - The entire solution must be developed using JavaScript.
    
    RESPONSE FORMAT:
    Provide a comprehensive design outline documenting the bot's architecture, including code snippets for key functionalities, and an explanation of the algorithms used for arbitrage searching.
    
    ADDITIONAL INFO:
    Highlight the expected gains on investment and elaborate on the technical challenges that might arise during development. Incorporate best practices for coding and smart contract interaction.

    Variations

    Variation 1

    CONTEXT:
    You are a blockchain developer with expertise in JavaScript and decentralized financial applications on the BSC network.
    
    GOAL:
    Your task is to create a high-performance flash loan arbitrage bot that demonstrates impressive investment returns, showcasing its functionality to stakeholders today.
    
    CRITERIA/REQUIREMENTS:
    - Ensure the bot conducts circular arbitrage with multiple hop DEXes.
    - It should configure a multi-coin exit that efficiently aggregates swaps back to the borrowed asset for loan repayment.
    - The bot must integrate with a smart contract that interacts with off-chain code for execution.
    - Include advanced tools for identifying arbitrage opportunities effectively.
    - Code must be written entirely in JavaScript.
    
    RESPONSE FORMAT:
    Structure the output with a complete design plan, including coding examples and explanations of the algorithms utilized to capture arbitrage opportunities.
    
    ADDITIONAL INFO:
    Discuss expected ROI and any unforeseen challenges during development. Implement best coding practices for efficiency and security.

    Variation 2

    CONTEXT:
    You are a JavaScript-focused blockchain developer who excels in creating high-performance financial bots for the BSC ecosystem.
    
    GOAL:
    Develop a flash loan arbitrage bot by the end of today that impresses stakeholders and clearly outlines potential investment gains.
    
    CRITERIA/REQUIREMENTS:
    - The bot must execute circular arbitrage across multiple DEXes on BSC.
    - Develop a strategy for multi-coin exit back to the borrowed asset for flash loan repayment.
    - Align with a smart contract to perform DEX swaps and execute flash loans effectively, utilizing both on-chain and off-chain coding.
    - Incorporate an advanced search tool for spotting arbitrage opportunities quickly.
    - Ensure that the implementation is in JavaScript.
    
    RESPONSE FORMAT:
    Present a detailed framework for bot development, including relevant code snippets and the mechanics behind the arbitrage detection system.
    
    ADDITIONAL INFO:
    Explain expected returns and potential coding challenges, ensuring to follow best practices for bot security and efficiency.

    Variation 3

    CONTEXT:
    You are a blockchain developer with a solid background in JavaScript, focusing on decentralized finance strategies and applications.
    
    GOAL:
    Your objective is to build a comprehensive flash loan arbitrage bot within today’s deadline that effectively showcases investment upside to stakeholders.
    
    CRITERIA/REQUIREMENTS:
    - The bot should facilitate circular arbitrage over multiple DEXes, maximizing profit on opportunities.
    - It needs to implement a multi-coin exit system for returning funds to the borrowed asset after executing the flash loan.
    - Create a smart contract connection allowing your bot to manage DEX swaps and off-chain executions.
    - Design an advanced arbitrage search tool to rapidly identify profitable options.
    - The entire solution must be executed in JavaScript.
    
    RESPONSE FORMAT:
    Provide a detailed project outline that includes code implementations and logic explanations for the bot’s arbitrage functions.
    
    ADDITIONAL INFO:
    Outline potential investment returns and any major difficulties anticipated during the project while adhering to coding best practices.
    Category

    Blockchain Development

    Complexity

    Advanced

    Use Case

    Developing a bot for flash loan arbitrage

    Effectiveness

    95/100