Context
Concentrated liquidity earns more than a plain pool, but only if someone keeps moving the range. Managers like Gamma and Bunni do that for you. Analog let a liquidity provider set their own strategy and kept the funds in their own account.
What I did
I built it alone: the Solidity contracts, the protocol layer and the full-stack app. Every user got their own vault on an ERC-4337 smart account, with sponsored gas through a paymaster. That kept the product self-custodial and non-discretionary, a design chosen to stay outside the crypto-asset service provider rules in MiCA.
I integrated a Chainalysis sanctions oracle on Base. Every deposit and every withdrawal was screened, the check failed closed when the oracle was down, and a hit froze the account and wrote an audit log entry. Geo-restrictions blocked the UK and limited the EU and the US.
Outcome
- One self-custodial vault per user on ERC-4337, with paymaster-sponsored gas.
- Sanctions screening on every deposit and withdrawal, fail-closed.
- Production monitoring with Prometheus, Grafana and Loki, about 20 alert rules, an RPC failover provider and written incident postmortems.
- Solidity
- ERC-4337
- TypeScript
- Node.js
- PostgreSQL
- Redis
- Base
- Chainalysis
- Prometheus
- Grafana