Cashback & Gas Sponsorship Infrastructure for Web3

ETH Cash Back is a plug-and-play infrastructure layer that allows dApps to:
- 💰 Sponsor gas fees for users
- 🔄 Return 2-10% ETH cashback per transaction
- 📊 Apply usage limits per user (configurable)
- ⚙️ Configure cashback rules without custom logic
Transform gas fees from a cost into a reward experience.
┌─────────────────────────────────────────────┐
│ User Browser │
│ (Frontend - Lovable) │
└─────────────────┬───────────────────────────┘
│ wagmi/viem
▼
┌─────────────────────────────────────────────┐
│ Ethereum Sepolia Network │
│ ┌───────────────────────────────────────┐ │
│ │ CashbackManager Contract │ │
│ │ • Rule Storage │ │
│ │ • Usage Tracking │ │
│ │ • Cashback Distribution │ │
│ └───────────────────────────────────────┘ │
└─────────────────────────────────────────────┘
eth-cash-back/
├── .agent/ # AI agent configurations
├── .docs/ # Project documentation
│ ├── .foundation/ # Project vision & goals
│ ├── .project/ # Technical specifications
│ ├── .rules/ # Code standards
│ ├── .scope/ # MVP boundaries
│ └── .logs/ # Completion logs
├── contracts/ # Smart contracts (Hardhat)
└── README.md # This file
- Solidity ^0.8.20
- Hardhat 2.x
- OpenZeppelin 5.x (ReentrancyGuard, Pausable)
- Lovable Framework
- wagmi 2.x + viem 2.x
- React 18.x
cd contracts
npm install
npx hardhat compile
npx hardhat test
cp .env.example .env
# Configure your RPC URL and private key
npx hardhat run scripts/deploy.ts --network sepolia
| Metric |
Coverage |
| Statements |
98.08% |
| Branches |
89.39% |
| Functions |
100% |
| Lines |
98.33% |
MIT License - see LICENSE for details.
| Role |
Name |
| Project Owner, Full Stack Developer |
Bernie |
| Development Supporter |
Canh |