Skip to main content

Envisioning is an emerging technology research institute and advisory.

LinkedInInstagramGitHub

2011 — 2026

research
  • Reports
  • Newsletter
  • Methodology
  • Origins
  • Vocab
services
  • Research Sessions
  • Signals Workspace
  • Bespoke Projects
  • Use Cases
  • Signal Scanfree
  • Readinessfree
impact
  • ANBIMAFuture of Brazilian Capital Markets
  • IEEECharting the Energy Transition
  • Horizon 2045Future of Human and Planetary Security
  • WKOTechnology Scanning for Austria
audiences
  • Innovation
  • Strategy
  • Consultants
  • Foresight
  • Associations
  • Governments
resources
  • Pricing
  • Partners
  • How We Work
  • Data Visualization
  • Multi-Model Method
  • FAQ
  • Security & Privacy
about
  • Manifesto
  • Community
  • Events
  • Support
  • Contact
  • Login
ResearchServicesPricingPartnersAbout
ResearchServicesPricingPartnersAbout
  1. Home
  2. Research
  3. Lattice
  4. On-Chain Risk & Margin Engines

On-Chain Risk & Margin Engines

Smart contract libraries that calculate collateral, margin calls, and liquidations across DeFi protocols
Back to LatticeView interactive version

On-chain risk and margin engines provide shared, auditable smart contract libraries for calculating collateral requirements (how much collateral is needed for a position), margin calls (demands for additional collateral when positions become undercollateralized), and liquidations (automatic closure of positions when collateral falls below thresholds) across derivatives, money markets, and structured products. Standardizing these risk management primitives reduces implementation risk (fewer bugs from reinventing the wheel), improves transparency for users and regulators (everyone can see how risk is calculated), and enables cross-protocol risk aggregation (understanding total risk across multiple protocols), creating a foundation for safer and more transparent DeFi systems.

This innovation addresses the fragmentation and inconsistency in DeFi risk management, where each protocol implements its own risk models, leading to bugs and lack of transparency. By standardizing risk primitives, these engines improve safety. Companies, DeFi protocols, and research institutions are developing these systems.

The technology is particularly significant for improving DeFi safety and transparency, where standardized risk management could prevent many failures. As DeFi expands, risk management becomes increasingly important. However, ensuring accuracy, managing complexity, and achieving adoption remain challenges. The technology represents an important evolution in DeFi infrastructure, but requires continued development and adoption. Success could significantly improve DeFi safety, but the technology must be widely adopted to have impact. The standardization of risk management is a critical infrastructure need for the DeFi ecosystem.

TRL
6/9Demonstrated
Impact
5/5
Investment
4/5
Category
Software

Related Organizations

Aave Labs logo
Aave Labs

United Kingdom · Company

95%

Developers of the Aave Protocol, a decentralized non-custodial liquidity market protocol.

Developer
Chaos Labs logo
Chaos Labs

United States · Startup

95%

Provides automated risk management and economic security for DeFi protocols via simulation.

Researcher
Gauntlet Networks logo
Gauntlet Networks

United States · Company

95%

A financial modeling platform that provides risk management solutions for DeFi protocols.

Researcher
dYdX Trading logo
dYdX Trading

United States · Company

90%

Developer of the dYdX protocol for perpetual trading.

Developer
Gearbox Foundation logo
Gearbox Foundation

Nonprofit

90%

A generalized leverage protocol.

Developer
GMX logo
GMX

Open Source

90%

A decentralized perpetual exchange.

Developer
Morpho Labs logo
Morpho Labs

France · Startup

90%

Develops Morpho Blue, a lending protocol enabling permissionless market creation with isolated risk.

Developer
Credora logo
Credora

United States · Company

85%

Provides privacy-preserving credit risk infrastructure.

Developer
Euler Labs logo
Euler Labs

United Kingdom · Startup

85%

Creators of Euler, a modular lending protocol.

Developer
Liquity logo
Liquity

Switzerland · Company

85%

A decentralized borrowing protocol.

Developer
Synthetix logo
Synthetix

Australia · Open Source

85%

A derivatives liquidity protocol.

Developer
Warden Finance logo
Warden Finance

United States · Startup

80%

Analytics platform for DeFi risk.

Researcher

Supporting Evidence

Evidence data is not available for this technology yet.

Connections

Ethics Security
Ethics Security
Systemic Risk & Protocol-Scale Financial Stability

Managing cascade failures and contagion risks across interconnected DeFi protocols and blockchains

TRL
4/9
Impact
5/5
Investment
4/5
Applications
Applications
Decentralized Insurance

Blockchain-based risk pools where members vote on claims and automate payouts

TRL
6/9
Impact
4/5
Investment
4/5
Software
Software
RegTech & Compliance Engines for DeFi

Systems that translate regulatory rules into enforceable smart contract policies for DeFi protocols

TRL
5/9
Impact
4/5
Investment
4/5
Software
Software
Flash Loan Platforms

Uncollateralized loans borrowed and repaid in a single blockchain transaction

TRL
7/9
Impact
4/5
Investment
4/5
Software
Software
Real-Time Fraud & Anomaly Detection Pipelines

Automated systems that spot wash trading, sandwich attacks, and cross-chain exploits as they happen

TRL
7/9
Impact
5/5
Investment
5/5
Software
Software
Cross-Chain Settlement & Liquidity Routing

Protocols that unify fragmented blockchains into a single value layer for seamless cross-chain transactions

TRL
6/9
Impact
5/5
Investment
5/5

Book a research session

Bring this signal into a focused decision sprint with analyst-led framing and synthesis.
Research Sessions