@defisaver/positions-sdk 0.0.201-fluid-dev-1 → 0.0.201-fluid-dev-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/cjs/config/contracts.d.ts +6 -0
- package/cjs/config/contracts.js +4 -2
- package/cjs/fluid/index.js +6 -4
- package/cjs/markets/fluid/index.d.ts +34 -10
- package/cjs/markets/fluid/index.js +469 -144
- package/cjs/types/contracts/generated/FluidView.d.ts +127 -1
- package/cjs/types/fluid.d.ts +22 -3
- package/cjs/types/fluid.js +17 -0
- package/esm/config/contracts.d.ts +6 -0
- package/esm/config/contracts.js +4 -2
- package/esm/fluid/index.js +4 -2
- package/esm/markets/fluid/index.d.ts +34 -10
- package/esm/markets/fluid/index.js +450 -137
- package/esm/types/contracts/generated/FluidView.d.ts +127 -1
- package/esm/types/fluid.d.ts +22 -3
- package/esm/types/fluid.js +17 -0
- package/package.json +1 -1
- package/src/config/contracts.js +4 -2
- package/src/fluid/index.ts +4 -2
- package/src/markets/fluid/index.ts +465 -139
- package/src/types/contracts/generated/FluidView.ts +167 -5
- package/src/types/fluid.ts +19 -0
|
@@ -10,6 +10,102 @@ export interface EventOptions {
|
|
|
10
10
|
topics?: string[];
|
|
11
11
|
}
|
|
12
12
|
export declare namespace FluidView {
|
|
13
|
+
type FTokenDataStruct = [
|
|
14
|
+
string,
|
|
15
|
+
boolean,
|
|
16
|
+
string,
|
|
17
|
+
string,
|
|
18
|
+
number | string | BN,
|
|
19
|
+
string,
|
|
20
|
+
number | string | BN,
|
|
21
|
+
number | string | BN,
|
|
22
|
+
number | string | BN,
|
|
23
|
+
number | string | BN,
|
|
24
|
+
number | string | BN,
|
|
25
|
+
number | string | BN,
|
|
26
|
+
number | string | BN,
|
|
27
|
+
boolean,
|
|
28
|
+
number | string | BN,
|
|
29
|
+
number | string | BN
|
|
30
|
+
] | {
|
|
31
|
+
tokenAddress: string;
|
|
32
|
+
isNativeUnderlying: boolean;
|
|
33
|
+
name: string;
|
|
34
|
+
symbol: string;
|
|
35
|
+
decimals: number | string | BN;
|
|
36
|
+
asset: string;
|
|
37
|
+
totalAssets: number | string | BN;
|
|
38
|
+
totalSupply: number | string | BN;
|
|
39
|
+
convertToShares: number | string | BN;
|
|
40
|
+
convertToAssets: number | string | BN;
|
|
41
|
+
rewardsRate: number | string | BN;
|
|
42
|
+
supplyRate: number | string | BN;
|
|
43
|
+
withdrawable: number | string | BN;
|
|
44
|
+
modeWithInterest: boolean;
|
|
45
|
+
expandPercent: number | string | BN;
|
|
46
|
+
expandDuration: number | string | BN;
|
|
47
|
+
};
|
|
48
|
+
type FTokenDataStructOutputArray = [
|
|
49
|
+
string,
|
|
50
|
+
boolean,
|
|
51
|
+
string,
|
|
52
|
+
string,
|
|
53
|
+
string,
|
|
54
|
+
string,
|
|
55
|
+
string,
|
|
56
|
+
string,
|
|
57
|
+
string,
|
|
58
|
+
string,
|
|
59
|
+
string,
|
|
60
|
+
string,
|
|
61
|
+
string,
|
|
62
|
+
boolean,
|
|
63
|
+
string,
|
|
64
|
+
string
|
|
65
|
+
];
|
|
66
|
+
type FTokenDataStructOutputStruct = {
|
|
67
|
+
tokenAddress: string;
|
|
68
|
+
isNativeUnderlying: boolean;
|
|
69
|
+
name: string;
|
|
70
|
+
symbol: string;
|
|
71
|
+
decimals: string;
|
|
72
|
+
asset: string;
|
|
73
|
+
totalAssets: string;
|
|
74
|
+
totalSupply: string;
|
|
75
|
+
convertToShares: string;
|
|
76
|
+
convertToAssets: string;
|
|
77
|
+
rewardsRate: string;
|
|
78
|
+
supplyRate: string;
|
|
79
|
+
withdrawable: string;
|
|
80
|
+
modeWithInterest: boolean;
|
|
81
|
+
expandPercent: string;
|
|
82
|
+
expandDuration: string;
|
|
83
|
+
};
|
|
84
|
+
type FTokenDataStructOutput = FTokenDataStructOutputArray & FTokenDataStructOutputStruct;
|
|
85
|
+
type UserEarnPositionStruct = [
|
|
86
|
+
number | string | BN,
|
|
87
|
+
number | string | BN,
|
|
88
|
+
number | string | BN,
|
|
89
|
+
number | string | BN
|
|
90
|
+
] | {
|
|
91
|
+
fTokenShares: number | string | BN;
|
|
92
|
+
underlyingAssets: number | string | BN;
|
|
93
|
+
underlyingBalance: number | string | BN;
|
|
94
|
+
allowance: number | string | BN;
|
|
95
|
+
};
|
|
96
|
+
type UserEarnPositionStructOutputArray = [
|
|
97
|
+
string,
|
|
98
|
+
string,
|
|
99
|
+
string,
|
|
100
|
+
string
|
|
101
|
+
];
|
|
102
|
+
type UserEarnPositionStructOutputStruct = {
|
|
103
|
+
fTokenShares: string;
|
|
104
|
+
underlyingAssets: string;
|
|
105
|
+
underlyingBalance: string;
|
|
106
|
+
allowance: string;
|
|
107
|
+
};
|
|
108
|
+
type UserEarnPositionStructOutput = UserEarnPositionStructOutputArray & UserEarnPositionStructOutputStruct;
|
|
13
109
|
type UserPositionStruct = [
|
|
14
110
|
number | string | BN,
|
|
15
111
|
string,
|
|
@@ -246,11 +342,33 @@ export declare namespace FluidView {
|
|
|
246
342
|
minimumBorrowing: string;
|
|
247
343
|
};
|
|
248
344
|
type VaultDataStructOutput = VaultDataStructOutputArray & VaultDataStructOutputStruct;
|
|
345
|
+
type NftWithVaultStruct = [number | string | BN, number | string | BN, string] | {
|
|
346
|
+
nftId: number | string | BN;
|
|
347
|
+
vaultId: number | string | BN;
|
|
348
|
+
vaultAddr: string;
|
|
349
|
+
};
|
|
350
|
+
type NftWithVaultStructOutputArray = [string, string, string];
|
|
351
|
+
type NftWithVaultStructOutputStruct = {
|
|
352
|
+
nftId: string;
|
|
353
|
+
vaultId: string;
|
|
354
|
+
vaultAddr: string;
|
|
355
|
+
};
|
|
356
|
+
type NftWithVaultStructOutput = NftWithVaultStructOutputArray & NftWithVaultStructOutputStruct;
|
|
249
357
|
}
|
|
250
358
|
export interface FluidView extends BaseContract {
|
|
251
359
|
constructor(jsonInterface: any[], address?: string, options?: ContractOptions): FluidView;
|
|
252
360
|
clone(): FluidView;
|
|
253
361
|
methods: {
|
|
362
|
+
getAllFTokens(): NonPayableTransactionObject<string[]>;
|
|
363
|
+
getAllFTokensData(): NonPayableTransactionObject<FluidView.FTokenDataStructOutput[]>;
|
|
364
|
+
getAllUserEarnPositionsWithFTokens(_user: string): NonPayableTransactionObject<[
|
|
365
|
+
FluidView.UserEarnPositionStructOutput[],
|
|
366
|
+
FluidView.FTokenDataStructOutput[]
|
|
367
|
+
] & {
|
|
368
|
+
userPositions: FluidView.UserEarnPositionStructOutput[];
|
|
369
|
+
fTokensData: FluidView.FTokenDataStructOutput[];
|
|
370
|
+
}>;
|
|
371
|
+
getFTokenData(_fToken: string): NonPayableTransactionObject<FluidView.FTokenDataStructOutput>;
|
|
254
372
|
getPositionByNftId(_nftId: number | string | BN): NonPayableTransactionObject<[
|
|
255
373
|
FluidView.UserPositionStructOutput,
|
|
256
374
|
FluidView.VaultDataStructOutput
|
|
@@ -259,7 +377,16 @@ export interface FluidView extends BaseContract {
|
|
|
259
377
|
vault: FluidView.VaultDataStructOutput;
|
|
260
378
|
}>;
|
|
261
379
|
getRatio(_nftId: number | string | BN): NonPayableTransactionObject<string>;
|
|
380
|
+
getUserEarnPosition(_fToken: string, _user: string): NonPayableTransactionObject<FluidView.UserEarnPositionStructOutput>;
|
|
381
|
+
getUserEarnPositionWithFToken(_fToken: string, _user: string): NonPayableTransactionObject<[
|
|
382
|
+
FluidView.UserEarnPositionStructOutput,
|
|
383
|
+
FluidView.FTokenDataStructOutput
|
|
384
|
+
] & {
|
|
385
|
+
userPosition: FluidView.UserEarnPositionStructOutput;
|
|
386
|
+
fTokenData: FluidView.FTokenDataStructOutput;
|
|
387
|
+
}>;
|
|
262
388
|
getUserNftIds(_user: string): NonPayableTransactionObject<string[]>;
|
|
389
|
+
getUserNftIdsWithVaultIds(_user: string): NonPayableTransactionObject<FluidView.NftWithVaultStructOutput[]>;
|
|
263
390
|
getUserPositions(_user: string): NonPayableTransactionObject<[
|
|
264
391
|
FluidView.UserPositionStructOutput[],
|
|
265
392
|
FluidView.VaultDataStructOutput[]
|
|
@@ -267,7 +394,6 @@ export interface FluidView extends BaseContract {
|
|
|
267
394
|
positions: FluidView.UserPositionStructOutput[];
|
|
268
395
|
vaults: FluidView.VaultDataStructOutput[];
|
|
269
396
|
}>;
|
|
270
|
-
getVaultAddresses(_ids: number | string | BN[], _fetchAll: boolean): NonPayableTransactionObject<string[]>;
|
|
271
397
|
getVaultData(_vault: string): NonPayableTransactionObject<FluidView.VaultDataStructOutput>;
|
|
272
398
|
};
|
|
273
399
|
events: {
|
package/cjs/types/fluid.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export interface FluidMarketInfo {
|
|
|
14
14
|
ethBased?: boolean;
|
|
15
15
|
btcBased?: boolean;
|
|
16
16
|
wstETHBased?: boolean;
|
|
17
|
+
stableBased?: boolean;
|
|
17
18
|
type: FluidVaultType;
|
|
18
19
|
}
|
|
19
20
|
export declare enum FluidMainnetVersion {
|
|
@@ -72,7 +73,10 @@ export declare enum FluidMainnetVersion {
|
|
|
72
73
|
USDC_ETH_USDC_ETH_77 = "USDC_ETH_USDC_ETH_77",
|
|
73
74
|
RSETH_ETH_WSTETH_78 = "RSETH_ETH_WSTETH_78",
|
|
74
75
|
RSETH_WSTETH_79 = "RSETH_WSTETH_79",
|
|
75
|
-
WEETHS_ETH_WSTETH_80 = "WEETHS_ETH_WSTETH_80"
|
|
76
|
+
WEETHS_ETH_WSTETH_80 = "WEETHS_ETH_WSTETH_80",
|
|
77
|
+
SUSDE_USDT_USDT_92 = "SUSDE_USDT_USDT_92",
|
|
78
|
+
USDE_USDT_USDT_93 = "USDE_USDT_USDT_93",
|
|
79
|
+
LBTC_CBBTC_WBTC_97 = "LBTC_CBBTC_WBTC_97"
|
|
76
80
|
}
|
|
77
81
|
export declare enum FluidArbitrumVersion {
|
|
78
82
|
ETH_USDC_1_ARB = "ETH_USDC_1_ARB",
|
|
@@ -86,8 +90,19 @@ export declare enum FluidArbitrumVersion {
|
|
|
86
90
|
ETH_ARB_9_ARB = "ETH_ARB_9_ARB",
|
|
87
91
|
ARB_USDC_10_ARB = "ARB_USDC_10_ARB",
|
|
88
92
|
ARB_USDT_11_ARB = "ARB_USDT_11_ARB",
|
|
93
|
+
WBTC_USDC_12_ARB = "WBTC_USDC_12_ARB",
|
|
94
|
+
WBTC_USDT_13_ARB = "WBTC_USDT_13_ARB",
|
|
89
95
|
WSTETH_ETH_WSTETH_ETH_16_ARB = "WSTETH_ETH_WSTETH_ETH_16_ARB",
|
|
90
|
-
WEETH_ETH_WSTETH_17_ARB = "WEETH_ETH_WSTETH_17_ARB"
|
|
96
|
+
WEETH_ETH_WSTETH_17_ARB = "WEETH_ETH_WSTETH_17_ARB",
|
|
97
|
+
WBTC_ETH_18_ARB = "WBTC_ETH_18_ARB",
|
|
98
|
+
ETH_WBTC_19_ARB = "ETH_WBTC_19_ARB",
|
|
99
|
+
WSTETH_WBTC_20_ARB = "WSTETH_WBTC_20_ARB",
|
|
100
|
+
WEETH_WBTC_21_ARB = "WEETH_WBTC_21_ARB",
|
|
101
|
+
USDC_ETH_USDC_ETH_22_ARB = "USDC_ETH_USDC_ETH_22_ARB",
|
|
102
|
+
ETH_USDC_USDT_23_ARB = "ETH_USDC_USDT_23_ARB",
|
|
103
|
+
WSTETH_USDC_USDT_24_ARB = "WSTETH_USDC_USDT_24_ARB",
|
|
104
|
+
WEETH_USDC_USDT_25_ARB = "WEETH_USDC_USDT_25_ARB",
|
|
105
|
+
WBTC_USDC_USDT_26_ARB = "WBTC_USDC_USDT_26_ARB"
|
|
91
106
|
}
|
|
92
107
|
export declare enum FluidBaseVersions {
|
|
93
108
|
ETH_USDC_1_BASE = "ETH_USDC_1_BASE",
|
|
@@ -105,7 +120,10 @@ export declare enum FluidBaseVersions {
|
|
|
105
120
|
CBBTC_ETH_13_BASE = "CBBTC_ETH_13_BASE",
|
|
106
121
|
ETH_CBBTC_14_BASE = "ETH_CBBTC_14_BASE",
|
|
107
122
|
WEETH_CBBTC_15_BASE = "WEETH_CBBTC_15_BASE",
|
|
108
|
-
WSTETH_CBBTC_16_BASE = "WSTETH_CBBTC_16_BASE"
|
|
123
|
+
WSTETH_CBBTC_16_BASE = "WSTETH_CBBTC_16_BASE",
|
|
124
|
+
ETH_SUSDS_17_BASE = "ETH_SUSDS_17_BASE",
|
|
125
|
+
WSTETH_SUSDS_18_BASE = "WSTETH_SUSDS_18_BASE",
|
|
126
|
+
CBBTC_SUSDS_19_BASE = "CBBTC_SUSDS_19_BASE"
|
|
109
127
|
}
|
|
110
128
|
export type FluidVersions = FluidArbitrumVersion | FluidBaseVersions | FluidMainnetVersion;
|
|
111
129
|
export declare enum FluidMainnetDepositToken {
|
|
@@ -190,6 +208,7 @@ export interface InnerFluidMarketData {
|
|
|
190
208
|
minimumBorrowing: string;
|
|
191
209
|
supplyRate: string;
|
|
192
210
|
borrowRate: string;
|
|
211
|
+
liquidationMaxLimit: string;
|
|
193
212
|
}
|
|
194
213
|
export interface FluidMarketData {
|
|
195
214
|
assetsData: FluidAssetsData;
|
package/cjs/types/fluid.js
CHANGED
|
@@ -60,6 +60,9 @@ var FluidMainnetVersion;
|
|
|
60
60
|
FluidMainnetVersion["RSETH_ETH_WSTETH_78"] = "RSETH_ETH_WSTETH_78";
|
|
61
61
|
FluidMainnetVersion["RSETH_WSTETH_79"] = "RSETH_WSTETH_79";
|
|
62
62
|
FluidMainnetVersion["WEETHS_ETH_WSTETH_80"] = "WEETHS_ETH_WSTETH_80";
|
|
63
|
+
FluidMainnetVersion["SUSDE_USDT_USDT_92"] = "SUSDE_USDT_USDT_92";
|
|
64
|
+
FluidMainnetVersion["USDE_USDT_USDT_93"] = "USDE_USDT_USDT_93";
|
|
65
|
+
FluidMainnetVersion["LBTC_CBBTC_WBTC_97"] = "LBTC_CBBTC_WBTC_97";
|
|
63
66
|
})(FluidMainnetVersion || (exports.FluidMainnetVersion = FluidMainnetVersion = {}));
|
|
64
67
|
var FluidArbitrumVersion;
|
|
65
68
|
(function (FluidArbitrumVersion) {
|
|
@@ -74,8 +77,19 @@ var FluidArbitrumVersion;
|
|
|
74
77
|
FluidArbitrumVersion["ETH_ARB_9_ARB"] = "ETH_ARB_9_ARB";
|
|
75
78
|
FluidArbitrumVersion["ARB_USDC_10_ARB"] = "ARB_USDC_10_ARB";
|
|
76
79
|
FluidArbitrumVersion["ARB_USDT_11_ARB"] = "ARB_USDT_11_ARB";
|
|
80
|
+
FluidArbitrumVersion["WBTC_USDC_12_ARB"] = "WBTC_USDC_12_ARB";
|
|
81
|
+
FluidArbitrumVersion["WBTC_USDT_13_ARB"] = "WBTC_USDT_13_ARB";
|
|
77
82
|
FluidArbitrumVersion["WSTETH_ETH_WSTETH_ETH_16_ARB"] = "WSTETH_ETH_WSTETH_ETH_16_ARB";
|
|
78
83
|
FluidArbitrumVersion["WEETH_ETH_WSTETH_17_ARB"] = "WEETH_ETH_WSTETH_17_ARB";
|
|
84
|
+
FluidArbitrumVersion["WBTC_ETH_18_ARB"] = "WBTC_ETH_18_ARB";
|
|
85
|
+
FluidArbitrumVersion["ETH_WBTC_19_ARB"] = "ETH_WBTC_19_ARB";
|
|
86
|
+
FluidArbitrumVersion["WSTETH_WBTC_20_ARB"] = "WSTETH_WBTC_20_ARB";
|
|
87
|
+
FluidArbitrumVersion["WEETH_WBTC_21_ARB"] = "WEETH_WBTC_21_ARB";
|
|
88
|
+
FluidArbitrumVersion["USDC_ETH_USDC_ETH_22_ARB"] = "USDC_ETH_USDC_ETH_22_ARB";
|
|
89
|
+
FluidArbitrumVersion["ETH_USDC_USDT_23_ARB"] = "ETH_USDC_USDT_23_ARB";
|
|
90
|
+
FluidArbitrumVersion["WSTETH_USDC_USDT_24_ARB"] = "WSTETH_USDC_USDT_24_ARB";
|
|
91
|
+
FluidArbitrumVersion["WEETH_USDC_USDT_25_ARB"] = "WEETH_USDC_USDT_25_ARB";
|
|
92
|
+
FluidArbitrumVersion["WBTC_USDC_USDT_26_ARB"] = "WBTC_USDC_USDT_26_ARB";
|
|
79
93
|
})(FluidArbitrumVersion || (exports.FluidArbitrumVersion = FluidArbitrumVersion = {}));
|
|
80
94
|
var FluidBaseVersions;
|
|
81
95
|
(function (FluidBaseVersions) {
|
|
@@ -95,6 +109,9 @@ var FluidBaseVersions;
|
|
|
95
109
|
FluidBaseVersions["ETH_CBBTC_14_BASE"] = "ETH_CBBTC_14_BASE";
|
|
96
110
|
FluidBaseVersions["WEETH_CBBTC_15_BASE"] = "WEETH_CBBTC_15_BASE";
|
|
97
111
|
FluidBaseVersions["WSTETH_CBBTC_16_BASE"] = "WSTETH_CBBTC_16_BASE";
|
|
112
|
+
FluidBaseVersions["ETH_SUSDS_17_BASE"] = "ETH_SUSDS_17_BASE";
|
|
113
|
+
FluidBaseVersions["WSTETH_SUSDS_18_BASE"] = "WSTETH_SUSDS_18_BASE";
|
|
114
|
+
FluidBaseVersions["CBBTC_SUSDS_19_BASE"] = "CBBTC_SUSDS_19_BASE";
|
|
98
115
|
})(FluidBaseVersions || (exports.FluidBaseVersions = FluidBaseVersions = {}));
|
|
99
116
|
var FluidMainnetDepositToken;
|
|
100
117
|
(function (FluidMainnetDepositToken) {
|
package/esm/config/contracts.js
CHANGED
|
@@ -1106,9 +1106,11 @@ module.exports = {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
},
|
|
1108
1108
|
"FluidView": {
|
|
1109
|
-
"abi": [{ "inputs": [{ "internalType": "uint256", "name": "_nftId", "type": "uint256" }], "name": "getPositionByNftId", "outputs": [{ "components": [{ "internalType": "uint256", "name": "nftId", "type": "uint256" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "bool", "name": "isLiquidated", "type": "bool" }, { "internalType": "bool", "name": "isSupplyPosition", "type": "bool" }, { "internalType": "uint256", "name": "supply", "type": "uint256" }, { "internalType": "uint256", "name": "borrow", "type": "uint256" }, { "internalType": "uint256", "name": "ratio", "type": "uint256" }, { "internalType": "int256", "name": "tick", "type": "int256" }, { "internalType": "uint256", "name": "tickId", "type": "uint256" }], "internalType": "struct FluidView.UserPosition", "name": "position", "type": "tuple" }, { "components": [{ "internalType": "address", "name": "vault", "type": "address" }, { "internalType": "uint256", "name": "vaultId", "type": "uint256" }, { "internalType": "uint256", "name": "vaultType", "type": "uint256" }, { "internalType": "bool", "name": "isSmartColl", "type": "bool" }, { "internalType": "bool", "name": "isSmartDebt", "type": "bool" }, { "internalType": "address", "name": "supplyToken0", "type": "address" }, { "internalType": "address", "name": "supplyToken1", "type": "address" }, { "internalType": "address", "name": "borrowToken0", "type": "address" }, { "internalType": "address", "name": "borrowToken1", "type": "address" }, { "internalType": "uint256", "name": "supplyToken0Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "supplyToken1Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "borrowToken0Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "borrowToken1Decimals", "type": "uint256" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationThreshold", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationMaxLimit", "type": "uint16" }, { "internalType": "uint16", "name": "withdrawalGap", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationPenalty", "type": "uint16" }, { "internalType": "uint16", "name": "borrowFee", "type": "uint16" }, { "internalType": "address", "name": "oracle", "type": "address" }, { "internalType": "uint256", "name": "oraclePriceOperate", "type": "uint256" }, { "internalType": "uint256", "name": "oraclePriceLiquidate", "type": "uint256" }, { "internalType": "uint256", "name": "vaultSupplyExchangePrice", "type": "uint256" }, { "internalType": "uint256", "name": "vaultBorrowExchangePrice", "type": "uint256" }, { "internalType": "int256", "name": "supplyRateVault", "type": "int256" }, { "internalType": "int256", "name": "borrowRateVault", "type": "int256" }, { "internalType": "int256", "name": "rewardsOrFeeRateSupply", "type": "int256" }, { "internalType": "int256", "name": "rewardsOrFeeRateBorrow", "type": "int256" }, { "internalType": "uint256", "name": "totalPositions", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplyVault", "type": "uint256" }, { "internalType": "uint256", "name": "totalBorrowVault", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawalLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawableUntilLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawable", "type": "uint256" }, { "internalType": "uint256", "name": "baseWithdrawalLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawExpandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawExpandDuration", "type": "uint256" }, { "internalType": "uint256", "name": "borrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowableUntilLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowLimitUtilization", "type": "uint256" }, { "internalType": "uint256", "name": "maxBorrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowExpandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "borrowExpandDuration", "type": "uint256" }, { "internalType": "uint256", "name": "baseBorrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "minimumBorrowing", "type": "uint256" }], "internalType": "struct FluidView.VaultData", "name": "vault", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_nftId", "type": "uint256" }], "name": "getRatio", "outputs": [{ "internalType": "uint256", "name": "ratio", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }], "name": "getUserNftIds", "outputs": [{ "internalType": "uint256[]", "name": "", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }], "name": "getUserPositions", "outputs": [{ "components": [{ "internalType": "uint256", "name": "nftId", "type": "uint256" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "bool", "name": "isLiquidated", "type": "bool" }, { "internalType": "bool", "name": "isSupplyPosition", "type": "bool" }, { "internalType": "uint256", "name": "supply", "type": "uint256" }, { "internalType": "uint256", "name": "borrow", "type": "uint256" }, { "internalType": "uint256", "name": "ratio", "type": "uint256" }, { "internalType": "int256", "name": "tick", "type": "int256" }, { "internalType": "uint256", "name": "tickId", "type": "uint256" }], "internalType": "struct FluidView.UserPosition[]", "name": "positions", "type": "tuple[]" }, { "components": [{ "internalType": "address", "name": "vault", "type": "address" }, { "internalType": "uint256", "name": "vaultId", "type": "uint256" }, { "internalType": "uint256", "name": "vaultType", "type": "uint256" }, { "internalType": "bool", "name": "isSmartColl", "type": "bool" }, { "internalType": "bool", "name": "isSmartDebt", "type": "bool" }, { "internalType": "address", "name": "supplyToken0", "type": "address" }, { "internalType": "address", "name": "supplyToken1", "type": "address" }, { "internalType": "address", "name": "borrowToken0", "type": "address" }, { "internalType": "address", "name": "borrowToken1", "type": "address" }, { "internalType": "uint256", "name": "supplyToken0Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "supplyToken1Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "borrowToken0Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "borrowToken1Decimals", "type": "uint256" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationThreshold", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationMaxLimit", "type": "uint16" }, { "internalType": "uint16", "name": "withdrawalGap", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationPenalty", "type": "uint16" }, { "internalType": "uint16", "name": "borrowFee", "type": "uint16" }, { "internalType": "address", "name": "oracle", "type": "address" }, { "internalType": "uint256", "name": "oraclePriceOperate", "type": "uint256" }, { "internalType": "uint256", "name": "oraclePriceLiquidate", "type": "uint256" }, { "internalType": "uint256", "name": "vaultSupplyExchangePrice", "type": "uint256" }, { "internalType": "uint256", "name": "vaultBorrowExchangePrice", "type": "uint256" }, { "internalType": "int256", "name": "supplyRateVault", "type": "int256" }, { "internalType": "int256", "name": "borrowRateVault", "type": "int256" }, { "internalType": "int256", "name": "rewardsOrFeeRateSupply", "type": "int256" }, { "internalType": "int256", "name": "rewardsOrFeeRateBorrow", "type": "int256" }, { "internalType": "uint256", "name": "totalPositions", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplyVault", "type": "uint256" }, { "internalType": "uint256", "name": "totalBorrowVault", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawalLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawableUntilLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawable", "type": "uint256" }, { "internalType": "uint256", "name": "baseWithdrawalLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawExpandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawExpandDuration", "type": "uint256" }, { "internalType": "uint256", "name": "borrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowableUntilLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowLimitUtilization", "type": "uint256" }, { "internalType": "uint256", "name": "maxBorrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowExpandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "borrowExpandDuration", "type": "uint256" }, { "internalType": "uint256", "name": "baseBorrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "minimumBorrowing", "type": "uint256" }], "internalType": "struct FluidView.VaultData[]", "name": "vaults", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256[]", "name": "_ids", "type": "uint256[]" }, { "internalType": "bool", "name": "_fetchAll", "type": "bool" }], "name": "getVaultAddresses", "outputs": [{ "internalType": "address[]", "name": "", "type": "address[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_vault", "type": "address" }], "name": "getVaultData", "outputs": [{ "components": [{ "internalType": "address", "name": "vault", "type": "address" }, { "internalType": "uint256", "name": "vaultId", "type": "uint256" }, { "internalType": "uint256", "name": "vaultType", "type": "uint256" }, { "internalType": "bool", "name": "isSmartColl", "type": "bool" }, { "internalType": "bool", "name": "isSmartDebt", "type": "bool" }, { "internalType": "address", "name": "supplyToken0", "type": "address" }, { "internalType": "address", "name": "supplyToken1", "type": "address" }, { "internalType": "address", "name": "borrowToken0", "type": "address" }, { "internalType": "address", "name": "borrowToken1", "type": "address" }, { "internalType": "uint256", "name": "supplyToken0Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "supplyToken1Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "borrowToken0Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "borrowToken1Decimals", "type": "uint256" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationThreshold", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationMaxLimit", "type": "uint16" }, { "internalType": "uint16", "name": "withdrawalGap", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationPenalty", "type": "uint16" }, { "internalType": "uint16", "name": "borrowFee", "type": "uint16" }, { "internalType": "address", "name": "oracle", "type": "address" }, { "internalType": "uint256", "name": "oraclePriceOperate", "type": "uint256" }, { "internalType": "uint256", "name": "oraclePriceLiquidate", "type": "uint256" }, { "internalType": "uint256", "name": "vaultSupplyExchangePrice", "type": "uint256" }, { "internalType": "uint256", "name": "vaultBorrowExchangePrice", "type": "uint256" }, { "internalType": "int256", "name": "supplyRateVault", "type": "int256" }, { "internalType": "int256", "name": "borrowRateVault", "type": "int256" }, { "internalType": "int256", "name": "rewardsOrFeeRateSupply", "type": "int256" }, { "internalType": "int256", "name": "rewardsOrFeeRateBorrow", "type": "int256" }, { "internalType": "uint256", "name": "totalPositions", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplyVault", "type": "uint256" }, { "internalType": "uint256", "name": "totalBorrowVault", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawalLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawableUntilLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawable", "type": "uint256" }, { "internalType": "uint256", "name": "baseWithdrawalLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawExpandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawExpandDuration", "type": "uint256" }, { "internalType": "uint256", "name": "borrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowableUntilLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowLimitUtilization", "type": "uint256" }, { "internalType": "uint256", "name": "maxBorrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowExpandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "borrowExpandDuration", "type": "uint256" }, { "internalType": "uint256", "name": "baseBorrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "minimumBorrowing", "type": "uint256" }], "internalType": "struct FluidView.VaultData", "name": "vaultData", "type": "tuple" }], "stateMutability": "view", "type": "function" }],
|
|
1109
|
+
"abi": [{ "inputs": [], "name": "getAllFTokens", "outputs": [{ "internalType": "address[]", "name": "", "type": "address[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getAllFTokensData", "outputs": [{ "components": [{ "internalType": "address", "name": "tokenAddress", "type": "address" }, { "internalType": "bool", "name": "isNativeUnderlying", "type": "bool" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "string", "name": "symbol", "type": "string" }, { "internalType": "uint256", "name": "decimals", "type": "uint256" }, { "internalType": "address", "name": "asset", "type": "address" }, { "internalType": "uint256", "name": "totalAssets", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupply", "type": "uint256" }, { "internalType": "uint256", "name": "convertToShares", "type": "uint256" }, { "internalType": "uint256", "name": "convertToAssets", "type": "uint256" }, { "internalType": "uint256", "name": "rewardsRate", "type": "uint256" }, { "internalType": "uint256", "name": "supplyRate", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawable", "type": "uint256" }, { "internalType": "bool", "name": "modeWithInterest", "type": "bool" }, { "internalType": "uint256", "name": "expandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "expandDuration", "type": "uint256" }], "internalType": "struct FluidView.FTokenData[]", "name": "", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }], "name": "getAllUserEarnPositionsWithFTokens", "outputs": [{ "components": [{ "internalType": "uint256", "name": "fTokenShares", "type": "uint256" }, { "internalType": "uint256", "name": "underlyingAssets", "type": "uint256" }, { "internalType": "uint256", "name": "underlyingBalance", "type": "uint256" }, { "internalType": "uint256", "name": "allowance", "type": "uint256" }], "internalType": "struct FluidView.UserEarnPosition[]", "name": "userPositions", "type": "tuple[]" }, { "components": [{ "internalType": "address", "name": "tokenAddress", "type": "address" }, { "internalType": "bool", "name": "isNativeUnderlying", "type": "bool" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "string", "name": "symbol", "type": "string" }, { "internalType": "uint256", "name": "decimals", "type": "uint256" }, { "internalType": "address", "name": "asset", "type": "address" }, { "internalType": "uint256", "name": "totalAssets", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupply", "type": "uint256" }, { "internalType": "uint256", "name": "convertToShares", "type": "uint256" }, { "internalType": "uint256", "name": "convertToAssets", "type": "uint256" }, { "internalType": "uint256", "name": "rewardsRate", "type": "uint256" }, { "internalType": "uint256", "name": "supplyRate", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawable", "type": "uint256" }, { "internalType": "bool", "name": "modeWithInterest", "type": "bool" }, { "internalType": "uint256", "name": "expandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "expandDuration", "type": "uint256" }], "internalType": "struct FluidView.FTokenData[]", "name": "fTokensData", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_fToken", "type": "address" }], "name": "getFTokenData", "outputs": [{ "components": [{ "internalType": "address", "name": "tokenAddress", "type": "address" }, { "internalType": "bool", "name": "isNativeUnderlying", "type": "bool" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "string", "name": "symbol", "type": "string" }, { "internalType": "uint256", "name": "decimals", "type": "uint256" }, { "internalType": "address", "name": "asset", "type": "address" }, { "internalType": "uint256", "name": "totalAssets", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupply", "type": "uint256" }, { "internalType": "uint256", "name": "convertToShares", "type": "uint256" }, { "internalType": "uint256", "name": "convertToAssets", "type": "uint256" }, { "internalType": "uint256", "name": "rewardsRate", "type": "uint256" }, { "internalType": "uint256", "name": "supplyRate", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawable", "type": "uint256" }, { "internalType": "bool", "name": "modeWithInterest", "type": "bool" }, { "internalType": "uint256", "name": "expandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "expandDuration", "type": "uint256" }], "internalType": "struct FluidView.FTokenData", "name": "fTokenData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_nftId", "type": "uint256" }], "name": "getPositionByNftId", "outputs": [{ "components": [{ "internalType": "uint256", "name": "nftId", "type": "uint256" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "bool", "name": "isLiquidated", "type": "bool" }, { "internalType": "bool", "name": "isSupplyPosition", "type": "bool" }, { "internalType": "uint256", "name": "supply", "type": "uint256" }, { "internalType": "uint256", "name": "borrow", "type": "uint256" }, { "internalType": "uint256", "name": "ratio", "type": "uint256" }, { "internalType": "int256", "name": "tick", "type": "int256" }, { "internalType": "uint256", "name": "tickId", "type": "uint256" }], "internalType": "struct FluidView.UserPosition", "name": "position", "type": "tuple" }, { "components": [{ "internalType": "address", "name": "vault", "type": "address" }, { "internalType": "uint256", "name": "vaultId", "type": "uint256" }, { "internalType": "uint256", "name": "vaultType", "type": "uint256" }, { "internalType": "bool", "name": "isSmartColl", "type": "bool" }, { "internalType": "bool", "name": "isSmartDebt", "type": "bool" }, { "internalType": "address", "name": "supplyToken0", "type": "address" }, { "internalType": "address", "name": "supplyToken1", "type": "address" }, { "internalType": "address", "name": "borrowToken0", "type": "address" }, { "internalType": "address", "name": "borrowToken1", "type": "address" }, { "internalType": "uint256", "name": "supplyToken0Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "supplyToken1Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "borrowToken0Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "borrowToken1Decimals", "type": "uint256" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationThreshold", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationMaxLimit", "type": "uint16" }, { "internalType": "uint16", "name": "withdrawalGap", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationPenalty", "type": "uint16" }, { "internalType": "uint16", "name": "borrowFee", "type": "uint16" }, { "internalType": "address", "name": "oracle", "type": "address" }, { "internalType": "uint256", "name": "oraclePriceOperate", "type": "uint256" }, { "internalType": "uint256", "name": "oraclePriceLiquidate", "type": "uint256" }, { "internalType": "uint256", "name": "vaultSupplyExchangePrice", "type": "uint256" }, { "internalType": "uint256", "name": "vaultBorrowExchangePrice", "type": "uint256" }, { "internalType": "int256", "name": "supplyRateVault", "type": "int256" }, { "internalType": "int256", "name": "borrowRateVault", "type": "int256" }, { "internalType": "int256", "name": "rewardsOrFeeRateSupply", "type": "int256" }, { "internalType": "int256", "name": "rewardsOrFeeRateBorrow", "type": "int256" }, { "internalType": "uint256", "name": "totalPositions", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplyVault", "type": "uint256" }, { "internalType": "uint256", "name": "totalBorrowVault", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawalLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawableUntilLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawable", "type": "uint256" }, { "internalType": "uint256", "name": "baseWithdrawalLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawExpandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawExpandDuration", "type": "uint256" }, { "internalType": "uint256", "name": "borrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowableUntilLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowLimitUtilization", "type": "uint256" }, { "internalType": "uint256", "name": "maxBorrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowExpandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "borrowExpandDuration", "type": "uint256" }, { "internalType": "uint256", "name": "baseBorrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "minimumBorrowing", "type": "uint256" }], "internalType": "struct FluidView.VaultData", "name": "vault", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_nftId", "type": "uint256" }], "name": "getRatio", "outputs": [{ "internalType": "uint256", "name": "ratio", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_fToken", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getUserEarnPosition", "outputs": [{ "components": [{ "internalType": "uint256", "name": "fTokenShares", "type": "uint256" }, { "internalType": "uint256", "name": "underlyingAssets", "type": "uint256" }, { "internalType": "uint256", "name": "underlyingBalance", "type": "uint256" }, { "internalType": "uint256", "name": "allowance", "type": "uint256" }], "internalType": "struct FluidView.UserEarnPosition", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_fToken", "type": "address" }, { "internalType": "address", "name": "_user", "type": "address" }], "name": "getUserEarnPositionWithFToken", "outputs": [{ "components": [{ "internalType": "uint256", "name": "fTokenShares", "type": "uint256" }, { "internalType": "uint256", "name": "underlyingAssets", "type": "uint256" }, { "internalType": "uint256", "name": "underlyingBalance", "type": "uint256" }, { "internalType": "uint256", "name": "allowance", "type": "uint256" }], "internalType": "struct FluidView.UserEarnPosition", "name": "userPosition", "type": "tuple" }, { "components": [{ "internalType": "address", "name": "tokenAddress", "type": "address" }, { "internalType": "bool", "name": "isNativeUnderlying", "type": "bool" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "string", "name": "symbol", "type": "string" }, { "internalType": "uint256", "name": "decimals", "type": "uint256" }, { "internalType": "address", "name": "asset", "type": "address" }, { "internalType": "uint256", "name": "totalAssets", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupply", "type": "uint256" }, { "internalType": "uint256", "name": "convertToShares", "type": "uint256" }, { "internalType": "uint256", "name": "convertToAssets", "type": "uint256" }, { "internalType": "uint256", "name": "rewardsRate", "type": "uint256" }, { "internalType": "uint256", "name": "supplyRate", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawable", "type": "uint256" }, { "internalType": "bool", "name": "modeWithInterest", "type": "bool" }, { "internalType": "uint256", "name": "expandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "expandDuration", "type": "uint256" }], "internalType": "struct FluidView.FTokenData", "name": "fTokenData", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }], "name": "getUserNftIds", "outputs": [{ "internalType": "uint256[]", "name": "", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }], "name": "getUserNftIdsWithVaultIds", "outputs": [{ "components": [{ "internalType": "uint256", "name": "nftId", "type": "uint256" }, { "internalType": "uint256", "name": "vaultId", "type": "uint256" }, { "internalType": "address", "name": "vaultAddr", "type": "address" }], "internalType": "struct FluidView.NftWithVault[]", "name": "retVal", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_user", "type": "address" }], "name": "getUserPositions", "outputs": [{ "components": [{ "internalType": "uint256", "name": "nftId", "type": "uint256" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "bool", "name": "isLiquidated", "type": "bool" }, { "internalType": "bool", "name": "isSupplyPosition", "type": "bool" }, { "internalType": "uint256", "name": "supply", "type": "uint256" }, { "internalType": "uint256", "name": "borrow", "type": "uint256" }, { "internalType": "uint256", "name": "ratio", "type": "uint256" }, { "internalType": "int256", "name": "tick", "type": "int256" }, { "internalType": "uint256", "name": "tickId", "type": "uint256" }], "internalType": "struct FluidView.UserPosition[]", "name": "positions", "type": "tuple[]" }, { "components": [{ "internalType": "address", "name": "vault", "type": "address" }, { "internalType": "uint256", "name": "vaultId", "type": "uint256" }, { "internalType": "uint256", "name": "vaultType", "type": "uint256" }, { "internalType": "bool", "name": "isSmartColl", "type": "bool" }, { "internalType": "bool", "name": "isSmartDebt", "type": "bool" }, { "internalType": "address", "name": "supplyToken0", "type": "address" }, { "internalType": "address", "name": "supplyToken1", "type": "address" }, { "internalType": "address", "name": "borrowToken0", "type": "address" }, { "internalType": "address", "name": "borrowToken1", "type": "address" }, { "internalType": "uint256", "name": "supplyToken0Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "supplyToken1Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "borrowToken0Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "borrowToken1Decimals", "type": "uint256" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationThreshold", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationMaxLimit", "type": "uint16" }, { "internalType": "uint16", "name": "withdrawalGap", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationPenalty", "type": "uint16" }, { "internalType": "uint16", "name": "borrowFee", "type": "uint16" }, { "internalType": "address", "name": "oracle", "type": "address" }, { "internalType": "uint256", "name": "oraclePriceOperate", "type": "uint256" }, { "internalType": "uint256", "name": "oraclePriceLiquidate", "type": "uint256" }, { "internalType": "uint256", "name": "vaultSupplyExchangePrice", "type": "uint256" }, { "internalType": "uint256", "name": "vaultBorrowExchangePrice", "type": "uint256" }, { "internalType": "int256", "name": "supplyRateVault", "type": "int256" }, { "internalType": "int256", "name": "borrowRateVault", "type": "int256" }, { "internalType": "int256", "name": "rewardsOrFeeRateSupply", "type": "int256" }, { "internalType": "int256", "name": "rewardsOrFeeRateBorrow", "type": "int256" }, { "internalType": "uint256", "name": "totalPositions", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplyVault", "type": "uint256" }, { "internalType": "uint256", "name": "totalBorrowVault", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawalLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawableUntilLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawable", "type": "uint256" }, { "internalType": "uint256", "name": "baseWithdrawalLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawExpandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawExpandDuration", "type": "uint256" }, { "internalType": "uint256", "name": "borrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowableUntilLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowLimitUtilization", "type": "uint256" }, { "internalType": "uint256", "name": "maxBorrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowExpandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "borrowExpandDuration", "type": "uint256" }, { "internalType": "uint256", "name": "baseBorrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "minimumBorrowing", "type": "uint256" }], "internalType": "struct FluidView.VaultData[]", "name": "vaults", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_vault", "type": "address" }], "name": "getVaultData", "outputs": [{ "components": [{ "internalType": "address", "name": "vault", "type": "address" }, { "internalType": "uint256", "name": "vaultId", "type": "uint256" }, { "internalType": "uint256", "name": "vaultType", "type": "uint256" }, { "internalType": "bool", "name": "isSmartColl", "type": "bool" }, { "internalType": "bool", "name": "isSmartDebt", "type": "bool" }, { "internalType": "address", "name": "supplyToken0", "type": "address" }, { "internalType": "address", "name": "supplyToken1", "type": "address" }, { "internalType": "address", "name": "borrowToken0", "type": "address" }, { "internalType": "address", "name": "borrowToken1", "type": "address" }, { "internalType": "uint256", "name": "supplyToken0Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "supplyToken1Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "borrowToken0Decimals", "type": "uint256" }, { "internalType": "uint256", "name": "borrowToken1Decimals", "type": "uint256" }, { "internalType": "uint16", "name": "collateralFactor", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationThreshold", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationMaxLimit", "type": "uint16" }, { "internalType": "uint16", "name": "withdrawalGap", "type": "uint16" }, { "internalType": "uint16", "name": "liquidationPenalty", "type": "uint16" }, { "internalType": "uint16", "name": "borrowFee", "type": "uint16" }, { "internalType": "address", "name": "oracle", "type": "address" }, { "internalType": "uint256", "name": "oraclePriceOperate", "type": "uint256" }, { "internalType": "uint256", "name": "oraclePriceLiquidate", "type": "uint256" }, { "internalType": "uint256", "name": "vaultSupplyExchangePrice", "type": "uint256" }, { "internalType": "uint256", "name": "vaultBorrowExchangePrice", "type": "uint256" }, { "internalType": "int256", "name": "supplyRateVault", "type": "int256" }, { "internalType": "int256", "name": "borrowRateVault", "type": "int256" }, { "internalType": "int256", "name": "rewardsOrFeeRateSupply", "type": "int256" }, { "internalType": "int256", "name": "rewardsOrFeeRateBorrow", "type": "int256" }, { "internalType": "uint256", "name": "totalPositions", "type": "uint256" }, { "internalType": "uint256", "name": "totalSupplyVault", "type": "uint256" }, { "internalType": "uint256", "name": "totalBorrowVault", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawalLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawableUntilLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawable", "type": "uint256" }, { "internalType": "uint256", "name": "baseWithdrawalLimit", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawExpandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "withdrawExpandDuration", "type": "uint256" }, { "internalType": "uint256", "name": "borrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowableUntilLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowable", "type": "uint256" }, { "internalType": "uint256", "name": "borrowLimitUtilization", "type": "uint256" }, { "internalType": "uint256", "name": "maxBorrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "borrowExpandPercent", "type": "uint256" }, { "internalType": "uint256", "name": "borrowExpandDuration", "type": "uint256" }, { "internalType": "uint256", "name": "baseBorrowLimit", "type": "uint256" }, { "internalType": "uint256", "name": "minimumBorrowing", "type": "uint256" }], "internalType": "struct FluidView.VaultData", "name": "vaultData", "type": "tuple" }], "stateMutability": "view", "type": "function" }],
|
|
1110
1110
|
"networks": {
|
|
1111
|
-
"1": { "address": "
|
|
1111
|
+
"1": { "address": "0xf8e3bbf7c95057be1fD5E741a9ADb73E956dC724" },
|
|
1112
|
+
"8453": { "address": "0x5835CaDbA8843CD6d6d55782908351E9c74221aD" },
|
|
1113
|
+
"42161": { "address": "0x2d51BB6Ac5c1eC8DD6432e1FF980fC864B626e01" }
|
|
1112
1114
|
}
|
|
1113
1115
|
}
|
|
1114
1116
|
};
|
package/esm/fluid/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { DFSFeedRegistryContract, FeedRegistryContract, FluidViewContract } from
|
|
|
15
15
|
import { getEthAmountForDecimals, isMainnetNetwork } from '../services/utils';
|
|
16
16
|
import { getFluidAggregatedData } from '../helpers/fluidHelpers';
|
|
17
17
|
import { chunkAndMulticall } from '../multicall';
|
|
18
|
-
import { getFluidMarketInfoById, getFluidVersionsDataForNetwork } from '../markets
|
|
18
|
+
import { getFluidMarketInfoById, getFluidVersionsDataForNetwork } from '../markets';
|
|
19
19
|
import { USD_QUOTE } from '../constants';
|
|
20
20
|
import { getChainlinkAssetAddress, getWstETHPrice } from '../services/priceService';
|
|
21
21
|
export const EMPTY_USED_ASSET = {
|
|
@@ -94,6 +94,7 @@ const parseMarketData = (web3, data, network) => __awaiter(void 0, void 0, void
|
|
|
94
94
|
const totalSupplyVault = getEthAmountForDecimals(data.totalSupplyVault, collAsset.decimals);
|
|
95
95
|
const totalBorrowVault = getEthAmountForDecimals(data.totalBorrowVault, debtAsset.decimals);
|
|
96
96
|
const liqRatio = new Dec(data.liquidationThreshold).div(100).toString();
|
|
97
|
+
const liquidationMaxLimit = new Dec(data.liquidationMaxLimit).div(100).toString();
|
|
97
98
|
const liqFactor = new Dec(data.liquidationThreshold).div(10000).toString();
|
|
98
99
|
const marketData = {
|
|
99
100
|
vaultId: +data.vaultId,
|
|
@@ -114,7 +115,7 @@ const parseMarketData = (web3, data, network) => __awaiter(void 0, void 0, void
|
|
|
114
115
|
totalSupplyVault,
|
|
115
116
|
totalBorrowVault,
|
|
116
117
|
totalSupplyVaultUsd: new Dec(totalSupplyVault).mul(collAssetData.price).toString(),
|
|
117
|
-
totalBorrowVaultUsd: new Dec(
|
|
118
|
+
totalBorrowVaultUsd: new Dec(totalBorrowVault).mul(debtAssetData.price).toString(),
|
|
118
119
|
withdrawalLimit: getEthAmountForDecimals(data.withdrawalLimit, collAsset.decimals),
|
|
119
120
|
withdrawableUntilLimit: getEthAmountForDecimals(data.withdrawableUntilLimit, collAsset.decimals),
|
|
120
121
|
withdrawable: getEthAmountForDecimals(data.withdrawable, collAsset.decimals),
|
|
@@ -125,6 +126,7 @@ const parseMarketData = (web3, data, network) => __awaiter(void 0, void 0, void
|
|
|
125
126
|
maxBorrowLimit: getEthAmountForDecimals(data.maxBorrowLimit, debtAsset.decimals),
|
|
126
127
|
baseBorrowLimit: getEthAmountForDecimals(data.baseBorrowLimit, debtAsset.decimals),
|
|
127
128
|
minimumBorrowing: getEthAmountForDecimals(data.minimumBorrowing, debtAsset.decimals),
|
|
129
|
+
liquidationMaxLimit,
|
|
128
130
|
borrowRate,
|
|
129
131
|
supplyRate,
|
|
130
132
|
};
|
|
@@ -6,8 +6,6 @@ export declare const WSTETH_ETH_3: (networkId?: NetworkNumber) => FluidMarketInf
|
|
|
6
6
|
export declare const WSTETH_USDC_4: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
7
7
|
export declare const WSTETH_USDT_5: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
8
8
|
export declare const WEETH_WSTETH_6: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
9
|
-
export declare const SUSDE_USDC_7: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
10
|
-
export declare const SUSDE_USDT_8: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
11
9
|
export declare const WEETH_USDC_9: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
12
10
|
export declare const WEETH_USDT_10: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
13
11
|
export declare const ETH_USDC_11: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
@@ -32,7 +30,6 @@ export declare const CBBTC_USDC_29: (networkId?: NetworkNumber) => FluidMarketIn
|
|
|
32
30
|
export declare const CBBTC_USDT_30: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
33
31
|
export declare const ETH_CBBTC_31: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
34
32
|
export declare const WEETH_CBBTC_32: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
35
|
-
export declare const WSTETH_CBBTC_33: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
36
33
|
export declare const WSTETH_ETH_WSTETH_ETH_44: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
37
34
|
export declare const ETH_USDC_USDT_45: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
38
35
|
export declare const WSTETH_USDC_USDT_46: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
@@ -48,14 +45,15 @@ export declare const WSTETH_GHO_55: (networkId?: NetworkNumber) => FluidMarketIn
|
|
|
48
45
|
export declare const SUSDE_GHO_56: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
49
46
|
export declare const WEETH_GHO_57: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
50
47
|
export declare const SUSDS_GHO_58: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
51
|
-
export declare const WBTC_GHO_59: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
52
|
-
export declare const CBBTC_GHO_60: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
53
48
|
export declare const GHO_USDC_GHO_USDC_61: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
54
49
|
export declare const WEETH_ETH_WSTETH_74: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
55
50
|
export declare const USDC_ETH_USDC_ETH_77: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
56
51
|
export declare const RSETH_ETH_WSTETH_78: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
57
52
|
export declare const RSETH_WSTETH_79: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
58
53
|
export declare const WEETHS_ETH_WSTETH_80: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
54
|
+
export declare const SUSDE_USDT_USDT_92: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
55
|
+
export declare const USDE_USDT_USDT_93: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
56
|
+
export declare const LBTC_CBBTC_WBTC_97: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
59
57
|
export declare const ETH_USDC_1_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
60
58
|
export declare const ETH_USDT_2_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
61
59
|
export declare const WSTETH_USDC_3_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
@@ -67,8 +65,19 @@ export declare const WEETH_USDT_8_ARB: (networkId?: NetworkNumber) => FluidMarke
|
|
|
67
65
|
export declare const ETH_ARB_9_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
68
66
|
export declare const ARB_USDC_10_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
69
67
|
export declare const ARB_USDT_11_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
68
|
+
export declare const WBTC_USDC_12_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
69
|
+
export declare const WBTC_USDT_13_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
70
70
|
export declare const WSTETH_ETH_WSTETH_ETH_16_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
71
71
|
export declare const WEETH_ETH_WSTETH_17_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
72
|
+
export declare const WBTC_ETH_18_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
73
|
+
export declare const ETH_WBTC_19_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
74
|
+
export declare const WSTETH_WBTC_20_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
75
|
+
export declare const WEETH_WBTC_21_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
76
|
+
export declare const USDC_ETH_USDC_ETH_22_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
77
|
+
export declare const ETH_USDC_USDT_23_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
78
|
+
export declare const WSTETH_USDC_USDT_24_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
79
|
+
export declare const WEETH_USDC_USDT_25_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
80
|
+
export declare const WBTC_USDC_USDT_26_ARB: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
72
81
|
export declare const ETH_USDC_1_BASE: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
73
82
|
export declare const WSTETH_USDC_2_BASE: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
74
83
|
export declare const WSTETH_ETH_3_BASE: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
@@ -85,6 +94,9 @@ export declare const CBBTC_ETH_13_BASE: (networkId?: NetworkNumber) => FluidMark
|
|
|
85
94
|
export declare const ETH_CBBTC_14_BASE: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
86
95
|
export declare const WEETH_CBBTC_15_BASE: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
87
96
|
export declare const WSTETH_CBBTC_16_BASE: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
97
|
+
export declare const ETH_SUSDS_17_BASE: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
98
|
+
export declare const WSTETH_SUSDS_18_BASE: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
99
|
+
export declare const CBBTC_SUSDS_19_BASE: (networkId?: NetworkNumber) => FluidMarketInfo;
|
|
88
100
|
export declare const FluidMarkets: (networkId: NetworkNumber) => {
|
|
89
101
|
ETH_USDC_1: FluidMarketInfo;
|
|
90
102
|
ETH_USDT_2: FluidMarketInfo;
|
|
@@ -92,8 +104,6 @@ export declare const FluidMarkets: (networkId: NetworkNumber) => {
|
|
|
92
104
|
WSTETH_USDC_4: FluidMarketInfo;
|
|
93
105
|
WSTETH_USDT_5: FluidMarketInfo;
|
|
94
106
|
WEETH_WSTETH_6: FluidMarketInfo;
|
|
95
|
-
SUSDE_USDC_7: FluidMarketInfo;
|
|
96
|
-
SUSDE_USDT_8: FluidMarketInfo;
|
|
97
107
|
WEETH_USDC_9: FluidMarketInfo;
|
|
98
108
|
WEETH_USDT_10: FluidMarketInfo;
|
|
99
109
|
ETH_USDC_11: FluidMarketInfo;
|
|
@@ -118,7 +128,6 @@ export declare const FluidMarkets: (networkId: NetworkNumber) => {
|
|
|
118
128
|
CBBTC_USDT_30: FluidMarketInfo;
|
|
119
129
|
ETH_CBBTC_31: FluidMarketInfo;
|
|
120
130
|
WEETH_CBBTC_32: FluidMarketInfo;
|
|
121
|
-
WSTETH_CBBTC_33: FluidMarketInfo;
|
|
122
131
|
WSTETH_ETH_WSTETH_ETH_44: FluidMarketInfo;
|
|
123
132
|
ETH_USDC_USDT_45: FluidMarketInfo;
|
|
124
133
|
WSTETH_USDC_USDT_46: FluidMarketInfo;
|
|
@@ -134,14 +143,15 @@ export declare const FluidMarkets: (networkId: NetworkNumber) => {
|
|
|
134
143
|
SUSDE_GHO_56: FluidMarketInfo;
|
|
135
144
|
WEETH_GHO_57: FluidMarketInfo;
|
|
136
145
|
SUSDS_GHO_58: FluidMarketInfo;
|
|
137
|
-
WBTC_GHO_59: FluidMarketInfo;
|
|
138
|
-
CBBTC_GHO_60: FluidMarketInfo;
|
|
139
146
|
GHO_USDC_GHO_USDC_61: FluidMarketInfo;
|
|
140
147
|
WEETH_ETH_WSTETH_74: FluidMarketInfo;
|
|
141
148
|
USDC_ETH_USDC_ETH_77: FluidMarketInfo;
|
|
142
149
|
RSETH_ETH_WSTETH_78: FluidMarketInfo;
|
|
143
150
|
RSETH_WSTETH_79: FluidMarketInfo;
|
|
144
151
|
WEETHS_ETH_WSTETH_80: FluidMarketInfo;
|
|
152
|
+
SUSDE_USDT_USDT_92: FluidMarketInfo;
|
|
153
|
+
USDE_USDT_USDT_93: FluidMarketInfo;
|
|
154
|
+
LBTC_CBBTC_WBTC_97: FluidMarketInfo;
|
|
145
155
|
ETH_USDC_1_ARB: FluidMarketInfo;
|
|
146
156
|
ETH_USDT_2_ARB: FluidMarketInfo;
|
|
147
157
|
WSTETH_USDC_3_ARB: FluidMarketInfo;
|
|
@@ -153,8 +163,19 @@ export declare const FluidMarkets: (networkId: NetworkNumber) => {
|
|
|
153
163
|
ETH_ARB_9_ARB: FluidMarketInfo;
|
|
154
164
|
ARB_USDC_10_ARB: FluidMarketInfo;
|
|
155
165
|
ARB_USDT_11_ARB: FluidMarketInfo;
|
|
166
|
+
WBTC_USDC_12_ARB: FluidMarketInfo;
|
|
167
|
+
WBTC_USDT_13_ARB: FluidMarketInfo;
|
|
156
168
|
WSTETH_ETH_WSTETH_ETH_16_ARB: FluidMarketInfo;
|
|
157
169
|
WEETH_ETH_WSTETH_17_ARB: FluidMarketInfo;
|
|
170
|
+
WBTC_ETH_18_ARB: FluidMarketInfo;
|
|
171
|
+
ETH_WBTC_19_ARB: FluidMarketInfo;
|
|
172
|
+
WSTETH_WBTC_20_ARB: FluidMarketInfo;
|
|
173
|
+
WEETH_WBTC_21_ARB: FluidMarketInfo;
|
|
174
|
+
USDC_ETH_USDC_ETH_22_ARB: FluidMarketInfo;
|
|
175
|
+
ETH_USDC_USDT_23_ARB: FluidMarketInfo;
|
|
176
|
+
WSTETH_USDC_USDT_24_ARB: FluidMarketInfo;
|
|
177
|
+
WEETH_USDC_USDT_25_ARB: FluidMarketInfo;
|
|
178
|
+
WBTC_USDC_USDT_26_ARB: FluidMarketInfo;
|
|
158
179
|
ETH_USDC_1_BASE: FluidMarketInfo;
|
|
159
180
|
WSTETH_USDC_2_BASE: FluidMarketInfo;
|
|
160
181
|
WSTETH_ETH_3_BASE: FluidMarketInfo;
|
|
@@ -171,6 +192,9 @@ export declare const FluidMarkets: (networkId: NetworkNumber) => {
|
|
|
171
192
|
ETH_CBBTC_14_BASE: FluidMarketInfo;
|
|
172
193
|
WEETH_CBBTC_15_BASE: FluidMarketInfo;
|
|
173
194
|
WSTETH_CBBTC_16_BASE: FluidMarketInfo;
|
|
195
|
+
ETH_SUSDS_17_BASE: FluidMarketInfo;
|
|
196
|
+
WSTETH_SUSDS_18_BASE: FluidMarketInfo;
|
|
197
|
+
CBBTC_SUSDS_19_BASE: FluidMarketInfo;
|
|
174
198
|
};
|
|
175
199
|
export declare const getFluidVersionsDataForNetwork: (network: NetworkNumber) => FluidMarketInfo[];
|
|
176
200
|
export declare const getFluidMarketInfoById: (vaultId: number, network?: NetworkNumber) => FluidMarketInfo | undefined;
|