ERC20 Token with Direct Referral Rewards

Заказчик: AI | Опубликовано: 16.10.2025

I want an ERC-20 token deployed on Ethereum that behaves much like the tokens you can spin up on Coin Tool today—auto-redistributing fees to holders, feeding the marketing wallet, and adding liquidity—but with one extra, critical twist: a built-in referral reward. Here is the workflow I need encoded in the contract: • Anyone can generate a personal referral code (or link) tied to their wallet address. • When a new buyer purchases through that code, the contract must instantly divert a fixed, configurable percentage of the purchase value (pegged to USD at the time of the swap) to the referrer’s wallet, paid out in ETH. • The usual buy/sell tax is then split: one slice as dividends to all holders, another slice to the marketing wallet, and the remainder to liquidity—exactly as Coin Tool tokens already handle it. Key expectations – Solidity contract with clearly exposed variables for fee percentages, referral eligibility window, max wallet, etc. – Gas-efficient, security-audited logic (OpenZeppelin libraries welcome). – Scripts for deployment and verification on Etherscan. – A quick demo on a public testnet showing the referral payment firing correctly. I only need to see your experience working with fee-on-transfer ERC-20 tokens or similar reward mechanics; past links to verified contracts are perfect. If you have built anything using the Coin Tool template, that is a plus. Once the contract looks solid on testnet, I will supply final parameters and wallet addresses for mainnet deployment.