Freelance Job Posting: Smart Contract Audit, Debugging & Optimization (Flash Loans + Atomic Flash Bets + Instant Market Execution)

Job ID: 40405810

Budget: $250 – $750 CAD

I’m looking for an experienced blockchain developer to review, debug, and fully optimize an existing codebase involving advanced DeFi mechanisms, including flash loans and a custom “flash bets” system integrated with ultra-fast, short-resolution markets.

Project Context
This system is designed to interact with instant-resolution betting markets and prediction markets, where outcomes resolve in seconds. Execution speed, atomicity, and reliability are critical.

Target use cases include:

In-play “instant” sports markets (e.g., next point, next play outcomes)

Flash betting markets (micro-events resolving within seconds)

Prediction market “resolution sniping” opportunities

Scope of Work
Review the entire codebase for bugs, vulnerabilities, and inefficiencies

Ensure all core features function correctly, especially:

Flash loan execution (borrow, execute strategy, and repay within one transaction)

Flash bets execution with strict requirement that bets are placed and resolved within the same transaction (atomic execution)

Implement and/or refine flash loan sizing logic based on wallet balance, including:

Analyze the executing wallet/contract balance prior to initiating a transaction

Use that balance context to determine and request the maximum viable flash loan size

Ensure sizing accounts for fees, slippage, gas costs, and guaranteed repayment

Ensure integration with deep liquidity providers and pools, including:

Connecting to major flash loan providers / liquidity sources

Routing transactions through pools with sufficient depth to support larger loan sizes

Prioritizing liquidity sources that minimize slippage and maximize execution success

Guarantee that:

Flash loan capital is sourced externally from liquidity pools (not from personal wallet funds beyond gas/fees)

All borrowed funds are repaid within the same transaction

The strategy does not expose personal capital to risk beyond transaction costs

Guarantee that flash bets:

Trigger immediately upon execution

Execute and resolve within the same transaction

Do not rely on delayed callbacks or multi-transaction flows

Implement or refine logic to support:

In-play instant markets (next event resolution within seconds)

Flash markets (micro-bets resolving within a short sequence of plays)

Prediction market execution timing (pre-resolution positioning)

Optimize for:

Execution speed and atomicity

Gas efficiency

Reliability under real-world conditions

Identify and fix:

Edge cases related to timing and settlement

Oracle risks or stale data issues

MEV vulnerabilities (frontrunning, sandwiching, etc.)

Provide:

Clear documentation of fixes and improvements

Testing support (local + mainnet fork) to validate all flows

Critical Requirements
Flash loans and flash bets must execute atomically in a single transaction

Flash bets must execute immediately and resolve without delay

Flash loan sizing must:

Be dynamically determined by analyzing the wallet/contract balance

Maximize loan size while ensuring safe and guaranteed repayment

System must:

Be connected to deep liquidity pools/providers

Source capital externally (not rely on personal funds for execution capital)

Minimize slippage and ensure consistent execution even at larger sizes

The system must be robust in environments where:

Market states change within seconds

Execution timing directly impacts profitability

Relevant Market Mechanics to Support
In-Play Instant Markets

Next point / next play / next action betting

Ultra-short resolution windows

Flash Markets

Micro-outcomes (e.g., drive results, single play outcomes)

Immediate settlement after a short sequence

Prediction Market Sniping

Executing trades just before oracle resolution

Capturing near-certain outcomes prior to settlement

Requirements
Strong experience with Solidity and smart contract development

Proven experience with flash loan integrations (Aave or similar)

Experience working with liquidity pools and routing strategies

Deep understanding of:

Atomic transactions

MEV / arbitrage strategies

Oracle systems and prediction markets

Experience auditing and securing DeFi systems

Ability to rigorously test time-sensitive execution flows

Deliverables
Fully working, tested, and optimized code

Verified atomic execution of flash loans + flash bets

Flash loan sizing correctly based on wallet balance

Confirmed integration with deep liquidity sources

Summary of issues found and fixes applied

Recommendations for further improvements

To Apply
Please include:

Relevant experience with DeFi, arbitrage bots, or prediction markets

Examples of similar systems you’ve worked on

Your proposed approach, timeline, and rate

This project requires deep technical expertise in atomic execution, liquidity sourcing, and real-time market interaction. I’m looking for an experienced blockchain developer to review, debug, and fully optimize an existing codebase involving advanced DeFi mechanisms, including flash loans and a custom “flash bets” system integrated with ultra-fast, short-resolution markets.

Project Context
This system is designed to interact with instant-resolution betting markets and prediction markets, where outcomes resolve in seconds. Execution speed, atomicity, and reliability are critical.

Target use cases include:

In-play “instant” sports markets (e.g., next point, next play outcomes)

Flash betting markets (micro-events resolving within seconds)

Prediction market “resolution sniping” opportunities

Scope of Work
Review the entire codebase for bugs, vulnerabilities, and inefficiencies

Ensure all core features function correctly, especially:

Flash loan execution (borrow, execute strategy, and repay within one transaction)

Flash bets execution with strict requirement that bets are placed and resolved within the same transaction (atomic execution)

Implement and/or refine flash loan sizing logic based on wallet balance, including:

Analyze the executing wallet/contract balance prior to initiating a transaction

Use that balance context to determine and request the maximum viable flash loan size

Ensure sizing accounts for fees, slippage, gas costs, and guaranteed repayment

Ensure integration with deep liquidity providers and pools, including:

Connecting to major flash loan providers / liquidity sources

Routing transactions through pools with sufficient depth to support larger loan sizes

Prioritizing liquidity sources that minimize slippage and maximize execution success

Guarantee that:

Flash loan capital is sourced externally from liquidity pools (not from personal wallet funds beyond gas/fees)

All borrowed funds are repaid within the same transaction

The strategy does not expose personal capital to risk beyond transaction costs

Guarantee that flash bets:

Trigger immediately upon execution

Execute and resolve within the same transaction

Do not rely on delayed callbacks or multi-transaction flows

Implement or refine logic to support:

In-play instant markets (next event resolution within seconds)

Flash markets (micro-bets resolving within a short sequence of plays)

Prediction market execution timing (pre-resolution positioning)

Optimize for:

Execution speed and atomicity

Gas efficiency

Reliability under real-world conditions

Identify and fix:

Edge cases related to timing and settlement

Oracle risks or stale data issues

MEV vulnerabilities (frontrunning, sandwiching, etc.)

Provide:

Clear documentation of fixes and improvements

Testing support (local + mainnet fork) to validate all flows

Critical Requirements
Flash loans and flash bets must execute atomically in a single transaction

Flash bets must execute immediately and resolve without delay

Flash loan sizing must:

Be dynamically determined by analyzing the wallet/contract balance

Maximize loan size while ensuring safe and guaranteed repayment

System must:

Be connected to deep liquidity pools/providers

Source capital externally (not rely on personal funds for execution capital)

Minimize slippage and ensure consistent execution even at larger sizes

The system must be robust in environments where:

Market states change within seconds

Execution timing directly impacts profitability

Relevant Market Mechanics to Support
In-Play Instant Markets

Next point / next play / next action betting

Ultra-short resolution windows

Flash Markets

Micro-outcomes (e.g., drive results, single play outcomes)

Immediate settlement after a short sequence

Prediction Market Sniping

Executing trades just before oracle resolution

Capturing near-certain outcomes prior to settlement

Requirements
Strong experience with Solidity and smart contract development

Proven experience with flash loan integrations (Aave or similar)

Experience working with liquidity pools and routing strategies

Deep understanding of:

Atomic transactions

MEV / arbitrage strategies

Oracle systems and prediction markets

Experience auditing and securing DeFi systems

Ability to rigorously test time-sensitive execution flows

Deliverables
Fully working, tested, and optimized code

Verified atomic execution of flash loans + flash bets

Flash loan sizing correctly based on wallet balance

Confirmed integration with deep liquidity sources

Summary of issues found and fixes applied

Recommendations for further improvements

To Apply
Please include:

Relevant experience with DeFi, arbitrage bots, or prediction markets

Examples of similar systems you’ve worked on

Your proposed approach, timeline, and rate

This project requires deep technical expertise in atomic execution, liquidity sourcing, and real-time market interaction.