I'm building a DApp in solidity where I want give a bonus to the users that wants promote it. My problem is that, to use my Referral system, now I need to insert manually the wallet address of the person who promote the DApp to send him the bonuses. My expextation is to build a Referral System like the steps listed below:
1) Referral link creation sumbitting the opreration into the smart contract;
2) Smart Contract will generate a unique referral link composed like the example: https://DApp.org/"wallet address"
3) Sharing the link, the players who will click on, will be automatically added, by the Smart Contract, to the frineds list.
Anyone can help me??