Lux Standard

DeFi Contracts

Complete DeFi stack - perps, lending, omnichain, and yield

DeFi Contracts

Complete decentralized finance infrastructure for Lux Network. One canonical implementation for each protocol - composable, omnichain, and secure.

Unified Liquidity

Perpetual Trading

Lending & Borrowing

Omnichain Infrastructure

Markets & Yield

Complete Stack Overview

┌─────────────────────────────────────────────────────────────────────────────┐
│                         LUX DEFI COMPLETE STACK                              │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                              │
│  ┌─────────────────────────────────────────────────────────────────────┐   │
│  │                 UNIVERSAL LIQUIDITY ENGINE (30+ Protocols)           │   │
│  │   EVM: Uniswap, Aave, Compound, Curve, 1inch, Aster (1001x Perps)   │   │
│  │   Solana: Jupiter, Raydium, Meteora, Orca, Solend, Kamino           │   │
│  │   TON: STON.fi, DeDust, Evaa, Omniston                              │   │
│  └─────────────────────────────────────────────────────────────────────┘   │
│                                    │                                        │
│  ┌─────────────────────────────────────────────────────────────────────┐   │
│  │                    OMNICHAIN LAYER (Warp + Intents)                  │   │
│  │   C-Chain ◄──────► Hanzo ◄──────► Zoo ◄──────► Solana ◄──► Bitcoin  │   │
│  └─────────────────────────────────────────────────────────────────────┘   │
│                                    │                                        │
│  ┌──────────────┬─────────────────┼─────────────────┬──────────────────┐   │
│  │   TRADING    │     LENDING     │    YIELD        │    MARKETS       │   │
│  ├──────────────┼─────────────────┼─────────────────┼──────────────────┤   │
│  │ • Perpetuals │ • Lending Pools │ • Farm          │ • NFT AMM        │   │
│  │ • 1111x Lvg  │ • Flash Loans   │ • LP Staking    │ • Bonding Curves │   │
│  │ • Intents    │ • Self-Repaying │ • Rewards       │ • Royalties      │   │
│  │ • LLP Pool   │ • Liquidations  │ • Auto-Compound │ • Property NFTs  │   │
│  └──────────────┴─────────────────┴─────────────────┴──────────────────┘   │
│                                    │                                        │
│  ┌─────────────────────────────────┼───────────────────────────────────┐   │
│  │              INFRASTRUCTURE (Oracles + DEX Precompiles)              │   │
│  │   Chainlink + Pyth + TWAP  │  434M orders/sec CLOB  │  1ms finality │   │
│  └─────────────────────────────────────────────────────────────────────┘   │
└─────────────────────────────────────────────────────────────────────────────┘

Protocol Matrix

ProtocolTypeLeverageCross-ChainKey Feature
PerpetualsDerivatives1111xLLP liquidity pool
IntentsTrading-Solver competition
LendingBorrowing-Flash loans (ERC-3156)
LoansSynthetics-Self-repaying debt
OmnichainLiquidity-Unified reserves
NFT MarketTrading-Bonding curves
FarmYield-Emission rewards

Quick Start

// ===== PERPETUALS =====
import "@luxfi/standard/src/gmx2/Router.sol";

// Open 10x long ETH position
router.increasePosition{value: 1 ether}(
    [WETH], WETH, 0, 10 ether * 1e30, true, type(uint256).max
);

// ===== LENDING =====
import "@luxfi/standard/src/lending/LendingPool.sol";

// Deposit collateral and borrow
lendingPool.deposit(LETH, 10 ether, msg.sender);
lendingPool.borrow(LUXD, 5000e18, 2, msg.sender);

// Flash loan
lendingPool.flashLoan(receiver, LUXD, 1_000_000e18, data);

// ===== OMNICHAIN SWAP =====
import "@luxfi/standard/src/OmnichainLPRouter.sol";

// Cross-chain swap: C-Chain ETH → Hanzo USDC
router.crossChainSwap(
    Route({path: [WETH, USDC], chainIds: [96369, 36963], bridges: [warp]}),
    amountIn, minOut, recipient, deadline
);

// ===== INTENT-BASED SWAP =====
import "@luxfi/standard/src/intents/IntentRouter.sol";

// Submit intent - solvers compete for best execution
intentRouter.submitIntent(SwapIntent({
    tokenIn: WETH, tokenOut: USDC,
    amountIn: 1 ether, minAmountOut: 3000e6,
    sourceChainId: 96369, destChainId: 36963,
    recipient: msg.sender, deadline: block.timestamp + 1 hours
}));

// ===== SELF-REPAYING LOAN =====
import "@luxfi/standard/src/Loans.sol";

// Deposit yield-bearing collateral, mint synthetic
loans.deposit(yLUX, 100 ether, msg.sender);
loans.mint(50 ether, msg.sender);  // Debt repays itself from yield

Chain Support

ChainPerpsLendingOmnichainIntents
C-Chain (96369)
Hanzo (36963)
Zoo (200200)
A-Chain
Solana🔄🔄🔄
Bitcoin🔄

On this page