@scallop-io/sui-scallop-sdk 2.3.12 → 2.3.14-rc.1
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.d.mts +3 -6
- package/dist/index.d.ts +3 -6
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/models/scallopUtils.ts +9 -0
- package/src/types/constant/common.ts +1 -0
- package/src/types/query/portfolio.ts +1 -6
package/package.json
CHANGED
|
@@ -75,6 +75,10 @@ class ScallopUtils implements ScallopUtilsInterface {
|
|
|
75
75
|
return this.constants.whitelist.wormhole.has(coinName);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
isLayerZeroAsset(coinName: any) {
|
|
79
|
+
return this.constants.whitelist.layerZero.has(coinName);
|
|
80
|
+
}
|
|
81
|
+
|
|
78
82
|
isMarketCoin(coinName: string) {
|
|
79
83
|
const assetCoinName = coinName.slice(1).toLowerCase() as string;
|
|
80
84
|
return (
|
|
@@ -258,6 +262,11 @@ class ScallopUtils implements ScallopUtilsInterface {
|
|
|
258
262
|
from: 'Wormhole',
|
|
259
263
|
type: 'Portal from Ethereum',
|
|
260
264
|
};
|
|
265
|
+
} else if (this.isLayerZeroAsset(assetCoinName)) {
|
|
266
|
+
return {
|
|
267
|
+
from: 'LayerZero',
|
|
268
|
+
type: 'Ominchain Fungible Token from LayerZero',
|
|
269
|
+
};
|
|
261
270
|
}
|
|
262
271
|
|
|
263
272
|
return undefined;
|
|
@@ -107,12 +107,7 @@ export type ObligationDebt = {
|
|
|
107
107
|
availableBorrowCoin: number;
|
|
108
108
|
availableRepayAmount: number;
|
|
109
109
|
availableRepayCoin: number;
|
|
110
|
-
rewards:
|
|
111
|
-
boostValue: number;
|
|
112
|
-
maxBoost: number;
|
|
113
|
-
baseRewardApr: number;
|
|
114
|
-
boostedRewardApr: number;
|
|
115
|
-
}[];
|
|
110
|
+
rewards: ObligationBorrowIncentiveReward[];
|
|
116
111
|
};
|
|
117
112
|
|
|
118
113
|
export type ObligationBorrowIncentiveReward = {
|