Ram Maheshwari Logo Image
Deneth Sahil

CoffeeCoin - Loyalty Token

Custom ERC-20 token enabling weekly loyalty rewards for coffee shop customers with secure transfers and comprehensive testing.

Project Image

Project Overview

CoffeeCoin is a blockchain-based loyalty token system built for a coffee shop client. The smart contract implements ERC-20 standards with custom functionality allowing customers to claim 10 tokens weekly. Features include secure transfer mechanisms, time-based claiming restrictions, and comprehensive error handling. The contract prevents abuse through validation checks and provides transparent tracking of all transactions. Deployed on Sepolia testnet with full verification and extensive testing coverage.

This project delivers a decentralized loyalty program through a custom ERC-20 token contract. Users can claim rewards every 7 days while maintaining standard token functionality for transfers and approvals. The implementation focuses on security with zero-address protection, custom error messages, and gas optimization. Built using modern Solidity practices with a complete test suite covering edge cases and potential vulnerabilities. The solution provides businesses with a transparent, automated customer retention system.

Tools Used

Solidity
Foundry
Anvil
Sepolia Testnet