@haven-fi/solauto-sdk 1.0.252 → 1.0.254
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/clients/solautoClient.d.ts.map +1 -1
- package/dist/clients/solautoClient.js +4 -3
- package/dist/transactions/transactionsManager.d.ts.map +1 -1
- package/dist/transactions/transactionsManager.js +4 -3
- package/dist/utils/solauto/rebalanceUtils.js +1 -1
- package/package.json +1 -1
- package/src/clients/solautoClient.ts +7 -3
- package/src/transactions/transactionsManager.ts +4 -3
- package/src/utils/solauto/rebalanceUtils.ts +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"solautoClient.d.ts","sourceRoot":"","sources":["../../src/clients/solautoClient.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAA6B,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EACL,MAAM,EACN,kBAAkB,EAMnB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,yBAAyB,EACzB,gCAAgC,EAEhC,sBAAsB,EAKvB,MAAM,cAAc,CAAC;AAUtB,OAAO,EACL,gBAAgB,EAChB,eAAe,EAChB,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB;IACjE,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,8BAAsB,aAAc,SAAQ,oBAAoB;IACvD,eAAe,CAAC,EAAE,eAAe,CAAC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,eAAe,EAAE,eAAe,EAChC,SAAS,CAAC,EAAE,gBAAgB,EAC5B,2BAA2B,CAAC,EAAE,MAAM,GACnC,kBAAkB;IAEf,qBAAqB,IAAI,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;CAalE"}
|
@@ -97,6 +97,9 @@ class SolautoClient extends referralStateManager_1.ReferralStateManager {
|
|
97
97
|
];
|
98
98
|
}
|
99
99
|
lutAccountsToAdd() {
|
100
|
+
const newReferral = this.referredBy &&
|
101
|
+
(!this.referralStateData ||
|
102
|
+
(0, umi_web3js_adapters_1.toWeb3JsPublicKey)(this.referralStateData.referredByState).equals(web3_js_1.PublicKey.default));
|
100
103
|
return [
|
101
104
|
this.authority,
|
102
105
|
...((0, umi_web3js_adapters_1.toWeb3JsPublicKey)(this.signer.publicKey).equals(this.authority)
|
@@ -111,9 +114,7 @@ class SolautoClient extends referralStateManager_1.ReferralStateManager {
|
|
111
114
|
this.referralState,
|
112
115
|
...(this.referredBySupplyTa() ? [this.referredBySupplyTa()] : []),
|
113
116
|
...(this.referredByDebtTa() ? [this.referredByDebtTa()] : []),
|
114
|
-
...(this.referredBy
|
115
|
-
? [this.referredBy]
|
116
|
-
: []),
|
117
|
+
...(newReferral ? [this.referredBy] : []), // Minimizes risk of exceeding tx size limit on next tx
|
117
118
|
];
|
118
119
|
}
|
119
120
|
async fetchExistingAuthorityLutAccounts() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transactionsManager.d.ts","sourceRoot":"","sources":["../../src/transactions/transactionsManager.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAKzD,OAAO,EACL,aAAa,EAEd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,kBAAkB,EAElB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,oBAAoB,EAAa,M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AK,EAAE,eAAe,EAAE,GACvB,OAAO,CAAC,0BAA0B,CAAC;YA+BxB,qBAAqB;YAiDrB,cAAc;YAyBd,eAAe;CAkD9B"}
|
@@ -239,8 +239,8 @@ class TransactionsManager {
|
|
239
239
|
this.updateStatus(itemSet.name(), TransactionStatus.Queued, 0);
|
240
240
|
});
|
241
241
|
}
|
242
|
-
async updateLut(tx) {
|
243
|
-
const updateLutTxName = "create lookup table
|
242
|
+
async updateLut(tx, newLut) {
|
243
|
+
const updateLutTxName = `${newLut ? "create" : "update"} lookup table`;
|
244
244
|
await (0, generalUtils_1.retryWithExponentialBackoff)(async (attemptNum, prevError) => await this.sendTransaction(tx, updateLutTxName, attemptNum, this.getUpdatedPriorityFeeSetting(prevError)), 3, 150, this.errorsToThrow);
|
245
245
|
}
|
246
246
|
async clientSend(transactions) {
|
@@ -260,8 +260,9 @@ class TransactionsManager {
|
|
260
260
|
}, 0);
|
261
261
|
isolatedLutTx = Boolean(newAccountsUsage);
|
262
262
|
}
|
263
|
+
console.log(updateLookupTable?.accountsToAdd.map(x => x.toString()));
|
263
264
|
if (updateLookupTable && isolatedLutTx) {
|
264
|
-
await this.updateLut(updateLookupTable.tx);
|
265
|
+
await this.updateLut(updateLookupTable.tx, updateLookupTable.new);
|
265
266
|
}
|
266
267
|
this.lookupTables.defaultLuts = client.defaultLookupTables();
|
267
268
|
if (!items[0].initialized || (updateLookupTable && isolatedLutTx)) {
|
@@ -150,7 +150,7 @@ function getJupSwapRebalanceDetails(client, values, targetLiqUtilizationRateBps,
|
|
150
150
|
? output.amountUsed.baseUnit +
|
151
151
|
BigInt(Math.round(Number(output.amountUsed.baseUnit) *
|
152
152
|
// Add this small percentage to account for the APR on the debt between now and the transaction
|
153
|
-
0.
|
153
|
+
0.0001))
|
154
154
|
: (0, numberUtils_1.toBaseUnit)(usdToSwap / (0, generalUtils_2.safeGetPrice)(output.mint), output.decimals);
|
155
155
|
const exactOut = targetLiqUtilizationRateBps === 0 || values.repayingCloseToMaxLtv;
|
156
156
|
const exactIn = !exactOut;
|
package/package.json
CHANGED
@@ -216,6 +216,12 @@ export abstract class SolautoClient extends ReferralStateManager {
|
|
216
216
|
}
|
217
217
|
|
218
218
|
lutAccountsToAdd(): PublicKey[] {
|
219
|
+
const newReferral =
|
220
|
+
this.referredBy &&
|
221
|
+
(!this.referralStateData ||
|
222
|
+
toWeb3JsPublicKey(this.referralStateData.referredByState).equals(
|
223
|
+
PublicKey.default
|
224
|
+
));
|
219
225
|
return [
|
220
226
|
this.authority,
|
221
227
|
...(toWeb3JsPublicKey(this.signer.publicKey).equals(this.authority)
|
@@ -230,9 +236,7 @@ export abstract class SolautoClient extends ReferralStateManager {
|
|
230
236
|
this.referralState,
|
231
237
|
...(this.referredBySupplyTa() ? [this.referredBySupplyTa()!] : []),
|
232
238
|
...(this.referredByDebtTa() ? [this.referredByDebtTa()!] : []),
|
233
|
-
...(this.referredBy
|
234
|
-
? [this.referredBy]
|
235
|
-
: []),
|
239
|
+
...(newReferral ? [this.referredBy!] : []), // Minimizes risk of exceeding tx size limit on next tx
|
236
240
|
];
|
237
241
|
}
|
238
242
|
|
@@ -342,8 +342,8 @@ export class TransactionsManager {
|
|
342
342
|
});
|
343
343
|
}
|
344
344
|
|
345
|
-
private async updateLut(tx: TransactionBuilder) {
|
346
|
-
const updateLutTxName = "create lookup table
|
345
|
+
private async updateLut(tx: TransactionBuilder, newLut: boolean) {
|
346
|
+
const updateLutTxName = `${newLut ? "create" : "update"} lookup table`;
|
347
347
|
await retryWithExponentialBackoff(
|
348
348
|
async (attemptNum, prevError) =>
|
349
349
|
await this.sendTransaction(
|
@@ -383,8 +383,9 @@ export class TransactionsManager {
|
|
383
383
|
}, 0);
|
384
384
|
isolatedLutTx = Boolean(newAccountsUsage);
|
385
385
|
}
|
386
|
+
console.log(updateLookupTable?.accountsToAdd.map(x => x.toString()));
|
386
387
|
if (updateLookupTable && isolatedLutTx) {
|
387
|
-
await this.updateLut(updateLookupTable.tx);
|
388
|
+
await this.updateLut(updateLookupTable.tx, updateLookupTable.new);
|
388
389
|
}
|
389
390
|
this.lookupTables.defaultLuts = client.defaultLookupTables();
|
390
391
|
|
@@ -325,7 +325,7 @@ export function getJupSwapRebalanceDetails(
|
|
325
325
|
Math.round(
|
326
326
|
Number(output.amountUsed.baseUnit) *
|
327
327
|
// Add this small percentage to account for the APR on the debt between now and the transaction
|
328
|
-
0.
|
328
|
+
0.0001
|
329
329
|
)
|
330
330
|
)
|
331
331
|
: toBaseUnit(usdToSwap / safeGetPrice(output.mint)!, output.decimals);
|