@scallop-io/sui-scallop-sdk 1.4.8 → 1.4.9
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/constants/common.d.ts +6 -6
- package/dist/constants/enum.d.ts +2 -2
- package/dist/constants/poolAddress.d.ts +1 -1
- package/dist/index.js +84 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +84 -38
- package/dist/index.mjs.map +1 -1
- package/dist/models/scallopQuery.d.ts +13 -7
- package/dist/models/scallopUtils.d.ts +2 -2
- package/dist/queries/borrowIncentiveQuery.d.ts +2 -0
- package/dist/queries/coreQuery.d.ts +1 -0
- package/dist/queries/poolAddressesQuery.d.ts +2 -2
- package/dist/queries/portfolioQuery.d.ts +4 -3
- package/dist/queries/priceQuery.d.ts +2 -0
- package/dist/queries/sCoinQuery.d.ts +1 -1
- package/package.json +1 -1
- package/src/constants/coinGecko.ts +1 -0
- package/src/constants/common.ts +4 -1
- package/src/constants/enum.ts +38 -20
- package/src/constants/poolAddress.ts +47 -18
- package/src/constants/pyth.ts +1 -0
- package/src/constants/testAddress.ts +3 -0
- package/src/models/scallop.ts +1 -0
- package/src/models/scallopCache.ts +1 -1
- package/src/queries/poolAddressesQuery.ts +6 -5
|
@@ -89,6 +89,7 @@ export declare class ScallopQuery {
|
|
|
89
89
|
}): Promise<{
|
|
90
90
|
usdc?: import("../types").MarketCollateral | undefined;
|
|
91
91
|
sbeth?: import("../types").MarketCollateral | undefined;
|
|
92
|
+
sbusdt?: import("../types").MarketCollateral | undefined;
|
|
92
93
|
weth?: import("../types").MarketCollateral | undefined;
|
|
93
94
|
wbtc?: import("../types").MarketCollateral | undefined;
|
|
94
95
|
wusdc?: import("../types").MarketCollateral | undefined;
|
|
@@ -300,6 +301,7 @@ export declare class ScallopQuery {
|
|
|
300
301
|
}): Promise<{
|
|
301
302
|
usdc?: import("../types").BorrowIncentivePool | undefined;
|
|
302
303
|
sbeth?: import("../types").BorrowIncentivePool | undefined;
|
|
304
|
+
sbusdt?: import("../types").BorrowIncentivePool | undefined;
|
|
303
305
|
weth?: import("../types").BorrowIncentivePool | undefined;
|
|
304
306
|
wbtc?: import("../types").BorrowIncentivePool | undefined;
|
|
305
307
|
wusdc?: import("../types").BorrowIncentivePool | undefined;
|
|
@@ -326,6 +328,7 @@ export declare class ScallopQuery {
|
|
|
326
328
|
getBorrowIncentiveAccounts(obligationId: string | SuiObjectRef, coinNames?: SupportBorrowIncentiveCoins[]): Promise<{
|
|
327
329
|
usdc?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
328
330
|
sbeth?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
331
|
+
sbusdt?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
329
332
|
weth?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
330
333
|
wbtc?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
331
334
|
wusdc?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
@@ -357,6 +360,7 @@ export declare class ScallopQuery {
|
|
|
357
360
|
}): Promise<{
|
|
358
361
|
usdc?: import("../types").Lending | undefined;
|
|
359
362
|
sbeth?: import("../types").Lending | undefined;
|
|
363
|
+
sbusdt?: import("../types").Lending | undefined;
|
|
360
364
|
weth?: import("../types").Lending | undefined;
|
|
361
365
|
wbtc?: import("../types").Lending | undefined;
|
|
362
366
|
wusdc?: import("../types").Lending | undefined;
|
|
@@ -487,7 +491,7 @@ export declare class ScallopQuery {
|
|
|
487
491
|
* @param ownerAddress - The owner address.
|
|
488
492
|
* @return All market sCoin amounts.
|
|
489
493
|
*/
|
|
490
|
-
getSCoinAmounts(sCoinNames?: SupportSCoin[], ownerAddress?: string): Promise<import("../types").OptionalKeys<Record<"susdc" | "ssbeth" | "sweth" | "swbtc" | "swusdc" | "swusdt" | "ssui" | "swsol" | "scetus" | "safsui" | "shasui" | "svsui" | "ssca" | "sfud" | "sdeep" | "sfdusd", number>>>;
|
|
494
|
+
getSCoinAmounts(sCoinNames?: SupportSCoin[], ownerAddress?: string): Promise<import("../types").OptionalKeys<Record<"susdc" | "ssbeth" | "ssbusdt" | "sweth" | "swbtc" | "swusdc" | "swusdt" | "ssui" | "swsol" | "scetus" | "safsui" | "shasui" | "svsui" | "ssca" | "sfud" | "sdeep" | "sfdusd", number>>>;
|
|
491
495
|
/**
|
|
492
496
|
* Get sCoin amount.
|
|
493
497
|
*
|
|
@@ -502,7 +506,7 @@ export declare class ScallopQuery {
|
|
|
502
506
|
* @returns
|
|
503
507
|
*/
|
|
504
508
|
getSCoinSwapRate(fromSCoin: SupportSCoin, toSCoin: SupportSCoin): Promise<number>;
|
|
505
|
-
getFlashLoanFees(assetCoinNames?: SupportAssetCoins[]): Promise<Record<"usdc" | "sbeth" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd", number>>;
|
|
509
|
+
getFlashLoanFees(assetCoinNames?: SupportAssetCoins[]): Promise<Record<"usdc" | "sbeth" | "sbusdt" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd", number>>;
|
|
506
510
|
/**
|
|
507
511
|
* Get supply limit of lending pool
|
|
508
512
|
*/
|
|
@@ -535,6 +539,7 @@ export declare class ScallopQuery {
|
|
|
535
539
|
}): Promise<{
|
|
536
540
|
susdc?: number | undefined;
|
|
537
541
|
ssbeth?: number | undefined;
|
|
542
|
+
ssbusdt?: number | undefined;
|
|
538
543
|
sweth?: number | undefined;
|
|
539
544
|
swbtc?: number | undefined;
|
|
540
545
|
swusdc?: number | undefined;
|
|
@@ -551,6 +556,7 @@ export declare class ScallopQuery {
|
|
|
551
556
|
sfdusd?: number | undefined;
|
|
552
557
|
usdc?: number | undefined;
|
|
553
558
|
sbeth?: number | undefined;
|
|
559
|
+
sbusdt?: number | undefined;
|
|
554
560
|
weth?: number | undefined;
|
|
555
561
|
wbtc?: number | undefined;
|
|
556
562
|
wusdc?: number | undefined;
|
|
@@ -572,7 +578,7 @@ export declare class ScallopQuery {
|
|
|
572
578
|
* Query all address (lending pool, collateral pool, borrow dynamics, interest models, etc.) of all pool
|
|
573
579
|
* @returns
|
|
574
580
|
*/
|
|
575
|
-
getPoolAddresses(): Promise<import("../types").OptionalKeys<Record<"usdc" | "sbeth" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd", {
|
|
581
|
+
getPoolAddresses(): Promise<import("../types").OptionalKeys<Record<"usdc" | "sbeth" | "sbusdt" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd", {
|
|
576
582
|
lendingPoolAddress?: string;
|
|
577
583
|
collateralPoolAddress?: string;
|
|
578
584
|
borrowDynamic?: string;
|
|
@@ -586,7 +592,7 @@ export declare class ScallopQuery {
|
|
|
586
592
|
supplyLimitKey?: string;
|
|
587
593
|
borrowLimitKey?: string;
|
|
588
594
|
isolatedAssetKey?: string;
|
|
589
|
-
|
|
595
|
+
coinMetadataId?: string;
|
|
590
596
|
borrowIncentivePoolId?: string;
|
|
591
597
|
coinType?: string;
|
|
592
598
|
}>>>;
|
|
@@ -602,7 +608,7 @@ export declare class ScallopQuery {
|
|
|
602
608
|
suppliedCoin: number;
|
|
603
609
|
suppliedValue: number;
|
|
604
610
|
stakedCoin: number;
|
|
605
|
-
coinName: "usdc" | "sbeth" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd";
|
|
611
|
+
coinName: "usdc" | "sbeth" | "sbusdt" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd";
|
|
606
612
|
symbol: string;
|
|
607
613
|
coinType: string;
|
|
608
614
|
coinPrice: number;
|
|
@@ -619,7 +625,7 @@ export declare class ScallopQuery {
|
|
|
619
625
|
availableCollateralInUsd: number;
|
|
620
626
|
totalUnhealthyCollateralInUsd: number;
|
|
621
627
|
borrowedPools: {
|
|
622
|
-
coinName: "usdc" | "sbeth" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd";
|
|
628
|
+
coinName: "usdc" | "sbeth" | "sbusdt" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd";
|
|
623
629
|
symbol: string;
|
|
624
630
|
coinDecimals: number;
|
|
625
631
|
coinType: string;
|
|
@@ -629,7 +635,7 @@ export declare class ScallopQuery {
|
|
|
629
635
|
borrowApr: number | undefined;
|
|
630
636
|
borrowApy: number | undefined;
|
|
631
637
|
incentiveInfos: {
|
|
632
|
-
coinName: "usdc" | "sbeth" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd" | "susdc" | "ssbeth" | "sweth" | "swbtc" | "swusdc" | "swusdt" | "ssui" | "swsol" | "scetus" | "safsui" | "shasui" | "svsui" | "ssca" | "sfud" | "sdeep" | "sfdusd";
|
|
638
|
+
coinName: "usdc" | "sbeth" | "sbusdt" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd" | "susdc" | "ssbeth" | "ssbusdt" | "sweth" | "swbtc" | "swusdc" | "swusdt" | "ssui" | "swsol" | "scetus" | "safsui" | "shasui" | "svsui" | "ssca" | "sfud" | "sdeep" | "sfdusd";
|
|
633
639
|
symbol: string;
|
|
634
640
|
coinType: string;
|
|
635
641
|
incentiveApr: number;
|
|
@@ -65,7 +65,7 @@ export declare class ScallopUtils {
|
|
|
65
65
|
* if no `scallop_...` is encountered, return coinName
|
|
66
66
|
* @return sCoin name
|
|
67
67
|
*/
|
|
68
|
-
parseSCoinTypeNameToMarketCoinName(coinName: string): "susdc" | "ssbeth" | "sweth" | "swbtc" | "swusdc" | "swusdt" | "ssui" | "swsol" | "scetus" | "safsui" | "shasui" | "svsui" | "ssca" | "sfud" | "sdeep" | "sfdusd";
|
|
68
|
+
parseSCoinTypeNameToMarketCoinName(coinName: string): "susdc" | "ssbeth" | "ssbusdt" | "sweth" | "swbtc" | "swusdc" | "swusdt" | "ssui" | "swsol" | "scetus" | "safsui" | "shasui" | "svsui" | "ssca" | "sfud" | "sdeep" | "sfdusd";
|
|
69
69
|
/**
|
|
70
70
|
* Convert sCoin name into sCoin type
|
|
71
71
|
* @param sCoinName
|
|
@@ -77,7 +77,7 @@ export declare class ScallopUtils {
|
|
|
77
77
|
* @param sCoinType
|
|
78
78
|
* @returns sCoin name
|
|
79
79
|
*/
|
|
80
|
-
parseSCoinNameFromType(sCoinType: string): "susdc" | "ssbeth" | "sweth" | "swbtc" | "swusdc" | "swusdt" | "ssui" | "swsol" | "scetus" | "safsui" | "shasui" | "svsui" | "ssca" | "sfud" | "sdeep" | "sfdusd";
|
|
80
|
+
parseSCoinNameFromType(sCoinType: string): "susdc" | "ssbeth" | "ssbusdt" | "sweth" | "swbtc" | "swusdc" | "swusdt" | "ssui" | "swsol" | "scetus" | "safsui" | "shasui" | "svsui" | "ssca" | "sfud" | "sdeep" | "sfdusd";
|
|
81
81
|
/**
|
|
82
82
|
* Convert sCoin name into its underlying coin type
|
|
83
83
|
* @param sCoinName
|
|
@@ -18,6 +18,7 @@ export declare const queryBorrowIncentivePools: (address: ScallopAddress) => Pro
|
|
|
18
18
|
export declare const getBorrowIncentivePools: (query: ScallopQuery, borrowIncentiveCoinNames?: SupportBorrowIncentiveCoins[], indexer?: boolean, marketPools?: MarketPools, coinPrices?: CoinPrices) => Promise<{
|
|
19
19
|
usdc?: BorrowIncentivePool | undefined;
|
|
20
20
|
sbeth?: BorrowIncentivePool | undefined;
|
|
21
|
+
sbusdt?: BorrowIncentivePool | undefined;
|
|
21
22
|
weth?: BorrowIncentivePool | undefined;
|
|
22
23
|
wbtc?: BorrowIncentivePool | undefined;
|
|
23
24
|
wusdc?: BorrowIncentivePool | undefined;
|
|
@@ -46,6 +47,7 @@ export declare const queryBorrowIncentiveAccounts: ({ utils, }: {
|
|
|
46
47
|
}, obligationId: string | SuiObjectRef, borrowIncentiveCoinNames?: SupportBorrowIncentiveCoins[]) => Promise<{
|
|
47
48
|
usdc?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
48
49
|
sbeth?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
50
|
+
sbusdt?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
49
51
|
weth?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
50
52
|
wbtc?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
51
53
|
wusdc?: import("../types").ParsedBorrowIncentiveAccountData | undefined;
|
|
@@ -68,6 +68,7 @@ export declare const getMarketPool: (query: ScallopQuery, poolCoinName: SupportP
|
|
|
68
68
|
export declare const getMarketCollaterals: (query: ScallopQuery, collateralCoinNames?: SupportCollateralCoins[], indexer?: boolean) => Promise<{
|
|
69
69
|
usdc?: MarketCollateral | undefined;
|
|
70
70
|
sbeth?: MarketCollateral | undefined;
|
|
71
|
+
sbusdt?: MarketCollateral | undefined;
|
|
71
72
|
weth?: MarketCollateral | undefined;
|
|
72
73
|
wbtc?: MarketCollateral | undefined;
|
|
73
74
|
wusdc?: MarketCollateral | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ScallopQuery } from 'src/models';
|
|
2
2
|
import { OptionalKeys } from 'src/types';
|
|
3
|
-
export declare const getAllAddresses: (query: ScallopQuery) => Promise<OptionalKeys<Record<"usdc" | "sbeth" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd", {
|
|
3
|
+
export declare const getAllAddresses: (query: ScallopQuery) => Promise<OptionalKeys<Record<"usdc" | "sbeth" | "sbusdt" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd", {
|
|
4
4
|
lendingPoolAddress?: string;
|
|
5
5
|
collateralPoolAddress?: string;
|
|
6
6
|
borrowDynamic?: string;
|
|
@@ -14,7 +14,7 @@ export declare const getAllAddresses: (query: ScallopQuery) => Promise<OptionalK
|
|
|
14
14
|
supplyLimitKey?: string;
|
|
15
15
|
borrowLimitKey?: string;
|
|
16
16
|
isolatedAssetKey?: string;
|
|
17
|
-
|
|
17
|
+
coinMetadataId?: string;
|
|
18
18
|
borrowIncentivePoolId?: string;
|
|
19
19
|
coinType?: string;
|
|
20
20
|
}>>>;
|
|
@@ -13,6 +13,7 @@ import { SuiObjectRef } from '@mysten/sui/client';
|
|
|
13
13
|
export declare const getLendings: (query: ScallopQuery, poolCoinNames?: SupportPoolCoins[], ownerAddress?: string, marketPools?: MarketPools, coinPrices?: CoinPrices, indexer?: boolean) => Promise<{
|
|
14
14
|
usdc?: Lending | undefined;
|
|
15
15
|
sbeth?: Lending | undefined;
|
|
16
|
+
sbusdt?: Lending | undefined;
|
|
16
17
|
weth?: Lending | undefined;
|
|
17
18
|
wbtc?: Lending | undefined;
|
|
18
19
|
wusdc?: Lending | undefined;
|
|
@@ -87,7 +88,7 @@ export declare const getUserPortfolio: (query: ScallopQuery, walletAddress: stri
|
|
|
87
88
|
suppliedCoin: number;
|
|
88
89
|
suppliedValue: number;
|
|
89
90
|
stakedCoin: number;
|
|
90
|
-
coinName: "usdc" | "sbeth" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd";
|
|
91
|
+
coinName: "usdc" | "sbeth" | "sbusdt" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd";
|
|
91
92
|
symbol: string;
|
|
92
93
|
coinType: string;
|
|
93
94
|
coinPrice: number;
|
|
@@ -104,7 +105,7 @@ export declare const getUserPortfolio: (query: ScallopQuery, walletAddress: stri
|
|
|
104
105
|
availableCollateralInUsd: number;
|
|
105
106
|
totalUnhealthyCollateralInUsd: number;
|
|
106
107
|
borrowedPools: {
|
|
107
|
-
coinName: "usdc" | "sbeth" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd";
|
|
108
|
+
coinName: "usdc" | "sbeth" | "sbusdt" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd";
|
|
108
109
|
symbol: string;
|
|
109
110
|
coinDecimals: number;
|
|
110
111
|
coinType: string;
|
|
@@ -114,7 +115,7 @@ export declare const getUserPortfolio: (query: ScallopQuery, walletAddress: stri
|
|
|
114
115
|
borrowApr: number | undefined;
|
|
115
116
|
borrowApy: number | undefined;
|
|
116
117
|
incentiveInfos: {
|
|
117
|
-
coinName: "usdc" | "sbeth" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd" | "susdc" | "ssbeth" | "sweth" | "swbtc" | "swusdc" | "swusdt" | "ssui" | "swsol" | "scetus" | "safsui" | "shasui" | "svsui" | "ssca" | "sfud" | "sdeep" | "sfdusd";
|
|
118
|
+
coinName: "usdc" | "sbeth" | "sbusdt" | "weth" | "wbtc" | "wusdc" | "wusdt" | "sui" | "wapt" | "wsol" | "cetus" | "afsui" | "hasui" | "vsui" | "sca" | "fud" | "deep" | "fdusd" | "susdc" | "ssbeth" | "ssbusdt" | "sweth" | "swbtc" | "swusdc" | "swusdt" | "ssui" | "swsol" | "scetus" | "safsui" | "shasui" | "svsui" | "ssca" | "sfud" | "sdeep" | "sfdusd";
|
|
118
119
|
symbol: string;
|
|
119
120
|
coinType: string;
|
|
120
121
|
incentiveApr: number;
|
|
@@ -17,6 +17,7 @@ export declare const getPythPrices: ({ address, }: {
|
|
|
17
17
|
export declare const getAllCoinPrices: (query: ScallopQuery, marketPools?: MarketPools, coinPrices?: CoinPrices) => Promise<{
|
|
18
18
|
susdc?: number | undefined;
|
|
19
19
|
ssbeth?: number | undefined;
|
|
20
|
+
ssbusdt?: number | undefined;
|
|
20
21
|
sweth?: number | undefined;
|
|
21
22
|
swbtc?: number | undefined;
|
|
22
23
|
swusdc?: number | undefined;
|
|
@@ -33,6 +34,7 @@ export declare const getAllCoinPrices: (query: ScallopQuery, marketPools?: Marke
|
|
|
33
34
|
sfdusd?: number | undefined;
|
|
34
35
|
usdc?: number | undefined;
|
|
35
36
|
sbeth?: number | undefined;
|
|
37
|
+
sbusdt?: number | undefined;
|
|
36
38
|
weth?: number | undefined;
|
|
37
39
|
wbtc?: number | undefined;
|
|
38
40
|
wusdc?: number | undefined;
|
|
@@ -19,7 +19,7 @@ export declare const getSCoinTotalSupply: ({ utils, }: {
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const getSCoinAmounts: ({ utils, }: {
|
|
21
21
|
utils: ScallopUtils;
|
|
22
|
-
}, sCoinNames?: SupportSCoin[], ownerAddress?: string) => Promise<OptionalKeys<Record<"susdc" | "ssbeth" | "sweth" | "swbtc" | "swusdc" | "swusdt" | "ssui" | "swsol" | "scetus" | "safsui" | "shasui" | "svsui" | "ssca" | "sfud" | "sdeep" | "sfdusd", number>>>;
|
|
22
|
+
}, sCoinNames?: SupportSCoin[], ownerAddress?: string) => Promise<OptionalKeys<Record<"susdc" | "ssbeth" | "ssbusdt" | "sweth" | "swbtc" | "swusdc" | "swusdt" | "ssui" | "swsol" | "scetus" | "safsui" | "shasui" | "svsui" | "ssca" | "sfud" | "sdeep" | "sfdusd", number>>>;
|
|
23
23
|
/**
|
|
24
24
|
* Query owned sCoin amount.
|
|
25
25
|
*
|
package/package.json
CHANGED
package/src/constants/common.ts
CHANGED
|
@@ -32,6 +32,7 @@ export const OLD_BORROW_INCENTIVE_PROTOCOL_ID =
|
|
|
32
32
|
export const SUPPORT_POOLS = [
|
|
33
33
|
'usdc', // native USDC
|
|
34
34
|
'sbeth', // sui bridge ETH
|
|
35
|
+
'sbusdt', // sui bridge USDT
|
|
35
36
|
'weth',
|
|
36
37
|
'wbtc',
|
|
37
38
|
'wusdc',
|
|
@@ -52,6 +53,7 @@ export const SUPPORT_POOLS = [
|
|
|
52
53
|
export const SUPPORT_COLLATERALS = [
|
|
53
54
|
'usdc', // native USDC
|
|
54
55
|
'sbeth', // sui bridge ETH
|
|
56
|
+
'sbusdt', // sui bridge USDT
|
|
55
57
|
'weth',
|
|
56
58
|
'wbtc',
|
|
57
59
|
'wusdc',
|
|
@@ -82,6 +84,7 @@ export const SUPPORT_SPOOLS = [
|
|
|
82
84
|
export const SUPPORT_SCOIN = [
|
|
83
85
|
'susdc',
|
|
84
86
|
'ssbeth',
|
|
87
|
+
'ssbusdt',
|
|
85
88
|
'ssui',
|
|
86
89
|
'swusdc',
|
|
87
90
|
'swusdt',
|
|
@@ -98,7 +101,7 @@ export const SUPPORT_SCOIN = [
|
|
|
98
101
|
'sfdusd',
|
|
99
102
|
] as const;
|
|
100
103
|
|
|
101
|
-
export const SUPPORT_SUI_BRIDGE = ['sbeth'] as const;
|
|
104
|
+
export const SUPPORT_SUI_BRIDGE = ['sbeth', 'sbusdt'] as const;
|
|
102
105
|
export const SUPPORT_WORMHOLE = [
|
|
103
106
|
'wusdc',
|
|
104
107
|
'wusdt',
|
package/src/constants/enum.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { IS_VE_SCA_TEST } from './common';
|
|
|
4
4
|
export const coinDecimals: types.SupportCoinDecimals = {
|
|
5
5
|
usdc: 6,
|
|
6
6
|
sbeth: 8,
|
|
7
|
+
sbusdt: 6,
|
|
7
8
|
weth: 8,
|
|
8
9
|
wbtc: 8,
|
|
9
10
|
wusdc: 6,
|
|
@@ -22,6 +23,7 @@ export const coinDecimals: types.SupportCoinDecimals = {
|
|
|
22
23
|
susdc: 6,
|
|
23
24
|
sweth: 8,
|
|
24
25
|
ssbeth: 8,
|
|
26
|
+
ssbusdt: 6,
|
|
25
27
|
swbtc: 8,
|
|
26
28
|
swusdc: 6,
|
|
27
29
|
swusdt: 6,
|
|
@@ -41,6 +43,7 @@ export const coinDecimals: types.SupportCoinDecimals = {
|
|
|
41
43
|
export const assetCoins: types.AssetCoins = {
|
|
42
44
|
usdc: 'usdc',
|
|
43
45
|
sbeth: 'sbeth',
|
|
46
|
+
sbusdt: 'sbusdt',
|
|
44
47
|
weth: 'weth',
|
|
45
48
|
wbtc: 'wbtc',
|
|
46
49
|
wusdc: 'wusdc',
|
|
@@ -61,6 +64,7 @@ export const assetCoins: types.AssetCoins = {
|
|
|
61
64
|
export const marketCoins: types.MarketCoins = {
|
|
62
65
|
susdc: 'susdc',
|
|
63
66
|
ssbeth: 'ssbeth',
|
|
67
|
+
ssbusdt: 'ssbusdt',
|
|
64
68
|
sweth: 'sweth',
|
|
65
69
|
swbtc: 'swbtc',
|
|
66
70
|
swusdc: 'swusdc',
|
|
@@ -81,6 +85,7 @@ export const marketCoins: types.MarketCoins = {
|
|
|
81
85
|
export const sCoins: types.SCoins = {
|
|
82
86
|
susdc: 'susdc',
|
|
83
87
|
ssbeth: 'ssbeth',
|
|
88
|
+
ssbusdt: 'ssbusdt',
|
|
84
89
|
sweth: 'sweth',
|
|
85
90
|
swusdc: 'swusdc',
|
|
86
91
|
swusdt: 'swusdt',
|
|
@@ -123,29 +128,35 @@ export const spoolRewardCoins: types.StakeRewardCoins = {
|
|
|
123
128
|
|
|
124
129
|
export const suiBridgeCoins: types.SuiBridgeCoins = {
|
|
125
130
|
sbeth: 'sbeth',
|
|
131
|
+
sbusdt: 'sbusdt',
|
|
126
132
|
};
|
|
127
133
|
|
|
128
134
|
export const coinIds: types.AssetCoinIds = {
|
|
129
|
-
usdc: '0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7',
|
|
130
135
|
sui: '0x0000000000000000000000000000000000000000000000000000000000000002',
|
|
131
|
-
|
|
136
|
+
cetus: '0x06864a6f921804860930db6ddbe2e16acdf8504495ea7481637a1c8b9a8fe54b',
|
|
137
|
+
sca: IS_VE_SCA_TEST
|
|
138
|
+
? '0x6cd813061a3adf3602b76545f076205f0c8e7ec1d3b1eab9a1da7992c18c0524'
|
|
139
|
+
: '0x7016aae72cfc67f2fadf55769c0a7dd54291a583b63051a5ed71081cce836ac6',
|
|
140
|
+
// Wormhole assets
|
|
132
141
|
weth: '0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5',
|
|
133
142
|
wbtc: '0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881',
|
|
134
|
-
wusdc: '0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf',
|
|
135
|
-
wusdt: '0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c',
|
|
136
143
|
wapt: '0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37',
|
|
137
144
|
wsol: '0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8',
|
|
138
|
-
|
|
145
|
+
// Sui LST
|
|
139
146
|
afsui: '0xf325ce1300e8dac124071d3152c5c5ee6174914f8bc2161e88329cf579246efc',
|
|
140
147
|
hasui: '0xbde4ba4c2e274a60ce15c1cfff9e5c42e41654ac8b6d906a57efa4bd3c29f47d',
|
|
141
148
|
vsui: '0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55',
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
149
|
+
// stable coins
|
|
150
|
+
usdc: '0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7',
|
|
151
|
+
wusdc: '0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf',
|
|
152
|
+
wusdt: '0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c',
|
|
145
153
|
fdusd: '0xf16e6b723f242ec745dfd7634ad072c42d5c1d9ac9d62a39c381303eaa57693a',
|
|
146
154
|
// isolated assets
|
|
147
155
|
deep: '0xdeeb7a4662eec9f2f3def03fb937a663dddaa2e215b8078a284d026b7946c270',
|
|
148
156
|
fud: '0x76cb819b01abed502bee8a702b4c2d547532c12f25001c9dea795a5e631c26f1',
|
|
157
|
+
// Sui bridge assets
|
|
158
|
+
sbeth: '0xd0e89b2af5e4910726fbcd8b8dd37bb79b29e5f83f7491bca830e94f7f226d29',
|
|
159
|
+
sbusdt: '0x375f70cf2ae4c00bf37117d0c85a2c71545e6ee05c4a5c7d282cd66a4504b068',
|
|
149
160
|
};
|
|
150
161
|
|
|
151
162
|
export const wormholeCoinIds: types.WormholeCoinIds = {
|
|
@@ -163,35 +174,42 @@ export const voloCoinIds: types.VoloCoinIds = {
|
|
|
163
174
|
|
|
164
175
|
// PROD VERSION
|
|
165
176
|
export const sCoinIds: types.SCoinIds = {
|
|
166
|
-
susdc:
|
|
167
|
-
'0x854950aa624b1df59fe64e630b2ba7c550642e9342267a33061d59fb31582da5::scallop_usdc::SCALLOP_USDC',
|
|
168
|
-
ssbeth:
|
|
169
|
-
'0xb14f82d8506d139eacef109688d1b71e7236bcce9b2c0ad526abcd6aa5be7de0::scallop_sb_eth::SCALLOP_SB_ETH',
|
|
170
177
|
ssui: '0xaafc4f740de0dd0dde642a31148fb94517087052f19afb0f7bed1dc41a50c77b::scallop_sui::SCALLOP_SUI',
|
|
171
|
-
swusdc:
|
|
172
|
-
'0xad4d71551d31092230db1fd482008ea42867dbf27b286e9c70a79d2a6191d58d::scallop_wormhole_usdc::SCALLOP_WORMHOLE_USDC',
|
|
173
|
-
swusdt:
|
|
174
|
-
'0xe6e5a012ec20a49a3d1d57bd2b67140b96cd4d3400b9d79e541f7bdbab661f95::scallop_wormhole_usdt::SCALLOP_WORMHOLE_USDT',
|
|
175
178
|
ssca: '0x5ca17430c1d046fae9edeaa8fd76c7b4193a00d764a0ecfa9418d733ad27bc1e::scallop_sca::SCALLOP_SCA',
|
|
176
179
|
scetus:
|
|
177
180
|
'0xea346ce428f91ab007210443efcea5f5cdbbb3aae7e9affc0ca93f9203c31f0c::scallop_cetus::SCALLOP_CETUS',
|
|
181
|
+
// Wormhole assets
|
|
178
182
|
sweth:
|
|
179
183
|
'0x67540ceb850d418679e69f1fb6b2093d6df78a2a699ffc733f7646096d552e9b::scallop_wormhole_eth::SCALLOP_WORMHOLE_ETH',
|
|
184
|
+
swsol:
|
|
185
|
+
'0x1392650f2eca9e3f6ffae3ff89e42a3590d7102b80e2b430f674730bc30d3259::scallop_wormhole_sol::SCALLOP_WORMHOLE_SOL',
|
|
186
|
+
swbtc:
|
|
187
|
+
'0x2cf76a9cf5d3337961d1154283234f94da2dcff18544dfe5cbdef65f319591b5::scallop_wormhole_btc::SCALLOP_WORMHOLE_BTC',
|
|
188
|
+
// Sui LST
|
|
180
189
|
safsui:
|
|
181
190
|
'0x00671b1fa2a124f5be8bdae8b91ee711462c5d9e31bda232e70fd9607b523c88::scallop_af_sui::SCALLOP_AF_SUI',
|
|
182
191
|
shasui:
|
|
183
192
|
'0x9a2376943f7d22f88087c259c5889925f332ca4347e669dc37d54c2bf651af3c::scallop_ha_sui::SCALLOP_HA_SUI',
|
|
184
193
|
svsui:
|
|
185
194
|
'0xe1a1cc6bcf0001a015eab84bcc6713393ce20535f55b8b6f35c142e057a25fbe::scallop_v_sui::SCALLOP_V_SUI',
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
195
|
+
// stable coins
|
|
196
|
+
susdc:
|
|
197
|
+
'0x854950aa624b1df59fe64e630b2ba7c550642e9342267a33061d59fb31582da5::scallop_usdc::SCALLOP_USDC',
|
|
198
|
+
swusdc:
|
|
199
|
+
'0xad4d71551d31092230db1fd482008ea42867dbf27b286e9c70a79d2a6191d58d::scallop_wormhole_usdc::SCALLOP_WORMHOLE_USDC',
|
|
200
|
+
swusdt:
|
|
201
|
+
'0xe6e5a012ec20a49a3d1d57bd2b67140b96cd4d3400b9d79e541f7bdbab661f95::scallop_wormhole_usdt::SCALLOP_WORMHOLE_USDT',
|
|
190
202
|
sfdusd:
|
|
191
203
|
'0x6711551c1e7652a270d9fbf0eee25d99594c157cde3cb5fbb49035eb59b1b001::scallop_fdusd::SCALLOP_FDUSD',
|
|
204
|
+
// isolated assets
|
|
192
205
|
sdeep:
|
|
193
206
|
'0xeb7a05a3224837c5e5503575aed0be73c091d1ce5e43aa3c3e716e0ae614608f::scallop_deep::SCALLOP_DEEP',
|
|
194
207
|
sfud: '0xe56d5167f427cbe597da9e8150ef5c337839aaf46891d62468dcf80bdd8e10d1::scallop_fud::SCALLOP_FUD',
|
|
208
|
+
// Sui bridge assets
|
|
209
|
+
ssbeth:
|
|
210
|
+
'0xb14f82d8506d139eacef109688d1b71e7236bcce9b2c0ad526abcd6aa5be7de0::scallop_sb_eth::SCALLOP_SB_ETH',
|
|
211
|
+
ssbusdt:
|
|
212
|
+
'0xb1d7df34829d1513b73ba17cb7ad90c88d1e104bb65ab8f62f13e0cc103783d3::scallop_sb_usdt::SCALLOP_SB_USDT',
|
|
195
213
|
} as const;
|
|
196
214
|
|
|
197
215
|
export const sCoinTypeToName = Object.entries(sCoinIds).reduce(
|
|
@@ -17,7 +17,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
17
17
|
supplyLimitKey?: string;
|
|
18
18
|
borrowLimitKey?: string;
|
|
19
19
|
isolatedAssetKey?: string;
|
|
20
|
-
|
|
20
|
+
coinMetadataId?: string;
|
|
21
21
|
sCoinType?: string;
|
|
22
22
|
}
|
|
23
23
|
>
|
|
@@ -47,11 +47,40 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
47
47
|
'0xbe6b63021f3d82e0e7e977cdd718ed7c019cf2eba374b7b546220402452f938e',
|
|
48
48
|
sCoinType:
|
|
49
49
|
'0x854950aa624b1df59fe64e630b2ba7c550642e9342267a33061d59fb31582da5::scallop_usdc::SCALLOP_USDC',
|
|
50
|
-
|
|
50
|
+
coinMetadataId:
|
|
51
51
|
'0x69b7a7c3c200439c1b5f3b19d7d495d5966d5f08de66c69276152f8db3992ec6',
|
|
52
52
|
coinType:
|
|
53
53
|
'dba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC',
|
|
54
54
|
},
|
|
55
|
+
sbusdt: {
|
|
56
|
+
lendingPoolAddress:
|
|
57
|
+
'0x958ca02058a7dd8b00e26ed6988f45d7c2834ae2a47ee4c4a8fdedea155f18ca',
|
|
58
|
+
collateralPoolAddress:
|
|
59
|
+
'0x63c861f97192ceab2dabb1e74649ae87a9e36c33aaedcc43e40a811d3a39e653',
|
|
60
|
+
borrowDynamic:
|
|
61
|
+
'0xf1ef9a19881ed6ddeb88f361c83f37c592ec5b9c64fe715383f63ccc094be205',
|
|
62
|
+
interestModel:
|
|
63
|
+
'0x62c46e4667c4fa69a29030ecbc0f661c61365d02adc3810b08b11cfd8f42ca1c',
|
|
64
|
+
riskModel:
|
|
65
|
+
'0x59d5f3dbcd14a0aab6ee6e2879803e10b0a752119d19c4ac0bd389d71dc8c2bf',
|
|
66
|
+
borrowFeeKey:
|
|
67
|
+
'0xa418990ad042e97cca61830476483933b9e026970fc33451072b2627ccb31da2',
|
|
68
|
+
supplyLimitKey:
|
|
69
|
+
'0x93641bfb62ea40760f0c15911b4ec0eb866f8725e36b0ca9a786775d93629139',
|
|
70
|
+
borrowLimitKey:
|
|
71
|
+
'0x953a9b8d5353abb38db21a2cbbc5c54f8f23348895acb26cbe2c0ab61b54635d',
|
|
72
|
+
isolatedAssetKey: undefined,
|
|
73
|
+
spool: undefined,
|
|
74
|
+
spoolReward: undefined,
|
|
75
|
+
sCoinTreasury:
|
|
76
|
+
'0x58bdf6a9752e3a60144d0b70e8608d630dfd971513e2b2bfa7282f5eaa7d04d8',
|
|
77
|
+
sCoinType:
|
|
78
|
+
'0xb1d7df34829d1513b73ba17cb7ad90c88d1e104bb65ab8f62f13e0cc103783d3::scallop_sb_usdt::SCALLOP_SB_USDT',
|
|
79
|
+
coinMetadataId:
|
|
80
|
+
'0xda61b33ac61ed4c084bbda65a2229459ed4eb2185729e70498538f0688bec3cc',
|
|
81
|
+
coinType:
|
|
82
|
+
'0x375f70cf2ae4c00bf37117d0c85a2c71545e6ee05c4a5c7d282cd66a4504b068::usdt::USDT',
|
|
83
|
+
},
|
|
55
84
|
sbeth: {
|
|
56
85
|
lendingPoolAddress:
|
|
57
86
|
'0xaa34c938e0394e5186c7dc626ad69be96af2194b23fdc6ac1c63090e399f5ba4',
|
|
@@ -76,7 +105,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
76
105
|
'0xfd0f02def6358a1f266acfa1493d4707ee8387460d434fb667d63d755ff907ed',
|
|
77
106
|
sCoinType:
|
|
78
107
|
'0xb14f82d8506d139eacef109688d1b71e7236bcce9b2c0ad526abcd6aa5be7de0::scallop_sb_eth::SCALLOP_SB_ETH',
|
|
79
|
-
|
|
108
|
+
coinMetadataId:
|
|
80
109
|
'0x89b04ba87f8832d4d76e17a1c9dce72eb3e64d372cf02012b8d2de5384faeef0',
|
|
81
110
|
coinType:
|
|
82
111
|
'd0e89b2af5e4910726fbcd8b8dd37bb79b29e5f83f7491bca830e94f7f226d29::eth::ETH',
|
|
@@ -106,7 +135,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
106
135
|
'0x4b7f5da0e306c9d52490a0c1d4091e653d6b89778b9b4f23c877e534e4d9cd21',
|
|
107
136
|
sCoinType:
|
|
108
137
|
'0x67540ceb850d418679e69f1fb6b2093d6df78a2a699ffc733f7646096d552e9b::scallop_wormhole_eth::SCALLOP_WORMHOLE_ETH',
|
|
109
|
-
|
|
138
|
+
coinMetadataId:
|
|
110
139
|
'0x8900e4ceede3363bef086d6b50ca89d816d0e90bf6bc46efefe1f8455e08f50f',
|
|
111
140
|
coinType:
|
|
112
141
|
'af8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN',
|
|
@@ -135,7 +164,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
135
164
|
'0xe2883934ea42c99bc998bbe0f01dd6d27aa0e27a56455707b1b34e6a41c20baa',
|
|
136
165
|
sCoinType:
|
|
137
166
|
'0x2cf76a9cf5d3337961d1154283234f94da2dcff18544dfe5cbdef65f319591b5::scallop_wormhole_btc::SCALLOP_WORMHOLE_BTC',
|
|
138
|
-
|
|
167
|
+
coinMetadataId:
|
|
139
168
|
'0x5d3c6e60eeff8a05b693b481539e7847dfe33013e7070cdcb387f5c0cac05dfd',
|
|
140
169
|
coinType:
|
|
141
170
|
'027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN',
|
|
@@ -165,7 +194,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
165
194
|
'0x50c5cfcbcca3aaacab0984e4d7ad9a6ad034265bebb440f0d1cd688ec20b2548',
|
|
166
195
|
sCoinType:
|
|
167
196
|
'0xad4d71551d31092230db1fd482008ea42867dbf27b286e9c70a79d2a6191d58d::scallop_wormhole_usdc::SCALLOP_WORMHOLE_USDC',
|
|
168
|
-
|
|
197
|
+
coinMetadataId:
|
|
169
198
|
'0x4fbf84f3029bd0c0b77164b587963be957f853eccf834a67bb9ecba6ec80f189',
|
|
170
199
|
coinType:
|
|
171
200
|
'5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN',
|
|
@@ -195,7 +224,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
195
224
|
'0x1f02e2fed702b477732d4ad6044aaed04f2e8e586a169153694861a901379df0',
|
|
196
225
|
sCoinType:
|
|
197
226
|
'0xe6e5a012ec20a49a3d1d57bd2b67140b96cd4d3400b9d79e541f7bdbab661f95::scallop_wormhole_usdt::SCALLOP_WORMHOLE_USDT',
|
|
198
|
-
|
|
227
|
+
coinMetadataId:
|
|
199
228
|
'0xfb0e3eb97dd158a5ae979dddfa24348063843c5b20eb8381dd5fa7c93699e45c',
|
|
200
229
|
coinType:
|
|
201
230
|
'c060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN',
|
|
@@ -225,7 +254,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
225
254
|
'0x5c1678c8261ac9eec024d4d630006a9f55c80dc0b1aa38a003fcb1d425818c6b',
|
|
226
255
|
sCoinType:
|
|
227
256
|
'0xaafc4f740de0dd0dde642a31148fb94517087052f19afb0f7bed1dc41a50c77b::scallop_sui::SCALLOP_SUI',
|
|
228
|
-
|
|
257
|
+
coinMetadataId:
|
|
229
258
|
'0x9258181f5ceac8dbffb7030890243caed69a9599d2886d957a9cb7656af3bdb3',
|
|
230
259
|
coinType:
|
|
231
260
|
'0000000000000000000000000000000000000000000000000000000000000002::sui::SUI',
|
|
@@ -250,7 +279,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
250
279
|
spoolReward: undefined,
|
|
251
280
|
sCoinTreasury: undefined,
|
|
252
281
|
sCoinType: undefined,
|
|
253
|
-
|
|
282
|
+
coinMetadataId:
|
|
254
283
|
'0xc969c5251f372c0f34c32759f1d315cf1ea0ee5e4454b52aea08778eacfdd0a8',
|
|
255
284
|
coinType:
|
|
256
285
|
'3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN',
|
|
@@ -280,7 +309,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
280
309
|
'0xa283c63488773c916cb3d6c64109536160d5eb496caddc721eb39aad2977d735',
|
|
281
310
|
sCoinType:
|
|
282
311
|
'0xea346ce428f91ab007210443efcea5f5cdbbb3aae7e9affc0ca93f9203c31f0c::scallop_cetus::SCALLOP_CETUS',
|
|
283
|
-
|
|
312
|
+
coinMetadataId:
|
|
284
313
|
'0x4c0dce55eff2db5419bbd2d239d1aa22b4a400c01bbb648b058a9883989025da',
|
|
285
314
|
coinType:
|
|
286
315
|
'06864a6f921804860930db6ddbe2e16acdf8504495ea7481637a1c8b9a8fe54b::cetus::CETUS',
|
|
@@ -309,7 +338,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
309
338
|
'0x760fd66f5be869af4382fa32b812b3c67f0eca1bb1ed7a5578b21d56e1848819',
|
|
310
339
|
sCoinType:
|
|
311
340
|
'0x1392650f2eca9e3f6ffae3ff89e42a3590d7102b80e2b430f674730bc30d3259::scallop_wormhole_sol::SCALLOP_WORMHOLE_SOL',
|
|
312
|
-
|
|
341
|
+
coinMetadataId:
|
|
313
342
|
'0x4d2c39082b4477e3e79dc4562d939147ab90c42fc5f3e4acf03b94383cd69b6e',
|
|
314
343
|
coinType:
|
|
315
344
|
'b7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN',
|
|
@@ -339,7 +368,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
339
368
|
'0x55f4dfe9e40bc4cc11c70fcb1f3daefa2bdc330567c58d4f0792fbd9f9175a62',
|
|
340
369
|
sCoinType:
|
|
341
370
|
'0x00671b1fa2a124f5be8bdae8b91ee711462c5d9e31bda232e70fd9607b523c88::scallop_af_sui::SCALLOP_AF_SUI',
|
|
342
|
-
|
|
371
|
+
coinMetadataId:
|
|
343
372
|
'0x2f9217f533e51334873a39b8026a4aa6919497b47f49d0986a4f1aec66f8a34d',
|
|
344
373
|
coinType:
|
|
345
374
|
'f325ce1300e8dac124071d3152c5c5ee6174914f8bc2161e88329cf579246efc::afsui::AFSUI',
|
|
@@ -369,7 +398,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
369
398
|
'0x404ccc1404d74a90eb6f9c9d4b6cda6d417fb03189f80d9070a35e5dab1df0f5',
|
|
370
399
|
sCoinType:
|
|
371
400
|
'0x9a2376943f7d22f88087c259c5889925f332ca4347e669dc37d54c2bf651af3c::scallop_ha_sui::SCALLOP_HA_SUI',
|
|
372
|
-
|
|
401
|
+
coinMetadataId:
|
|
373
402
|
'0x2c5f33af93f6511df699aaaa5822d823aac6ed99d4a0de2a4a50b3afa0172e24',
|
|
374
403
|
coinType:
|
|
375
404
|
'bde4ba4c2e274a60ce15c1cfff9e5c42e41654ac8b6d906a57efa4bd3c29f47d::hasui::HASUI',
|
|
@@ -399,7 +428,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
399
428
|
'0xc06688ee1af25abc286ffb1d18ce273d1d5907cd1064c25f4e8ca61ea989c1d1',
|
|
400
429
|
sCoinType:
|
|
401
430
|
'0xe1a1cc6bcf0001a015eab84bcc6713393ce20535f55b8b6f35c142e057a25fbe::scallop_v_sui::SCALLOP_V_SUI',
|
|
402
|
-
|
|
431
|
+
coinMetadataId:
|
|
403
432
|
'0xabd84a23467b33854ab25cf862006fd97479f8f6f53e50fe732c43a274d939bd',
|
|
404
433
|
coinType:
|
|
405
434
|
'549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::cert::CERT',
|
|
@@ -428,7 +457,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
428
457
|
'0xe04bfc95e00252bd654ee13c08edef9ac5e4b6ae4074e8390db39e9a0109c529',
|
|
429
458
|
sCoinType:
|
|
430
459
|
'0x5ca17430c1d046fae9edeaa8fd76c7b4193a00d764a0ecfa9418d733ad27bc1e::scallop_sca::SCALLOP_SCA',
|
|
431
|
-
|
|
460
|
+
coinMetadataId:
|
|
432
461
|
'0x5d26a1e9a55c88147ac870bfa31b729d7f49f8804b8b3adfdf3582d301cca844',
|
|
433
462
|
coinType:
|
|
434
463
|
'7016aae72cfc67f2fadf55769c0a7dd54291a583b63051a5ed71081cce836ac6::sca::SCA',
|
|
@@ -456,7 +485,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
456
485
|
'0xf25212f11d182decff7a86165699a73e3d5787aced203ca539f43cfbc10db867',
|
|
457
486
|
sCoinType:
|
|
458
487
|
'0xe56d5167f427cbe597da9e8150ef5c337839aaf46891d62468dcf80bdd8e10d1::scallop_fud::SCALLOP_FUD',
|
|
459
|
-
|
|
488
|
+
coinMetadataId:
|
|
460
489
|
'0x01087411ef48aaac1eb6e24803213e3a60a03b147dac930e5e341f17a85e524e',
|
|
461
490
|
coinType:
|
|
462
491
|
'76cb819b01abed502bee8a702b4c2d547532c12f25001c9dea795a5e631c26f1::fud::FUD',
|
|
@@ -484,7 +513,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
484
513
|
'0xc63838fabe37b25ad897392d89876d920f5e0c6a406bf3abcb84753d2829bc88',
|
|
485
514
|
sCoinType:
|
|
486
515
|
'0xeb7a05a3224837c5e5503575aed0be73c091d1ce5e43aa3c3e716e0ae614608f::scallop_deep::SCALLOP_DEEP',
|
|
487
|
-
|
|
516
|
+
coinMetadataId:
|
|
488
517
|
'0x6e60b051a08fa836f5a7acd7c464c8d9825bc29c44657fe170fe9b8e1e4770c0',
|
|
489
518
|
coinType:
|
|
490
519
|
'deeb7a4662eec9f2f3def03fb937a663dddaa2e215b8078a284d026b7946c270::deep::DEEP',
|
|
@@ -513,7 +542,7 @@ export const POOL_ADDRESSES: OptionalKeys<
|
|
|
513
542
|
'0xdad9bc6293e694f67a5274ea51b596e0bdabfafc585ae6d7e82888e65f1a03e0',
|
|
514
543
|
sCoinType:
|
|
515
544
|
'0x6711551c1e7652a270d9fbf0eee25d99594c157cde3cb5fbb49035eb59b1b001::scallop_fdusd::SCALLOP_FDUSD',
|
|
516
|
-
|
|
545
|
+
coinMetadataId:
|
|
517
546
|
'0xdebee5265a67c186ed87fe93303d33dfe1de53e3b4fd7d9329c2852860acd3e7',
|
|
518
547
|
coinType:
|
|
519
548
|
'f16e6b723f242ec745dfd7634ad072c42d5c1d9ac9d62a39c381303eaa57693a::fdusd::FDUSD',
|
package/src/constants/pyth.ts
CHANGED
|
@@ -10,6 +10,7 @@ export const PYTH_ENDPOINTS: {
|
|
|
10
10
|
export const PYTH_FEED_IDS: Record<SupportPoolCoins, string> = {
|
|
11
11
|
usdc: 'eaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a',
|
|
12
12
|
sbeth: 'ff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace',
|
|
13
|
+
sbusdt: '2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b',
|
|
13
14
|
weth: 'ff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace',
|
|
14
15
|
wbtc: 'e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43',
|
|
15
16
|
wusdc: 'eaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a',
|