If a person is referred by more than 1 referrer, the credit would go to the person whose referral link is used by the referred person at the time of signing up for the product.