LPsLux Proposals
Markets & DeFi
LP-3001

DeFi Protocol Integrations Registry

Final

Registry of external DeFi protocols integrated via adapter contracts in the Lux ecosystem

Created
2025-12-23

LP-3001: DeFi Protocol Integrations Registry

Abstract

This LP documents external DeFi protocols that the Lux ecosystem integrates with via adapter contracts. These are third-party protocols we interact with - not Lux-native standards. Due to licensing restrictions (primarily BUSL-1.1), we integrate with these protocols via adapters rather than forking or copying their code.

Motivation

DeFi composability requires interaction with established protocols on various chains. This registry documents:

  • Which external protocols we've vetted and integrated
  • Our BSD-3 licensed adapter contracts that interface with them
  • Licensing considerations for each protocol
  • Deployment status across Lux, Zoo, and external chains

Our Adapter Standards (BSD-3 Licensed)

Lux provides standard interfaces for protocol integration:

ILiquidityAdapter

Location: contracts/adapters/interfaces/ILiquidityAdapter.sol

interface ILiquidityAdapter {
    function protocol() external view returns (string memory);
    function addLiquidity(AddLiquidityParams calldata params) external payable returns (uint256 lpAmount);
    function removeLiquidity(RemoveLiquidityParams calldata params) external returns (uint256[] memory amounts);
    function swap(SwapParams calldata params) external payable returns (uint256 amountOut);
    function getPoolInfo(address pool) external view returns (PoolInfo memory);
}

ILiquidityEngine

Location: contracts/liquidity/interfaces/ILiquidityEngine.sol

Unified interface supporting DEX swaps, lending, and cross-chain operations.

Integrated Protocols

AMM / DEX Protocols

Uniswap V2/V3

PropertyValue
ProtocolUniswap
LicenseGPL-2.0 (V2), GPL (V3 - converted from BUSL)
IntegrationFork or adapter
Our AdapterUniswapV3Adapter.sol
Submodulelib/v2-core, lib/v3-core, lib/v3-periphery
StatusProduction ready

Why Uniswap: Industry standard AMM with deep liquidity, proven security (billions TVL), and extensive audit history.

License Note: Uniswap V3 launched under BUSL-1.1 but has since converted to GPL. Can now be forked.

Chains Supported:

  • Ethereum Mainnet ✅
  • Arbitrum ✅
  • Optimism ✅
  • Polygon ✅
  • Base ✅
  • Lux Mainnet ✅ (deployed)

Uniswap V4

PropertyValue
ProtocolUniswap V4
LicenseBUSL-1.1 (active until ~2027)
IntegrationVia adapter only
Our AdapterUniswapV4Adapter.sol
StatusDevelopment

Note: Uniswap V4 BUSL-1.1 is still active. We integrate via adapters on chains where Uniswap deploys.

1inch

PropertyValue
Protocol1inch Aggregator
LicenseMIT
IntegrationVia adapter
Our AdapterOneInchAdapter.sol
StatusProduction ready

Why 1inch: Best execution via DEX aggregation across multiple liquidity sources.

Lending Protocols

Aave V3

PropertyValue
ProtocolAave V3
LicenseMIT (converted from BUSL-1.1 on Jan 27, 2023)
IntegrationFork or adapter
Our AdapterAaveV3Adapter.sol
Submodulelib/aave-v3 (v1.19.4)
StatusProduction ready

Why Aave: Premier lending protocol with E-Mode, isolation mode, and extensive security audits (OpenZeppelin, Trail of Bits, SigmaPrime, PeckShield, Certora).

License Note: Aave V3 BUSL-1.1 expired January 27, 2023 - now MIT licensed. Can be forked and deployed.

Compound

PropertyValue
ProtocolCompound V2/V3
LicenseBSD-3
IntegrationReference implementation
StatusReference in lib/compound

Note: Compound's BSD-3 license allows more flexibility. Used as reference for lending mechanics.

Perpetuals / Derivatives

GMX

PropertyValue
ProtocolGMX V2
LicenseBUSL-1.1
IntegrationVia adapter
Our AdapterIMarketAdapter.sol implementation
StatusResearch

Why GMX: Leading decentralized perpetuals with oracle-based pricing and GLP liquidity model.

Oracles

PropertyValue
ProtocolChainlink Data Feeds
LicenseMIT
IntegrationDirect interface
StatusProduction ready

Why Chainlink: Industry standard price feeds with decentralized oracle network.

Cross-Chain / Bridges

LayerZero V2

PropertyValue
ProtocolLayerZero
LicenseBUSL-1.1
IntegrationVia adapter
Our AdapterIBridgeAdapter.sol implementation
StatusResearch

Why LayerZero: Generalized messaging with Ultra Light Nodes and decentralized verification.

Wormhole

PropertyValue
ProtocolWormhole
LicenseApache 2.0
IntegrationVia adapter
StatusResearch

Yield / Vaults

Alchemix

PropertyValue
ProtocolAlchemix V2
LicenseAGPL-3.0
IntegrationReference
StatusReference in lib/alchemix-v2

See LP-9108 for details.

Lux Native Alternatives

Where possible, we build native alternatives rather than relying on external protocols:

CategoryExternal ProtocolLux Native
AMMUniswapQuantumSwap (via DEX precompile)
OraclesChainlinkNative Oracle precompile
BridgeLayerZero/WormholeWarp Messaging
LendingAaveLux Lending (planned)

QuantumSwap (contracts/liquidity/dex/QuantumSwap.sol): Native DEX with precompile-accelerated matching. The GPU-native deterministic per-book matcher is parity-verified at up to 12.76 B ord/s (AMD Radeon 8060S) and 2.80 B ord/s (Apple M1 Max); the C++ CPU HFT matcher runs 11.88 M ord/s (169 ns/match). (The prior "434M orders/sec" headline was a debunked simulation.)

Licensing Summary

LicenseCan Fork?Can Modify?Can Deploy?Examples
MIT1inch, Chainlink, Aave V3 (post-Jan 2023)
BSD-3Compound
GPL-2.0✅ (copyleft)Uniswap V2, Uniswap V3 (converted)
AGPL-3.0✅ (strong copyleft)Alchemix
BUSL-1.1❌ (until expiry)Uniswap V4, GMX
Apache 2.0Wormhole

BUSL-1.1 Expiry Notes:

  • Uniswap V3: Converted to GPL ✅
  • Aave V3: Converted to MIT (Jan 27, 2023) ✅
  • Uniswap V4: Still BUSL until ~2027
  • GMX: Still BUSL

Deployment Status

Lux Mainnet (96369)

ProtocolContractStatus
UniswapV3Adapter-Planned
AaveV3Adapter-Planned
QuantumSwap (native)PrecompileActive

Zoo Mainnet (200200)

ProtocolContractStatus
QuantumSwapBridge adapterActive

External Chains (via adapters)

ChainProtocols Integrated
EthereumUniswap, Aave, 1inch, Chainlink
ArbitrumUniswap, GMX, Aave, Chainlink
OptimismUniswap, Aave, Chainlink
BaseUniswap, Aave, Chainlink

Security Considerations

  1. External Protocol Risk: We depend on external protocol security
  2. Adapter Risk: Our adapters must correctly interface with protocols
  3. License Compliance: Must respect BUSL-1.1 and other restrictions
  4. Upgrade Risk: External protocol upgrades may break adapters

Audit Requirements

  • All adapters must be audited before production deployment
  • External protocol audits reviewed before integration
  • Continuous monitoring of protocol security advisories

Integration Guidelines

Adding New Protocol Integration

  1. Vet the protocol: Audit history, TVL, track record
  2. Check licensing: Ensure compliance with license terms
  3. Implement adapter: Using our standard interfaces
  4. Test thoroughly: Unit tests, fork tests, integration tests
  5. Audit: External security review
  6. Document: Add to this registry

Adapter Implementation Template

// SPDX-License-Identifier: BSD-3-Clause
contract NewProtocolAdapter is ILiquidityAdapter {
    function protocol() external pure returns (string memory) {
        return "ProtocolName";
    }

    function version() external pure returns (string memory) {
        return "1.0.0";
    }

    // Implement interface methods...
}

References

Changelog

  • 2025-12-23: Initial specification