pub fn transfer_referral_code(
ctx: Context<'_, '_, '_, '_, TransferReferralCode<'_>>,
) -> Result<()>
Expand description
Transfer referral code.
§Accounts
See the documentation for the accounts.
§Errors
- The
owner
must be a signer. - The
store
must be properly initialized. - The
user
account must be:- Properly initialized
- Correspond to the
owner
- Different from the
receiver_user
- The
referral_code
account must be:- Properly initialized
- Owned by the
store
- Correspond to the
owner
- The
receiver_user
account must be:- Properly initialized
- Not have an associated referral code