@@ -50,14 +50,17 @@ pub enum TransferFeeInstruction {
50
50
} ,
51
51
/// Transfer, providing expected mint information and fees
52
52
///
53
+ /// This instruction succeeds if the mint has no configured transfer fee
54
+ /// and the provided fee is 0. This allows applications to use
55
+ /// `TransferCheckedWithFee` with any mint.
56
+ ///
53
57
/// Accounts expected by this instruction:
54
58
///
55
59
/// * Single owner/delegate
56
- /// 0. `[writable]` The source account. Must include the
60
+ /// 0. `[writable]` The source account. May include the
57
61
/// `TransferFeeAmount` extension.
58
- /// 1. `[]` The token mint. Must include the `TransferFeeConfig`
59
- /// extension.
60
- /// 2. `[writable]` The destination account. Must include the
62
+ /// 1. `[]` The token mint. May include the `TransferFeeConfig` extension.
63
+ /// 2. `[writable]` The destination account. May include the
61
64
/// `TransferFeeAmount` extension.
62
65
/// 3. `[signer]` The source account's owner/delegate.
63
66
///
@@ -73,8 +76,8 @@ pub enum TransferFeeInstruction {
73
76
/// Expected number of base 10 digits to the right of the decimal place.
74
77
decimals : u8 ,
75
78
/// Expected fee assessed on this transfer, calculated off-chain based
76
- /// on the transfer_fee_basis_points and maximum_fee of the
77
- /// mint.
79
+ /// on the transfer_fee_basis_points and maximum_fee of the mint. May
80
+ /// be 0 for a mint without a configured transfer fee .
78
81
fee : u64 ,
79
82
} ,
80
83
/// Transfer all withheld tokens in the mint to an account. Signed by the
0 commit comments