@scallop-io/sui-scallop-sdk 2.0.13-merge-split-ve-sca-alpha.2 → 2.0.13-merge-split-ve-sca-alpha.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scallop-io/sui-scallop-sdk",
3
- "version": "2.0.13-merge-split-ve-sca-alpha.2",
3
+ "version": "2.0.13-merge-split-ve-sca-alpha.3",
4
4
  "description": "Typescript sdk for interacting with Scallop contract on SUI",
5
5
  "keywords": [
6
6
  "sui",
@@ -122,7 +122,7 @@ const generateBorrowIncentiveNormalMethod: GenerateBorrowIncentiveNormalMethod =
122
122
  stakeObligationWithVesca: (obligationId, obligationKey, veScaKey) => {
123
123
  builder.moveCall(
124
124
  txBlock,
125
- `${borrowIncentiveIds.borrowIncentivePkg}::user::stake_with_ve_sca`,
125
+ `${borrowIncentiveIds.borrowIncentivePkg}::user::stake_with_ve_sca_v2`,
126
126
  [
127
127
  borrowIncentiveIds.config,
128
128
  borrowIncentiveIds.incentivePools,
@@ -134,6 +134,8 @@ const generateBorrowIncentiveNormalMethod: GenerateBorrowIncentiveNormalMethod =
134
134
  veScaIds.treasury,
135
135
  veScaIds.table,
136
136
  veScaKey,
137
+ builder.address.get('vesca.subsTable'),
138
+ builder.address.get('vesca.subsWhitelist'),
137
139
  clockObjectRef,
138
140
  ],
139
141
  []
@@ -142,13 +144,15 @@ const generateBorrowIncentiveNormalMethod: GenerateBorrowIncentiveNormalMethod =
142
144
  unstakeObligation: (obligationId, obligationKey) => {
143
145
  builder.moveCall(
144
146
  txBlock,
145
- `${borrowIncentiveIds.borrowIncentivePkg}::user::unstake`,
147
+ `${borrowIncentiveIds.borrowIncentivePkg}::user::unstake_v2`,
146
148
  [
147
149
  borrowIncentiveIds.config,
148
150
  borrowIncentiveIds.incentivePools,
149
151
  borrowIncentiveIds.incentiveAccounts,
150
152
  obligationKey,
151
153
  obligationId,
154
+ builder.address.get('vesca.subsTable'),
155
+ builder.address.get('vesca.subsWhitelist'),
152
156
  clockObjectRef,
153
157
  ]
154
158
  );
@@ -220,7 +224,7 @@ const generateBorrowIncentiveQuickMethod: GenerateBorrowIncentiveQuickMethod =
220
224
  (txn.target ===
221
225
  `${OLD_BORROW_INCENTIVE_PROTOCOL_ID}::user::unstake` ||
222
226
  txn.target ===
223
- `${builder.address.get('borrowIncentive.id')}::user::unstake`)
227
+ `${builder.address.get('borrowIncentive.id')}::user::unstake_v2`)
224
228
  );
225
229
 
226
230
  if (!obligationLocked || unstakeObligationBeforeStake) {
@@ -250,7 +254,7 @@ const generateBorrowIncentiveQuickMethod: GenerateBorrowIncentiveQuickMethod =
250
254
  (txn.target ===
251
255
  `${OLD_BORROW_INCENTIVE_PROTOCOL_ID}::user::unstake` ||
252
256
  txn.target ===
253
- `${builder.address.get('borrowIncentive.id')}::user::unstake`)
257
+ `${builder.address.get('borrowIncentive.id')}::user::unstake_v2`)
254
258
  );
255
259
 
256
260
  if (!obligationLocked || unstakeObligationBeforeStake) {