LiYield is a cross-chain DeFi ETF + Yield Swap prototype powered by LI.FI Earn and Composer.
Language: English | 中文
LiYield combines two layers:
- An ETF-style vault that mints
liYIELD, a share token representing managed exposure to a basket of yield sources - A Yield Swap market where
liYIELDbecomes collateral and traders take views on future realized yield, not spot price direction
The core loop in this repo is:
- Users deposit assets into
LiYieldVault - The vault mints
liYIELD - An off-chain keeper deploys treasury capital into selected Earn targets based on strategy rules
- The server tracks snapshots, ETF price points, keeper/oracle state, and term lifecycle
- Users can use
liYIELDas collateral inYieldSwapMarket
Key design constraints:
- Users enter through the vault, not by routing to underlying pools themselves
- Capital deployment, valuation, settlement, and rebalancing are orchestrated off-chain
- The derivatives layer trades strategy yield expectations rather than ETF spot direction
packages/contracts:LiYieldVault,SettlementIndex,YieldSwapMarketpackages/server: ETF/strategy registry, snapshots and pricing, keeper/oracle/term schedulers, HTTP APIapps/web: ETF landing page and Yield Swap UI skeleton
This repository is a demoable and testable prototype, not a production-ready protocol.
Install dependencies:
npm installRecommended local demo flow:
npm run demoThat command starts anvil, deploys local contracts, boots the server with its default background services, and starts the web app.
If you run:
npm run devit only starts server + web. It does not start a local chain or deploy contracts for you.
Chinese docs: