Unipay.exchange

Unipay.Exchange: Scan UPI, pay in INR, get crypto instantly — powered by Uniswap V4 & Pyth.

Unipay.exchange

Created At

ETHGlobal New Delhi

Project Description

Unipay.Exchange is the 1st FIAT to DeFi onramp using UPI payments to make the vast liquidity available to the masses. The platform allows users to purchase cryptocurrencies directly in their native form by just scanning a UPI QR code and making an INR payment—no complicated onboarding, no centralized custody.

The platform leverages Uniswap V4 hooks to facilitate the transaction via a treasury and Pyth Network’s real-time price feeds to ensure transparent INR-to-crypto conversion rates verified on-chain!

With Unipay.Exchange, anyone can move from fiat to crypto in seconds, making Web3 truly accessible to the everyday user while maintaining the security and transparency of on-chain settlement.

How it's Made

A relayer-orchestrated system that enables users to buy crypto with fiat payments while guaranteeing exchange rates through oracle price locks and sophisticated onchain execution.

Technical Architecture

  1. Price Lock Mechanism
  • Pyth Oracle locks ETH/USDC rates with expiry timestamps
  • Returns quoteId that cryptographically binds price, amount, and deadline
  • Prevents slippage between fiat payment and crypto delivery
  1. Payment-to-NFT Bridge
  • User pays 500 INR via UPI Gateway
  • Relayer mints ReceiptNFT with tokenId=txnId and metadata={quoteId}
  • NFT serves as onchain proof-of-payment with embedded rate guarantee
  • Relayer transfers NFT to TreasuryHook (custody for execution)
  1. Hook-Based Execution Engine
  • Uniswap v4 Hook validates and executes swaps atomically
  1. Extracts quoteId from NFT metadata.
  2. Validates locked quote with Oracle (price, expiry, unused status)
  3. Burns NFT to prevent double-spending
  4. Calculates exact swap amounts using locked rate
  5. PoolManager executes ETH→USDC swap with guaranteed output
  6. ERC-6909 claims track user's USDC balance
  7. User can withdraw to any wallet when ready
background image mobile

Join the mailing list

Get the latest news and updates

Unipay.exchange | ETHGlobal