Mehdi Gerbault

Software Engineer · Rust & Algorithmic Trading

High-performance Rust systems for on-chain trading.

France · Open to relocation / remote

$135M+ CEX-DEX volume
2.2M+ Trades executed
3 Strategies
3+ yrs In production

About

Engineer who built and ran a profitable algorithmic CEX/DEX arbitrage operation from the ground up — strategy, low-latency execution, on-chain math, risk, and infrastructure, end-to-end. Strong focus on performance, concurrency, and disciplined risk management.

Experience

Co-founder & Software Engineer

Mezateix
2023 – Present

Co-founded a 3-person trading firm and built the core of its production CEX/DEX arbitrage infrastructure across 9+ chains (7 EVM, Thorchain, Mayachain). End-to-end ownership: strategy, execution, on-chain math, risk, and ops. $135M+ volume, 2.2M+ trades, profitable over 3 years.

Market Research & Targeting
  • Data-driven chain & token selection (volume, liquidity, safety, early listings)
  • Continuous evaluation of emerging chains, with early deployment on Berachain, Monad and Sonic before they got crowded
Infrastructure
  • VPS sizing and geo-optimized placement tuned to each chain’s specs and RPC requirements; multi-provider Linux setup
  • Self-hosted RPC nodes deployed and tuned (P2P config, snapshot management, custom build flags) to avoid slow public endpoints
Bot Architecture
  • Modular Rust workspace, collector-producer-consumer architecture (data, execution, simulation, risk)
  • Per-chain TOML config (endpoints, strategy)
Data Collection
  • Real-time WebSocket orderbook sync across CEXs (Binance, Bybit, Gate.io, MEXC, Coinbase)
  • DEX state tracked via event processing and in-Rust pool simulation, with no slow RPC round-trips
Analysis
  • High-frequency opportunity scanning across thousands of paths, low-ms latency
  • On-chain math simulation covering all major AMM architectures: constant-product (Uniswap V2 + forks), concentrated liquidity (V3/V4, Algebra, Aerodrome), weighted/stable (Balancer), liquidity book (LFJ)
On-chain Execution
  • Custom Solidity router: multi-DEX, gas-optimized, production-grade safety, Foundry-tested
  • EVM interaction layer with Alloy: ABI, calldata, multicall batching
  • Multi-worker execution with nonce management
Risk Management & Security
  • Multi-layered safety: PnL-based circuit breaker with sliding-window thresholds, exposure monitoring, WSS/RPC auto-reconnect
  • Automated CEX/DEX rebalancing with dynamic thresholds
  • Telegram-based interactive recovery controls
Analytics & Operations
  • PostgreSQL + QuestDB time-series storage, Grafana monitoring & PnL tracking
  • 24/7 production: node sync monitoring, update handling, incident response
Mezateix — live dashboard
RustSolidityEVMTokioDeFi

Independent Developer · Arbitrage Bots

Self-employed
2022 – 2023

Built and operated profitable CEX/DEX arbitrage bots as a solo developer, first on Thorchain, then EVM.

  • Thorchain bots (Python/JS): block + mempool scouting, price-deviation arbitrage between pegged assets
  • Transitioned to EVM: Odos aggregator integration, flashloan-based strategies, statistical filtering
RustPythonEVMThorchain

Project Manager · FTTH Fiber Deployment

Axione · Vierzon, France
2021 – 2022

End-to-end management of fiber-optic (FTTH) network deployment across the Cher and Indre departments, from planning through to final acceptance, including six-figure projects.

  • Owned the project budget and was accountable for each site staying profitable
  • Cross-functional coordination across subcontractors, the engineering office, clients and internal services
  • Planned and organized worksites: defined the human and material resources, ran site meetings, handled procurement and deliveries
  • Produced and controlled the administrative and legal documents (DICT, road permits, DOE) and secured the required authorizations
  • Drove execution against spec, budget, quality and deadlines; reported to the client, management and engineering office
  • Quality control and acceptance of completed work, then prepared the documents for final billing
Project managementStakeholder coordinationBudget ownershipSubcontractor management

Projects

AMM Simulator

2026

Exact-integer Rust simulator of the Uniswap v2 (constant product) and v3 (concentrated liquidity) AMM math — validated against real mainnet quotes, to the wei.

  • Reproduces on-chain 256-bit arithmetic exactly — 512-bit mulDiv, sqrtPriceX96 (Q64.96), tick math, tick-crossing swaps
  • Faithful ports of TickMath / SqrtPriceMath / SwapMath; swaps walk the price across initialized ticks, updating active liquidity as they cross
  • Validated to the wei against the on-chain QuoterV2 (both directions, in-range and multi-tick), plus property-based invariants — all in CI
  • Per-word tick stepping mirroring Uniswap, so output stays wei-exact even across hundreds of ticks
RustUniswap v2/v3DeFiAMMCI

Polymarket Arbitrage Scanner

2025

Asynchronous, event-driven Rust scanner that watches Polymarket binary (YES/NO) markets in real time and flags risk-free arbitrage — when best-ask(YES) + best-ask(NO) < $1.00.

  • Discovers markets via the Gamma REST API, streams live orderbooks over the CLOB WebSocket, maintains an in-memory orderbook per asset
  • Lock-free hot path: the scout reads snapshots without holding locks across await points; per-message processing keeps the WS consumer unblocked
  • Fixed-point orderbook (u32, 6 decimals) in a BTreeMap → O(log n) best bid/ask with cached best levels
  • Decoupled discovery / streaming / state / strategy layers, communicating over mpsc channels
RustTokioWebSocketArbitrage

Skills

Languages
RustSolidityPythonJavaScriptTypeScriptGo
Backend & Systems
Tokio (async)RayonLow-latencyDistributed systemsReal-time data
Blockchain / EVM
Calldata/ABIGas modelDEX routingAggregatorsMulticallMEV
Data & Infra
PostgreSQLQuestDBGrafanaDockerFoundryAlloyLinux