An implementation of a referral smart contract - Travala.com
Generate booking referrals.
Query order data from Storage
Store referral data to Storage
Update referral data in Storage
Set name using token
Get using token name
Send token ‘%’ based on booking amount data.
Migrate contract to new one.
Destroy contract.
1. User is given referral link to push to their audiance.
2. Once new user joins platform, makes booking and confirm check out, referral is complete.
3. Referral complete - incentive distributed to the referee.