@kamino-finance/klend-sdk 3.2.22 → 3.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -880,7 +880,7 @@ class KaminoAction {
880
880
  }
881
881
  addSupportIxsWithoutInitObligation(action_1, includeAtaIxns_1) {
882
882
  return __awaiter(this, arguments, void 0, function* (action, includeAtaIxns, addAsSupportIx = 'setup', requestElevationGroup = false, addInitObligationForFarm = false, isClosingPosition = false, twoTokenAction = false, overrideElevationGroupRequest) {
883
- var _a, _b, _c;
883
+ var _a, _b, _c, _d;
884
884
  // TODO: why are we not doing this first?
885
885
  if (includeAtaIxns) {
886
886
  yield this.addAtaIxs(action);
@@ -1055,7 +1055,7 @@ class KaminoAction {
1055
1055
  }
1056
1056
  }
1057
1057
  console.log('newElevationGroup', newElevationGroup, addAsSupportIx);
1058
- if (newElevationGroup >= 0) {
1058
+ if (newElevationGroup >= 0 && newElevationGroup !== ((_c = this.obligation) === null || _c === void 0 ? void 0 : _c.state.elevationGroup)) {
1059
1059
  this.addRequestElevationIx(newElevationGroup, addAsSupportIx);
1060
1060
  this.addRefreshReserveIxs(allReservesExcludingCurrent, addAsSupportIx);
1061
1061
  this.addRefreshReserveIxs(currentReserveAddresses.toArray(), addAsSupportIx);
@@ -1067,7 +1067,7 @@ class KaminoAction {
1067
1067
  }
1068
1068
  else if (action === 'deposit' &&
1069
1069
  overrideElevationGroupRequest !== undefined &&
1070
- overrideElevationGroupRequest !== ((_c = this.obligation) === null || _c === void 0 ? void 0 : _c.state.elevationGroup)) {
1070
+ overrideElevationGroupRequest !== ((_d = this.obligation) === null || _d === void 0 ? void 0 : _d.state.elevationGroup)) {
1071
1071
  const addAsSupportIx = 'setup';
1072
1072
  console.log('Deposit: Requesting elevation group', overrideElevationGroupRequest);
1073
1073
  this.addRequestElevationIx(overrideElevationGroupRequest, addAsSupportIx);