VeilYield
VeilYield is a privacy-preserving yield aggregator for decentralized finance (DeFi). It empowers users to optimize returns across multiple protocols while ensuring their financial activities remain secure and anonymous.
Install / Use
/learn @gunatppcap/VeilYieldREADME
VeilYield
Private yield aggregation for DeFi using Fully Homomorphic Encryption (FHE).
- Privacy-preserving deposits and withdrawals
- Strategy aggregation across major protocols (Aave, Compound, Curve, Yearn)
- Modular architecture and cross-chain ready
This repository contains smart contracts, an SDK, and documentation.
Architecture
- Smart Contracts: DepositContract, StrategyManager, EncryptedVault, GovernanceTreasury
- Privacy Compute: FHE execution environment (e.g., Zama FHEVM)
- Data & Oracles: Chainlink, Pyth
- Frontend & SDK: React + wagmi + ethers.js; TypeScript SDK
Scope
This MVP targets a single-asset, single-protocol path first (Aave), then expands.
Build & Test
Install dependencies and run build/test once you add actual toolchains.
# npm install
# npm run build
# npm test
Contracts
- DepositContract: encrypted I/O events
- EncryptedVault: ciphertext storage
- StrategyManager: registry and selection
- GovernanceTreasury: fee parameters
Roadmap
- MVP on testnet
- Multi-protocol aggregation
- Governance token (VYL)
- Audits and bug bounty
Testing Strategy
Unit tests cover deposit flow, strategy selection, vault storage, and fees.
SDK Usage
import { VeilYieldClient } from "./src/sdk";
const client = new VeilYieldClient("http://localhost");
License
MIT
Acknowledgements
Inspired by privacy-preserving compute and DeFi research.
