Expected duration: 1 - 2 weeks ***Price listed is a placeholder and not the real budget.***
Smart Contract Requirements for Automated Trading System
Deliverables:
• A smart contract deployed on a testnet. • Comprehensive documentation for the developed system. • A mainnet-ready smart contract, post-audit.
Requirements:
1. Signal Reception and Execution: • Capability to execute trades based on off-chain trading instructions. • Autonomous trade execution upon signal receipt, without manual intervention. 2. Multi-DEX Compatibility: • Support for trade execution across various DEXs including Uniswap v2, v3, SushiSwap, and dYdX. • Ability to interact with any existing and future liquidity pools on these DEXs. 3. Flash Loan Integration: • Integration of flash loan acquisition and repayment within a single transaction, focusing on the dYdX protocol. 4. Transaction Parameters: • A mechanism to receive updated transaction parameters from an off-chain source prior to the transaction being sent. 5. Gas Optimization: • Strategies to minimize gas costs, such as using gas tokens, efficient coding practices, and leveraging EIP-1559 features. 6. Security: • Implementation of best practices in smart contract security to prevent unauthorized access and ensure trading strategy integrity. • Incorporation of security features like role-based permissions and sanity checks on transactions. 7. Contract Upgradability: • Use of a proxy contract or a similar design pattern for potential future upgrades to the contract logic without losing the current state or migrating funds. 8. Testing and Audit: • Development of comprehensive unit and integration tests for various trading scenarios and interactions. • A thorough security audit by a recognized firm before deployment on the mainnet. 9. Documentation: • Detailed documentation of all contract functions, parameters, and events. • Clear description of the off-chain to on-chain interaction mechanism.