@haven-fi/solauto-sdk 1.0.99 → 1.0.100
Sign up to get free protection for your applications and to get access to all the features.
@@ -47,9 +47,9 @@ function getWSolUsage(client, solautoActions, initiatingDcaIn, cancellingDcaIn)
|
|
47
47
|
}
|
48
48
|
async function transactionChoresBefore(client, accountsGettingCreated, solautoActions, initiatingDcaIn) {
|
49
49
|
let chores = (0, umi_1.transactionBuilder)();
|
50
|
-
if (client.referralStateManager.
|
50
|
+
if (client.referralStateManager.referralStateData === null ||
|
51
51
|
(client.referredByState !== undefined &&
|
52
|
-
client.referralStateManager.referralStateData
|
52
|
+
client.referralStateManager.referralStateData?.referredByState ===
|
53
53
|
(0, umi_1.publicKey)(web3_js_1.PublicKey.default)) ||
|
54
54
|
(client.authorityLutAddress !== undefined &&
|
55
55
|
client.referralStateManager.referralStateData.lookupTable ==
|
package/package.json
CHANGED
@@ -110,9 +110,9 @@ async function transactionChoresBefore(
|
|
110
110
|
let chores = transactionBuilder();
|
111
111
|
|
112
112
|
if (
|
113
|
-
client.referralStateManager.
|
113
|
+
client.referralStateManager.referralStateData === null ||
|
114
114
|
(client.referredByState !== undefined &&
|
115
|
-
client.referralStateManager.referralStateData
|
115
|
+
client.referralStateManager.referralStateData?.referredByState ===
|
116
116
|
publicKey(PublicKey.default)) ||
|
117
117
|
(client.authorityLutAddress !== undefined &&
|
118
118
|
client.referralStateManager.referralStateData!.lookupTable ==
|