Recently, I was tasked with building a referral system as a feature in an e-commerce application I was working on. I thought about different scenarios...