@scallop-io/sui-scallop-sdk 0.44.21 → 0.44.22

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": "0.44.21",
3
+ "version": "0.44.22",
4
4
  "description": "Typescript sdk for interacting with Scallop contract on SUI",
5
5
  "keywords": [
6
6
  "sui",
@@ -78,7 +78,7 @@ export const getBindedObligationId = async (
78
78
  builder: ScallopBuilder,
79
79
  veScaKey: string
80
80
  ) => {
81
- const borrowIncentivePkgId = builder.address.get('borrowIncentive.id');
81
+ const borrowIncentiveObjectId = builder.address.get('borrowIncentive.object');
82
82
  const incentivePoolsId = builder.address.get(
83
83
  'borrowIncentive.incentivePools'
84
84
  );
@@ -103,7 +103,7 @@ export const getBindedObligationId = async (
103
103
  .id as string;
104
104
 
105
105
  // check if veSca is inside the bind table
106
- const keyType = `${borrowIncentivePkgId}::typed_id::TypedID<${veScaPkgId}::ve_sca::VeScaKey>`;
106
+ const keyType = `${borrowIncentiveObjectId}::typed_id::TypedID<${veScaPkgId}::ve_sca::VeScaKey>`;
107
107
  const veScaBindTableResponse = await client.getDynamicFieldObject({
108
108
  parentId: veScaBindTableId,
109
109
  name: {