Dyve
HackathonFrontend Developer
A brand-new NFTFi primitive developed for HackFS 2022 that allows users to safely lend, rent, or short NFTs, unlocking liquidity and enabling advanced trading strategies.
Role
Frontend Developer
Stack
Next.js, TypeScript, Tailwind CSS, Ethers.js, Solidity
Domain
NFTFi / Peer-to-Peer Lending / Shorting
Scope
- -Designed and built the full Next.js/Tailwind frontend application
- -Created interactive user flows for listing, borrowing, and shorting NFTs
- -Integrated Ethers.js and Web3React for wallet connection and contract interaction
- -Managed client-side state, routing, and dynamic data binding for NFT collections
Context
Dyve was developed for the HackFS 2022 hackathon. The project set out to fix a fundamental issue in the NFT ecosystem: millions of unproductive and idle NFTs sitting in wallets without active yield-generation opportunities, and a complete lack of tooling to hedge or short collections during bear markets.
To address this, Dyve introduced a brand-new NFTFi primitive. Lenders list their NFTs in a pool to earn daily premium fees, defining custom return requirements. Borrowers pay the premium and post collateral to borrow the NFT, allowing them to either rent it or short it by selling it on the open market.
Problem Space
- ✦NFT holders have no safe, native ways to generate passive income from their unproductive assets
- ✦Traders are locked into long-only exposure, with no mechanism to hedge floor prices or profit from price declines
- ✦Vulnerability to scammers and stolen NFTs interacting with DeFi smart contracts makes trustless escrow difficult
- ✦Visualizing multi-step operations like collateral locks, interest rates, and liquidation thresholds is challenging for users
Approach
- ✦Model borrow, lend, and short actions as explicit multi-stage transaction states in the UI to give users clear feedback
- ✦Utilize IPFS to query and verify trait-specific conditions selected by the lender (Exact same NFT vs Trait-specific vs Any NFT in the collection)
- ✦Leverage Covalent and NFTPort to verify NFT provenance, token balances, and security boundaries on-chain
- ✦Build a clean, dark-mode Web3 interface using Next.js and Tailwind CSS with custom hooks wrapping the Solidity contract triggers
Architecture & Implementation
Frontend Architecture
- Next.js & TypeScriptStructured layout and strong types for transaction payload formatting.
- Tailwind CSS StylingDesigned a dark-themed visual design language with custom-tailored layout systems.
Web3 Data & Protocols
- NFTPort APIUsed for querying NFT assets, floor prices, and collection metadata.
- Covalent IntegrationIndexed and pulled user-specific wallet balances and historical block transactions.
Smart Contracts
- Solidity EscrowA suite of 7 smart contracts deployed on Ethereum and Polygon testnets managing pool assets.
- IPFS trait-matchingLenders can lock specific traits or metadata hashes securely using decentralised file resolution.
UX & Interaction
- Ethers.js & Web3ReactCoordinated multi-wallet connectors with stateful loading triggers for smart contract calls.
- Self-closing positionsDesigned helpers to automatically repurchase floor assets to close short positions upon expiry.
UX & Product Design
Dyve puts massive emphasis on lender control and borrower execution:
- ✦Lenders can choose to restrict returns to the EXACT SAME asset (simple rental), a TRAIT-SPECIFIC asset (using metadata), or ANY asset from the collection (shorting)
- ✦Traders can see live collateral balances and liquidation limits updated dynamically on-screen
- ✦Integrated detailed modal overlays detailing transaction fees, daily premiums, and liquidation rules prior to signing
Impact & Recognition
Dyve was highly recognized during the 2022 hackathon circuits for its innovative design and technical implementation:
- ✦Winner of Covalent Best Use Prize (🥈 Second Place)
- ✦Winner of NFTPort Pool Prize (🏊♂️ Pool Winner)
- ✦Polygon Top 5 Finalist at HackFS 2022 (5️⃣ Top 5)
- ✦Shipped a fully functional MVP on Ethereum and Polygon testnets with interactive front-to-back contract execution
Key Learnings
- ✦Handling multi-step contract approval flows for ERC-721 and ERC-20 tokens requires meticulous UI state-machine modeling
- ✦Decentralized metadata querying via IPFS needs local client caching to bypass rate-limiting and loading delays during asset browsing
- ✦Clear visual indicators for collateral-at-risk are vital for user trust when conducting advanced peer-to-peer financial activities