ami-pay
AmiPay extends Peanut: Enable amigos to fund your on-chain payment allowances.
Problem Statement
π Our StoryWe came to Argentina for DevConnect and ETHGlobal Argentina, and we absolutely fell in love with this place! During our stay, we discovered "Peanut" - a local payment app that does an amazing job supporting both fiat money and crypto payments.However, we noticed there's still room for improvement. As the citizens from like China, we experienced the difficulty of passing KYC processes, which prevented us from paying at restaurants and shops. This inspired us to buildAmiPayduring the hackathon.π― The ProblemFor many international travelers, especially those from certain regions, KYC verification can be a significant barrier to accessing payment services. This creates a frustrating experience when trying to pay for everyday expenses like meals and shopping.π‘ Our SolutionAmiPayenables amigos (your friends) who can pass KYC and have the money to deposit an allowance for you. When you need to pay, you can use this pre-funded allowance.
Solution
How It WorksThe core features are following:Sponsor Deposits: A friend (sponsor) who has passed KYC deposits tokens into the AmiPay smart contract, specifying you as the beneficiaryYou Spend: When you need to pay, you can spend from the allowance your friend depositedDirect Transfer: The payment goes directly from the smart contract to the merchant/recipientAll of this is managed transparently on-chain through our smart contract, ensuring trust and security.ποΈ Architectureπ Project Structureami-pay/ βββ contracts/ # Solidity smart contracts β βββ AmiPay.sol # Main contract β βββ TestToken.sol # Test ERC20 token βββ frontend/ # React frontend application β βββ src/ β βββ App.tsx # Main app component β βββ components/ β βββ chainConfig.ts βββ scripts/ # Deployment and utility scripts βββ ignition/ # Hardhat Ignition deployment configs βββ hardhat.config.ts # Hardhat configurationπ οΈ Tech StackSmart ContractsSolidity^0.8.28Hardhat3for development and testingOpenZeppelincontracts for securityHardhat Ignitionfor deploymentFrontendReact19 withTypeScriptVitefor build toolingWagmi&Viemfor Ethereum interactionsRainbowKitfor wallet connectionReact QR Scannerfor payment scanning
Hackathon
ETHGlobal Buenos Aires
2025
Contributors
- fengshanshan
7 contributions