trigger on userpoints and make generic for invite and referral rewards