@haven-fi/solauto-sdk 1.0.291 → 1.0.293
Sign up to get free protection for your applications and to get access to all the features.
@@ -234,7 +234,7 @@ class TransactionsManager {
|
|
234
234
|
getUpdatedPriorityFeeSetting(prevError, attemptNum) {
|
235
235
|
if (prevError instanceof web3_js_1.TransactionExpiredBlockheightExceededError) {
|
236
236
|
const currIdx = types_1.priorityFeeSettingValues.indexOf(this.priorityFeeSetting);
|
237
|
-
return types_1.priorityFeeSettingValues[Math.min(types_1.priorityFeeSettingValues.length - 1, currIdx +
|
237
|
+
return types_1.priorityFeeSettingValues[Math.min(types_1.priorityFeeSettingValues.length - 1, currIdx + Math.floor(attemptNum / 2))];
|
238
238
|
}
|
239
239
|
return this.priorityFeeSetting;
|
240
240
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generalUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/solauto/generalUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAGL,OAAO,EAEP,GAAG,EACJ,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,kBAAkB,EAClB,WAAW,EACX,kBAAkB,EAElB,aAAa,EACb,YAAY,EACZ,yBAAyB,EACzB,gCAAgC,EAChC,SAAS,EAMV,MAAM,iBAAiB,CAAC;AAkBzB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAczE;AAgBD,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,kBAAkB,GAC7B,MAAM,CAKR;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,kBAAkB,EAC9B,eAAe,EAAE,MAAM,GACtB,OAAO,CAET;AAED,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,kBAAkB,EAC9B,oBAAoB,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edPositions(umi, authority, positionTypeFilter) {
|
|
165
165
|
]));
|
166
166
|
let tokens;
|
167
167
|
if (position.position.lendingPlatform === generated_1.LendingPlatform.Marginfi) {
|
168
|
-
console.log(position.position.protocolSupplyAccount.toString());
|
169
|
-
console.log(position.position.protocolDebtAccount.toString());
|
170
168
|
tokens = [
|
171
169
|
(0, marginfiUtils_1.findMarginfiAccounts)((0, umi_web3js_adapters_1.toWeb3JsPublicKey)(position.position.protocolSupplyAccount)).mint,
|
172
170
|
(0, marginfiUtils_1.findMarginfiAccounts)((0, umi_web3js_adapters_1.toWeb3JsPublicKey)(position.position.protocolDebtAccount)).mint,
|
package/package.json
CHANGED
@@ -264,9 +264,6 @@ export async function getSolautoManagedPositions(
|
|
264
264
|
|
265
265
|
let tokens: [PublicKey, PublicKey] | undefined;
|
266
266
|
if (position.position.lendingPlatform === LendingPlatform.Marginfi) {
|
267
|
-
console.log(position.position.protocolSupplyAccount.toString());
|
268
|
-
console.log(position.position.protocolDebtAccount.toString());
|
269
|
-
|
270
267
|
tokens = [
|
271
268
|
findMarginfiAccounts(
|
272
269
|
toWeb3JsPublicKey(position.position.protocolSupplyAccount)
|