Video thumbnail

GlobePool

Tokenize real-world assets and stake $WLD with one click using World ID with HashKey Tokenised RWAs.

GlobePool

Created At

ETHGlobal Taipei

Winner of

World - World Pool Prize

Prize Pool

Project Description

This project is a decentralized finance (DeFi) platform that enables users to tokenize real-world assets (RWAs) as NFTs, stake Worldcoin ($WLD) tokens, and interact with smart contracts using World ID for verified identity and Permit2 for gasless token approvals.

🔐 Key Features: Real-World Asset Tokenization Users can upload a formal copy or image of an asset (like property deeds, invoices, or certifications). The backend hashes and stores the metadata, then mints an NFT on the HashKey Chain, representing the real-world asset. These NFTs are held in the user's wallet but are governed by smart contracts that limit transfers until loan conditions are fulfilled.

Stake $WLD with Permit2 Users can stake Worldcoin tokens using a sleek React UI powered by MiniKit. Token approval is handled via Permit2, allowing gasless, secure, and standardized token permissions without needing the standard ERC-20 approve() transaction.

Decentralized Lending & Borrowing Built on a model similar to Aave or Compound, the platform allows users to borrow WLD against their tokenized assets with:

Overcollateralization (minimum 150% ratio),

Dynamic interest rates (3–5% for lenders, 10–12% for borrowers),

Time-bound repayments, and

Liquidation if loans default.

Smart Identity Integration with World ID Identity verification and wallet actions are integrated through Worldcoin's World ID, enabling sybil-resistant user interactions without compromising privacy.

Backend & Frontend Stack

Frontend: React + MiniKit + MUI + styled-components

Backend: Express.js handles uploads, metadata hashing, and MongoDB storage.

Blockchain: HashKey Chain for RWANFT minting, and Worldcoin-compatible chains for staking/borrowing.

This project aims to bridge the gap between DeFi and real-world asset utility, making decentralized lending more inclusive, identity-aware, and regulation-ready — all while keeping UX clean and transactions efficient.

How it's Made

This project combines DeFi, NFTs, and identity-proofing into a unified dApp by weaving together several modern technologies across frontend, backend, and blockchain layers.

🧱 Core Architecture 🖥 Frontend Framework: Built using React with TypeScript.

Bundler: Vite for lightning-fast development and optimized builds.

UI: Leveraged Material UI (MUI) and styled-components for a clean, responsive interface.

Wallet & Identity: Integrated Worldcoin’s MiniKit for:

Wallet abstraction

World ID identity verification

Transaction signing (via commandsAsync.sendTransaction)

Staking UX: Implemented a multi-step flow using MUI’s Stepper to walk users through:

Permit2 token approval

Staking execution

Completion state

Permit2 Support: We bypass the need for a traditional approve() call by injecting Permit2 payloads directly into the MiniKit.sendTransaction API. This avoids gas-wasting double approvals and simplifies UX.

🛠 Backend Runtime: Express.js

Storage: MongoDB to persist RWA metadata including asset hash, file reference, and ownership data.

Asset Handling:

Accepts images or document uploads (JPEG, PNG, PDF).

Hashes them using crypto or keccak256.

Stores the resulting hash + metadata.

Tokenization API: After backend verification, a transaction is sent to mint an RWANFT on the HashKey Chain, using a deployed smart contract.

⛓ Smart Contracts & Blockchain Integration RWANFT Contract: Deployed on HashKey Chain, representing real-world assets as NFTs.

NFT transfer is restricted unless loan conditions are fulfilled.

Includes a custom canTransfer logic based on loan status.

WorldFinance Contract: Deployed on a Worldcoin-compatible EVM chain.

Lending pool initialized with 20 WLD.

Dynamic interest model: APY calculated based on utilization rate.

Borrowing metadata stored: collateralType, tokenId, chain, etc.

Time-bound loans and liquidation logic implemented.

🤝 Partner Tech & APIs Worldcoin MiniKit: Essential for integrating World ID, wallet connection, and zero-config transaction signing.

Major UX advantage: no need to manually handle ethers.js or external wallet providers.

Permit2 (Uniswap’s ERC20 approval protocol):

Removes friction in token approvals.

Boosts UX by replacing approve() with off-chain signature permits.

Chainlink (planned): For accurate WLD price feeds and liquidation thresholds.

🧪 Notable Hacks / Engineering Highlights Permit2 Injection Hack: Manually crafted and passed the Permit2 payload into MiniKit.sendTransaction alongside a dummy transaction array to simulate a seamless flow without triggering approval transactions. Great for keeping gas costs minimal and UX snappy.

Minimal Trust NFT Custody: Assets are stored in the user’s wallet but smart contracts enforce transfer restrictions until loans are fully repaid — this enables custody with on-chain enforcement, not off-chain trust.

Composable Metadata Layer: RWA metadata is decoupled from NFT minting. Metadata hash is stored in MongoDB while the NFT contract only deals with the hash, making it chain-agnostic and easily upgradeable.

background image mobile

Join the mailing list

Get the latest news and updates