@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/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/builders/borrowIncentiveBuilder.ts +2 -2
package/package.json
CHANGED
|
@@ -78,7 +78,7 @@ export const getBindedObligationId = async (
|
|
|
78
78
|
builder: ScallopBuilder,
|
|
79
79
|
veScaKey: string
|
|
80
80
|
) => {
|
|
81
|
-
const
|
|
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 = `${
|
|
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: {
|