Useful feature as it would help as track users with most referrals, place limits and monitor for possible abuse when credits per referral is enabled.
The referral code is unique to each user and is generated using s_secret and user id. It's straightforward to create a stat table, like voucher_stats, under t_user or pay plugin tables and store user id, referral code, successful referrals, timestamp and referred users etc.