Search projects, hackathons, sponsors and tech

    ← All projects

    UniStock

    Cross-chain lending & Uniswap v4 swaps/liquidity on Rootstock.

    Demo

    About

    UniStock is a DeFi platform on Rootstock (RSK) that combines a Uniswap V4-style DEX with an integrated lending protocol. Users can swap tokens, provide liquidity with concentrated ranges, and earn yields through lending, all with cross-chain functionality via LayerZero. **Core Features:** * **DEX:** Uniswap V4-style AMM, concentrated liquidity, low-slippage swaps, and efficient fee markets. * **Liquidity:** Flexible position management, automated fee collection, and analytics. * **Lending:** Supply assets to earn interest, borrow against collateral, and cross-chain lending. * **Cross-Chain:** LayerZero integration for unified liquidity and asset transfers. * **Advanced:** Referral rewards, admin controls, analytics, and mobile-responsive UI. **Architecture:** Smart contracts include `UnistockPoolManager`, `UnistockRouter`, `LzLiquidation`, and `MintableToken`. Frontend is built with React + TypeScript (Vite, Ethers.js, Shadcn/ui). **Use Cases:** Traders swap tokens efficiently, liquidity providers earn fees, lenders earn passive yields, and borrowers access liquidity—all in one interoperable DeFi platform. **Innovation:** By merging Uniswap V4’s concentrated liquidity with cross-chain lending, UniStock improves capital efficiency, yield opportunities, and user experience while bridging Rootstock with the wider DeFi ecosystem.

    How it's made

    Tech Stack Smart Contracts: Solidity ^0.8.23 + Foundry + LayerZero V2 Frontend: React 18 + TypeScript + Vite + Ethers.js v6 UI: Shadcn/ui + Tailwind CSS Network: Rootstock (RSK) Testnet Key Components 1. Concentrated Liquidity AMM Uniswap V4-style pool manager with tick-based liquidity Custom price range management for capital efficiency Automated fee collection and distribution 2. Cross-Chain Lending LayerZero integration for multi-chain operations Custom message types for borrowing/repaying across chains Health factor monitoring and liquidation protection 3. Frontend Architecture Custom hooks for blockchain state management Dynamic contract factory with ABI loading Real-time data updates with polling