- CoverageFi
CoverageFi is a Web3 application designed to simplify stablecoin transfers by allowing users to send and receive digital dollars (USDC) across different blockchain networks. Users can easily send crypto to vendors or peers by scanning a QR code or entering a wallet address. CoverageFi supports cross-chain transfers using Wormhole's Cross-chain Token Transfer and Cross-chain Message Transfer to ensure seamless token movement between chains.
CoverageFi addresses the challenge of providing global access to digital dollars. This project offers financial stability to users worldwide by enabling them to hold and transact stablecoins without needing a traditional bank account. CoverageFi makes it easy for individuals and businesses to move funds across blockchain networks, leveraging decentralized finance to reach users anywhere.
- User Registration and Management: Users can register with unique usernames and manage their identities across chains.
- Simple Token Transfers: Users can send stablecoins (USDC) to anyone by scanning a QR code or entering an address.
- Cross-Chain Transfers: Transfer stablecoins across multiple chains, including Ethereum, Avalanche, and Celo, using Wormhole's Cross-chain Token Transfer.
- Non-Custodial Wallet Support: Circle User-Controlled Wallets
- User Mapping: Each user is assigned a unique ID for tracking transactions in the smart contracts, while usernames are managed in the frontend.
- Stable Store of Value: Provides users worldwide with access to stablecoins for holding and transacting, offering financial stability in volatile markets.
- Blockchain Networks: Sepolia, Avalanche-Fuji, Celo-Alfajores, Optimism sepolia, Base sepolia
- Cross-Chain Technology: Wormhole Cross-chain Token Transfer and Cross-chain Message Transfer
- Smart Contracts: Solidity
- Developer Framework: Foundry
- Frontend: Next.js, TailwindCSS, shadcn
- Wallet Integration: Circle User-Controlled Wallets
- Token Support: USDC
- Libraries: OpenZeppelin and Wormhole
The architecture consists of the following smart contracts:
- Manages user registration and mapping of user information like usernames and addresses.
- Assigns unique user IDs to registered users.
- Provides functions to retrieve user information and check registration status.
- Handles the initiation of cross-chain token transfers.
- Interacts with Wormhole's Cross-chain Token Transfer to send tokens to other chains.
- Manages the locking and burning of tokens on the source chain.
- Receives and processes incoming cross-chain token transfers.
- Verifies the validity of incoming transfers using Wormhole's protocol.
- Mints or unlocks tokens on the destination chain and distributes them to the intended recipients.
This contract serves as the foundation for user management within the CoverageFi ecosystem. It allows users to register with unique usernames, maps addresses to user IDs, and provides functions to retrieve user information. Key features include:
- User registration with unique usernames
- Mapping of user addresses to User structs
- Mapping of user IDs to addresses
- Username to address mapping
- Functions to get user information and check registration status
This contract facilitates the initiation of cross-chain token transfers using Wormhole's Cross-chain Token Transfer. It handles the process of locking or burning tokens on the source chain and preparing them for transfer to the destination chain.
This contract is responsible for receiving and processing incoming cross-chain token transfers. It verifies the validity of transfers using Wormhole's protocol, mints or unlocks tokens on the destination chain, and ensures they are correctly distributed to the intended recipients.
- Multi-token support: Add more stablecoins and tokens based on user needs.
- Expanded network support: Support additional blockchain networks beyond Ethereum, Avalanche, and Celo.
- Cross-chain Integration: Enhance cross-chain functionality using Wormhole's Cross-chain Token Transfer and Cross-chain Message Transfer.
- QR Code Payments: Implement QR code-based payments for vendors.
- Mobile App: Release a mobile version of CoverageFi for broader adoption.
- Advanced User Features: Implement additional features like transaction history, balance tracking across chains, and user profile management.
This project is licensed under the MIT License - see the LICENSE file for details.