Available · open to new roles · Madrid / remote EU

Building the intelligence
that moves capital.

Head of Sail Intelligence at Sail. Sole architect of a cross-chain yield engine and a real-time risk system now running on $700M routed across Base and Arbitrum. Two research papers, two performance reports, one team of two engineers.

Quantitative DeFi Risk monitoring Cross-chain optimization Applied ML
~$700M
routed in 6 months
~200
users served
~$600k
TVL · Base + Arbitrum
2 + 2
papers · reports
Current role · Sail · Nov 2024 — present

Three production systems. One intelligence layer.

I founded the intelligence layer at Sail — a DeFi yield-optimization protocol on Base and Arbitrum — from a blank page, and now lead a team of two engineers building it. I also defined the database schema, built the first user-facing UIs, and contributed to Sail Protocol, our new in-house custody and permission layer.

Optimization Engine

Cross-chain allocation as a constrained MDP

Non-convex objective (yield, transaction cost, slippage, concentration risk) solved with simulated annealing under Metropolis-Hastings acceptance. A CNN meta-controller predicts annealing hyperparameters from APY/TVL history, cutting parameter search 3–5×.

Sonar

Real-time risk monitoring

z-score anomaly detection over multi-horizon APY baselines (1d / 7d / 30d), dual-mode SPIKE / TREND scoring (80/20 vs 40/60), tier-based execution cycles (1h / 2h / 6h), and a financial-inertia mechanism that cut unnecessary portfolio churn by 43 %.

New
Sail Protocol

Onchain SMAs run by agents

Contributor to the first onchain Separately-Managed-Account protocol designed for autonomous agents. A ~590-SLOC Solidity kernel mediates Safe custody, EIP-712 mandates, and gas-capped staticcall permissions. Replaces the third-party permission layer with an in-house design.

Leadership. Presented the intelligence layer to venture investors during fundraising rounds, owned the technical narrative for the engine and Sonar in those conversations, and led roadmap discussions with the CEO on direction and trade-offs.

01 The math behind allocation

Weighted portfolio APY APYp = Σi (USDi · APYi) / Σi USDi
Metropolis-Hastings acceptance P(accept) = min(1, exp(−ΔE / T)) where T cools on the schedule predicted by the meta-controller.

The full mathematical framework — formulation, proofs, and empirical validation — is documented in two public research papers I authored.

02 Sonar — anomaly score

Multi-horizon z-score zh(t) = (APY(t) − μh) / σh for h ∈ {1d, 7d, 30d}
Defensive wins · Q1 2026

Sonar suspended user exposure ahead of two publicly confirmed exploits — detection happened before public confirmation in both cases:

  • · Moonwell oracle exploit $1.78M bad debt, 181 borrowers harmed. Sonar flagged abnormal oracle behaviour on Moonwell's Base markets and suspended exposure before the scale of the exploit was publicly confirmed.
  • · Resolv Protocol exploit ~$80M USR minted via a compromised AWS KMS key, ~$25M ETH extracted, USR de-pegged to $0.003. Sonar detected unchecked-minting activity and suspended Resolv-exposed positions before USR's de-peg became publicly visible.

03 Production performance

All returns net of gas, bridge fees, slippage, and protocol fees.

quartermean APYvs. best staticvs. T-Billsscope
Q4 2025 8.91 % +5.43 % +123.87 % 20 sources, USDC + USDT
Q1 2026 6.06 % +6.03 % +44.3 % 32 sources, USDC + USDT, +EURC
Daily APY of the Sail agent vs. market median over Q1 2026, with the shaded area representing Sail's outperformance.
Q1 2026 — Daily APY: Sail agent vs. market median. Shaded area = outperformance.
Q4 2025 — Sail agent APY trajectory vs. all market sources.
Q4 2025 — Sail vs. all 20 active market sources, daily APY.
Earlier experience

Where I built the muscle.

  • Accelya — Software Engineer I · payments management application, full-stack · Java · C# · .NET · SQL · Dec 2023 – Nov 2024
  • Career break — international travel and industry exploration. Post-graduation trip across South Korea and the U.S. West Coast (San Francisco, Cupertino, Stanford, Berkeley); met engineers at Apple and Berkeley alumni while visiting family. · Jul – Nov 2023
  • Deloitte — Technology Strategy & Transformation intern · market research and analysis for technology clients in the data division · RapidMiner · Dataiku · Alteryx · Mar – Jun 2023
  • European Union Agency for Railways — software engineering intern · SHACL shapes for knowledge-graph validation in the EUAR maps app, plus a web dashboard for validation reports · SPARQL · SHACL · RDF · Winter 2022/23
Selected projects

Things I built because I wanted to.

optcg — investment portfolio tracker Python · SQLite · Textual TUI · ~6.8k LOC · 2026 github ↗

CLI + TUI portfolio tracker for One Piece TCG (cards, sealed boxes, graded slabs). Live price scraping from CardMarket and eBay with a Cloudflare-aware cookie pipeline that decrypts Chrome / Arc / Brave / Edge cookies on macOS and Windows via each platform's keychain. Offline self-contained HTML dashboard, iCloud sync, P&L per item, receipt management.

optcg — Textual TUI showing live P&L across 70 items, per-card detail panel with trend history
Poker Vision Python · PyTorch · OpenCV · 2023 UPM publication ↗ github ↗

Three-module computer-vision system: image acquisition with noise removal, VGG16-based card recognition, and a Monte Carlo equity simulator. High recognition accuracy and realistic two-player simulation. Documented in the official UPM publication.

Poker table — original camera capture Detected card contours Recognition + Monte Carlo equity simulation overlay
Figbot — Twitch moderation bot Java · Multi-agent system · 2022 github ↗

Multi-agent system that assists streamers with chat moderation. Blacklist-based banning, bad-language ratio analysis for timeouts, and a GUI for streamers and mods to review the automated decisions.

Figbot — operator menu Figbot — live Twitch chat moderation
Data Center design Research project · UPM · 2022 · Honors

Group research project: complete data-center design for an online video-editing platform — rack layout, electrical plans, cooling and air-flow design. Matrícula de Honor.

JavaScript-PDL Compiler Java · 2021 · Honors github ↗

Compiler for a JavaScript subset. Lexical, syntactic, and semantic analysers; symbol table; error recovery and warnings. Matrícula de Honor.

+ Earlier work

  • Ecomobility — Semantic Web · Madrid bike + EV charging points published as RDF (OpenRefine, RML mappings) · Autumn 2022
  • Reactify — React + Spotify API · Winter 2022
  • Distributed Systems Broker — pub/sub broker in C, persistent subscriptions · Winter 2021/22
  • Bank Fraud Detection Middleware — Java JMS, concurrent middleware · Winter 2021/22
  • Personal Shell — C / Bash; lexer, parser, multi-process pipelines · Winter 2021
  • Sokoban — Java MVC with XML level persistence · Spring 2022
  • Black & White Filter — Assembly MC88110 · Winter 2020/21
Education

Universidad Politécnica de Madrid · 2019 – 2023

B.S. Computer Science · GPA 8.56 / 10. Matrículas de Honor in Operating Systems, Compilers (Procesadores de Lenguajes), Semantic Web & Knowledge Graphs, Art of Programming, Prolog, Programming Project, Data Center Project.

Coursework: Algorithms & Data Structures · AI · Machine Learning · Distributed Systems · Middleware · Concurrency · Probability & Statistics · Computer Networks · Security · Numerical Algorithms · Competitive Programming · Quantum Computing.

Contact

Let's talk.

Open to senior / lead engineering roles — remote or hybrid Madrid. Quantitative finance, data infrastructure, applied ML, fintech. Indefinido or EU EOR equivalent.