Hi, I'm Rahul.

Smart Contract & Protocol Engineer

Solidity · Rust · Golang · TypeScript

Protocol engineer. I build upgradeable Solidity suites that carry margin, liquidation and settlement, and the Rust backends that keep them honest against an external order book.

Before that, Router Protocol: Golang solvers, Bitcoin execution engines, and the Rust routing engine behind Open Graph Architecture.

Margin & liquidation

Vault accounting

Reorg-safe indexing

Bitcoin execution

Cross-chain routing

weekends, mostly 🛠

Recent hackathons

NEAR Hackathon

Two submissions, each with its own repo and live app

Nov 2026

Two independent entries, both running on testnet with the evidence checked in: a receivables-financing protocol on NEAR, and an AI-agent fund that started life at ETHGlobal Mumbai.

Cashflow FiMerchant receivables financing on NEAR
WavefundA fund run by a market of AI agents
the day job (sometimes night too ☕)

Where I've been

Blinq

Lead Engineer · Solidity Contracts & Rust Backend

Feb 2026 — Present · Dubai, Hybrid

Leveraged trading on Polymarket's prediction markets. Traders open leveraged positions on binary-outcome tokens; orders match on Polymarket's external CLOB and settle on-chain against an LP vault that funds the position and absorbs the P&L. Deployed on Polygon, internal beta.

How one leveraged position is funded, and what happens to it when the price moves. Drag anything.

What funds the position$120.00the trader puts up $40.00the vault lends $80.00The outcome token’s price240 tokens bought at 50cthe bots close it here · 33cbought here62c0c — it loses100c — it winsIf it closed now, worth$148.80vault repaid first $80.00the trader keeps $68.80

+$28.80 on $40.00 · +72%

The vault lent $80.00 and is repaid first. The trader keeps $68.80 — +$28.80 on $40.00, or +72%. Anything at or below 33c and that margin is gone.

Contracts

  • An upgradeable suite on OpenZeppelin v5: UUPS implementations behind ERC-1967 proxies, plus delegatecall peers carrying settlement and emergency logic so MainProtocol stays inside the EIP-170 code-size limit. `_disableInitializers` and reserved storage gaps throughout.
  • A settlement money-waterfall: vault principal is repaid first, any shortfall is socialised across LPs before fees are taken, and the trader is paid last.
  • An EIP-712 quorum multisig with strictly-ascending signer recovery and per-action replay guards, next to an oracle deviation-band and freshness check that rejects manipulated settlements.
  • An ERC-4626-style LP vault with virtual-offset donation protection, a utilisation-capped borrow facility, a utilisation-slope borrow fee and pro-rata bad-debt socialisation.
  • A time-ramped Dutch-auction liquidation engine: an on-chain discount ramp priced by single-use EIP-712 oracle quotes, executed by permissionless bots posting USDC for the position's ERC-1155 shares atomically, behind a vault-loss circuit breaker.

Rust backend

  • A workspace of services on Axum, Tokio and ethers-rs, reconciling an on-chain ledger against an asynchronous off-chain order book: stateless API, orchestrator state machine, reorg-safe chain indexer, CLOB executor, settlement executor, and a price oracle signing marks under GG20 threshold ECDSA.
  • Postgres leased job queues (claim, lease, heartbeat, reap) and a distributed nonce allocator that lets replicas share one executor EOA via FOR UPDATE SKIP LOCKED, with up and down resync.
  • A landed-transaction probe that recomputes the signed-transaction hash and checks the chain before retrying, so an RPC that errors after actually mining a transaction cannot cause a double spend.
  • At-least-once delivery with idempotent effects, typed-error reconciliation driving the state machine, and metrics, structured logs and alerting covering queue lag, nonce-lane divergence, settlement failures and oracle staleness.

When the ground moved

  • Polymarket migrated v1 to v2 mid-build and the trading Safe became a Polymarket-deployed deposit wallet whose relayer will not approve an arbitrary spender. Custody was split into a user-owned deposit Safe plus a Blinq-controlled deposit wallet, and funding rebuilt as a two-hop push with a different arrival proof per token standard.
  • Foundry unit, fuzz, invariant and fork suites on the contracts, integration suites across the Rust services, all running on CI.

Router Protocol

Full Stack Blockchain Engineer

June 2021 — Mar 2026 · Dubai, Hybrid

Cross-chain infrastructure, ending on Xplore / Open Graph Architecture, the off-chain routing engine written in Rust.

₿₿₿AZEROAZEROAZEROEVM₿BitcoinSolanaSuiAptosNEARAZEROAleph Zero

Dfyn Network

Full Stack Blockchain Engineer

June 2021 — August 2023 · Dubai, Hybrid

Dfyn V2: concentrated-liquidity and on-chain limit-order DEX contracts.

Token Y reserveToken X reserve →Limit-order liquidityLimit-order liquidityConcentrated liquidityToken XToken YLimit orderSwap
the ethresear.ch paper ↗

PAYZUS

Solidity Developer, Freelance

Jan 2021 — April 2021 · Remote

Solidity smart contracts for a payments-focused product.

things built

Things worth opening

Blinq

Leveraged prediction markets

The interesting part is the seam: an on-chain ledger that must agree with an order book it does not control, over a network that sometimes lies about whether your transaction landed.

  • Upgradeable contracts for margin, the LP vault, liquidation, settlement and custody.
  • Rust services reconciling protocol state against Polymarket's CLOB.
  • Foundry fuzz and invariant suites alongside service integration tests.
SolidityRustPostgresPolygon

The POC is invite-only. This opens a message that is already written, so you only press send.

Xplore / OGA

Cross-chain routing engine

Provider nodes that join a Rust routing engine at runtime, and the address-discovery trick that made deposit-style bridges work at all.

  • Everclear, NEAR Intents, Chainflip, Meson and GasZip as dynamic nodes.
  • Deposit-address discovery: hash → address, explorers raced, cached and de-duplicated.
  • Health probes, Tenderly pre-flight simulation and Slack alerting.
RustgRPCRedisBitcoin

Bitcoin execution

Native BTC interoperability

Raw transaction building all the way down, for bridges that move native BTC to Ethereum, Solana and Sui.

  • UTXO aggregation, fee-aware selection, SegWit/Bech32 signing.
  • P2WSH multisig witness construction and PSBT generation.
  • OP_RETURN memo encoding and a native-node transaction streamer.
GolangRustUTXOPSBT

Dfyn V2

Concentrated-liquidity DEX

Tick math, NFT positions, a quoter and a router, plus a published idea about putting limit orders inside the curve.

  • Concentrated liquidity with NFT liquidity positions.
  • On-chain limit orders at the same tick as range liquidity.
  • Superimposed Liquidity, published on ethresear.ch.
SolidityAMMTick math

solidity-drills

Open-source pattern library

A public repository where each EVM pattern is isolated far enough to be read in one sitting: proxies, vault rounding, signed actions, storage layout.

  • UUPS, Transparent, EIP-1167 clones, delegatecall peers, CREATE2.
  • Vault share accounting and rounding policy, vesting, Merkle claims.
  • Foundry unit, fuzz, invariant and fork tests, with attacker harnesses.
FoundrySolidityEVM
the toolbox

What I work with

Smart contracts / EVM

Solidity 0.8.xYul / inline assemblyUUPSTransparent proxiesdelegatecall peersEIP-1167 clonesCREATE2 factoriesERC-20/721/1155/4626EIP-712/1271/1967custom errorsstorage layoutgas optimisationCEI + reentrancySafeERC20

DeFi protocol design

lending poolscollateralisationliquidation enginesinterest-rate modelsERC-4626 vaultsaccounting invariantsoracle deviation bandssettlement waterfallsAMMsconcentrated liquidityon-chain limit ordersCLOB settlement

Rust

AxumTokioethers-rs / alloyserdesqlxtonic / gRPCdurable leased queuesreorg-safe indexersdistributed nonce allocationEOA broadcast + RPC failovertyped-error state machinesSeaORM + migrationstower-http middlewaretracing spans + Prometheus metricsRedis pools + moka cachingAWS KMS envelope encryptionGG20 threshold ECDSAalloy-sol-types ABI codecstokio-tungstenite streamsrust_decimal fixed-point moneymulti-crate Cargo workspaces

Golang

cosmos-sdk tx clientsgogoproto / gRPCgo-ethereum abigen + keystoreGORM over Postgres and SQLiteinterface-driven chain pluginsticker-driven polling daemonschannel pipelines with select fan-incontext propagationencoding/binary wire protocolsmath/big financial arithmeticbtcsuite/btcd + txscripttable-driven testslogrus, cobra, viper

Backend & distributed systems

GolangTypeScript / Node.jsPythonReactmicroservicesevent-driven pipelinesidempotent at-least-onceCQRS read-modelscaching strategygraceful degradation

Cryptography

EIP-712 / 1271 typed dataquorum multisigascending signer recoveryECDSAGG20 threshold signingMerkle proofsP2WSH witnesses

Cross-chain & Bitcoin

interchain messagingnative asset bridgesbridge + DEX aggregationdeposit-address bridgesevent indexingP2PKH/P2SH/P2WPKH/P2WSHSegWit / Bech32PSBTOP_RETURN

Testing & security

Foundry (unit, fuzz, invariant, fork)HardhatTenderlySlitherinsolvency modellingoracle-failure modellingliquidation stressupgrade riskaudit remediation

Infrastructure

AWSGCPDockerKubernetes (working knowledge)CI/CDPostgreSQLMongoDBRedisKafkaPrometheuson-call

Ecosystems

EVMBitcoinSolanaSuiAptosNEARCosmos SDKAleph Zero
written down

Research & school

ethresear.ch

Superimposed Liquidity ↗

Enhancing concentrated-liquidity AMM pools with an on-chain limit order book: uni-directional limit-order liquidity layered onto the concentrated-liquidity curve at the same tick, so a range position and a resting order can share one price.

B.Tech, Computer Science

St. Francis Institute of Technology, Mumbai University

2017 — 2021

GFMP Edge FinTech

BSE Institute

2019 — 2020

still here?

Then say hi

No name, no email, nothing asked. It reaches my inbox as plain text.

One record player, and the whole story above it. Thanks for scrolling all of it.