SafeWallet Pay

A secure, safe P2P refundable payment with a zero-loss lottery, powered by PYUSD and FLOW

SafeWallet Pay

Created At

ETHGlobal New Delhi

Project Description

SafeWallet Pay is a comprehensive decentralized financial platform that revolutionizes how users interact with cryptocurrency payments and decentralized finance. Built with security, accessibility, and innovation at its core, the platform offers two main services that work seamlessly together.

Core Services:

  1. Safe P2P Payments SafeWallet Pay provides a secure escrow-based payment system that eliminates the risks associated with traditional cryptocurrency transfers. When a user sends funds, they are held in a smart contract until the recipient actively claims them. This prevents accidental loss of funds due to incorrect addresses and provides dispute resolution capabilities. The system supports both wallet addresses and human-readable user IDs, making it accessible to both crypto-native users and newcomers.

  2. Zero-Loss Lottery Our innovative lottery system ensures participants never lose their principal investment. When users buy lottery tickets, their funds are pooled and used to generate interest through DeFi protocols. The interest earned becomes the prize pool, while all participants are guaranteed to get their original investment back regardless of whether they win. This creates a risk-free gambling experience that's both entertaining and educational for DeFi newcomers.

Key Innovations: Multi-Token Architecture: Native support for both blockchain-native currencies (ETH, FLOW) and ERC-20 tokens, with special integration for PayPal's PYUSD stablecoin Cross-Chain Compatibility: Seamless operation across multiple blockchains with a unified user interface Social Authentication: Web3Auth integration enables social login alongside traditional wallet connections ENS Integration: Support for Ethereum Name Service across multiple chains for human-readable addresses Progressive Web App: Mobile-responsive design that works across all devices

How it's Made

SafeWallet Pay represents a sophisticated integration of multiple cutting-edge technologies, each chosen for specific benefits and capabilities.

Core Technology Stack: Frontend Architecture:

React 18+ with TypeScript: Provides type safety and modern component architecture Tailwind CSS: Enables rapid, responsive UI development with a consistent design system Wagmi & Viem: Industry-standard libraries for Ethereum interactions, providing type-safe contract interactions React Router: Client-side routing for seamless single-page application experience Smart Contract Development:

Solidity: Core smart contract language for business logic implementation Hardhat: Development environment providing testing, debugging, and deployment capabilities OpenZeppelin: Battle-tested contract libraries for security and standardization Custom Escrow Logic: Proprietary smart contract architecture for secure P2P payments Partner Technology Integration: PYUSD by PayPal: PayPal's PYUSD integration was a strategic choice that bridges traditional finance with DeFi. PYUSD provides:

Regulatory compliance and institutional backing Price stability crucial for payments Familiar brand recognition for mainstream adoption Seamless integration with existing PayPal ecosystems The integration required custom decimal handling (6 decimals vs. standard 18) and specialized formatting logic to ensure accurate transaction displays and calculations.

ENS (Ethereum Name Service): ENS integration extends beyond Ethereum to provide cross-chain name resolution:

Custom resolver implementation for multi-chain support Client-side caching for improved performance Fallback mechanisms for networks without native ENS support User-friendly address abstraction Blockchain Integration:

Sepolia Testnet:

Primary development and testing network Full ERC-20 token support including PYUSD Comprehensive smart contract deployment ENS integration testing Citera Testnet:

Alternative blockchain implementation Custom token deployment (Mock COIN) Cross-chain compatibility validation Different architecture testing (account-based vs. UTXO)

background image mobile

Join the mailing list

Get the latest news and updates