Lead Engineer · Intelligence Layer at Sail
Quantitative DeFi · risk monitoring · cross-chain yield optimization
Madrid, Spain · open to remote / EU
I founded the intelligence layer at Sail — a DeFi yield-optimization protocol on Base and Arbitrum — from a blank page. Two production systems, both designed and implemented end-to-end: the cross-chain optimization engine that decides where user capital sits, and Sonar, the risk-monitoring system that decides what to avoid. I also defined the database schema and built the first user-facing UIs.
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.
Formalized portfolio allocation as a constrained Markov Decision Process. Non-convex objective (yield, transaction cost, slippage, concentration risk) optimized via simulated annealing with Metropolis-Hastings acceptance. A CNN meta-controller predicts the annealing hyperparameters from APY/TVL history, cutting the parameter search by 3-5×.
The full mathematical framework — formulation, proofs, and empirical validation — is documented in two public research papers I authored.
z-score anomaly detection over multi-horizon APY baselines (1d / 7d / 30d), dual-mode SPIKE / TREND scoring (80/20 vs 40/60 weighting), tier-based execution cycles (1h / 2h / 6h), and a financial-inertia mechanism that cut unnecessary portfolio churn by 43 %.
Sonar suspended user exposure ahead of two publicly confirmed exploits — detection happened before public confirmation in both cases:
All returns net of gas, bridge fees, slippage, and protocol fees.
| quarter | mean APY | vs. best static | vs. T-Bills | scope |
|---|---|---|---|---|
| Q4 2025 | 8.91 % | +5.43 % | +123.87 % | 20 sources, USDC + USDT |
| Q1 2026 | 6.06 % | — | +44.3 % | 32 sources, USDC + USDT, +EURC |
All four are sole-author work.
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.
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 a university publication.
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.
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.
Compiler for a JavaScript subset. Lexical, syntactic, and semantic analysers; symbol table; error recovery and warnings. Matrícula de Honor.
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.
phone
+34 661 140 420
github