@defisaver/positions-sdk 2.1.4-dev-plasma-2 → 2.1.5
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/.mocharc.json +4 -4
- package/.nvmrc +1 -1
- package/CLAUDE.md +32 -0
- package/README.md +64 -64
- package/cjs/aaveV3/index.js +1 -1
- package/cjs/aaveV3/merit.js +0 -3
- package/cjs/config/contracts.d.ts +0 -17
- package/cjs/config/contracts.js +0 -17
- package/cjs/curveUsd/index.js +2 -1
- package/cjs/helpers/morphoBlueHelpers/index.js +66 -66
- package/cjs/markets/aave/index.js +1 -1
- package/cjs/markets/aave/marketAssets.d.ts +0 -4
- package/cjs/markets/aave/marketAssets.js +1 -5
- package/cjs/markets/compound/index.js +0 -11
- package/cjs/markets/compound/marketsAssets.d.ts +0 -7
- package/cjs/markets/compound/marketsAssets.js +0 -7
- package/cjs/markets/spark/marketAssets.d.ts +0 -1
- package/cjs/markets/spark/marketAssets.js +0 -1
- package/cjs/services/utils.js +1 -1
- package/cjs/services/viem.d.ts +15 -54
- package/cjs/services/viem.js +0 -2
- package/cjs/types/common.d.ts +1 -2
- package/cjs/types/common.js +0 -1
- package/cjs/types/curveUsd.d.ts +2 -0
- package/esm/aaveV3/index.js +1 -1
- package/esm/aaveV3/merit.js +0 -3
- package/esm/config/contracts.d.ts +0 -17
- package/esm/config/contracts.js +0 -17
- package/esm/curveUsd/index.js +2 -1
- package/esm/helpers/morphoBlueHelpers/index.js +66 -66
- package/esm/markets/aave/index.js +1 -1
- package/esm/markets/aave/marketAssets.d.ts +0 -4
- package/esm/markets/aave/marketAssets.js +0 -4
- package/esm/markets/compound/index.js +0 -11
- package/esm/markets/compound/marketsAssets.d.ts +0 -7
- package/esm/markets/compound/marketsAssets.js +0 -7
- package/esm/markets/spark/marketAssets.d.ts +0 -1
- package/esm/markets/spark/marketAssets.js +0 -1
- package/esm/services/utils.js +1 -1
- package/esm/services/viem.d.ts +15 -54
- package/esm/services/viem.js +1 -3
- package/esm/types/common.d.ts +1 -2
- package/esm/types/common.js +0 -1
- package/esm/types/curveUsd.d.ts +2 -0
- package/package.json +47 -47
- package/src/aaveV2/index.ts +240 -240
- package/src/aaveV3/index.ts +614 -614
- package/src/aaveV3/merit.ts +94 -97
- package/src/aaveV3/merkl.ts +74 -74
- package/src/claiming/aaveV3.ts +154 -154
- package/src/claiming/compV3.ts +22 -22
- package/src/claiming/index.ts +12 -12
- package/src/claiming/king.ts +66 -66
- package/src/claiming/morphoBlue.ts +118 -118
- package/src/claiming/spark.ts +225 -225
- package/src/compoundV2/index.ts +244 -244
- package/src/compoundV3/index.ts +274 -274
- package/src/config/contracts.ts +1228 -1245
- package/src/constants/index.ts +10 -10
- package/src/contracts.ts +120 -120
- package/src/curveUsd/index.ts +254 -250
- package/src/eulerV2/index.ts +324 -324
- package/src/exchange/index.ts +25 -25
- package/src/fluid/index.ts +1638 -1638
- package/src/helpers/aaveHelpers/index.ts +185 -185
- package/src/helpers/compoundHelpers/index.ts +283 -283
- package/src/helpers/curveUsdHelpers/index.ts +40 -40
- package/src/helpers/eulerHelpers/index.ts +222 -222
- package/src/helpers/fluidHelpers/index.ts +326 -326
- package/src/helpers/index.ts +10 -10
- package/src/helpers/liquityV2Helpers/index.ts +82 -82
- package/src/helpers/llamaLendHelpers/index.ts +53 -53
- package/src/helpers/makerHelpers/index.ts +52 -52
- package/src/helpers/morphoBlueHelpers/index.ts +396 -396
- package/src/helpers/sparkHelpers/index.ts +155 -155
- package/src/index.ts +47 -47
- package/src/liquity/index.ts +159 -159
- package/src/liquityV2/index.ts +657 -657
- package/src/llamaLend/index.ts +305 -305
- package/src/maker/index.ts +223 -223
- package/src/markets/aave/index.ts +116 -116
- package/src/markets/aave/marketAssets.ts +49 -54
- package/src/markets/compound/index.ts +227 -238
- package/src/markets/compound/marketsAssets.ts +90 -97
- package/src/markets/curveUsd/index.ts +69 -69
- package/src/markets/euler/index.ts +26 -26
- package/src/markets/fluid/index.ts +2456 -2456
- package/src/markets/index.ts +25 -25
- package/src/markets/liquityV2/index.ts +102 -102
- package/src/markets/llamaLend/contractAddresses.ts +141 -141
- package/src/markets/llamaLend/index.ts +235 -235
- package/src/markets/morphoBlue/index.ts +895 -895
- package/src/markets/spark/index.ts +29 -29
- package/src/markets/spark/marketAssets.ts +11 -12
- package/src/moneymarket/moneymarketCommonService.ts +80 -80
- package/src/morphoBlue/index.ts +274 -274
- package/src/portfolio/index.ts +570 -570
- package/src/services/priceService.ts +159 -159
- package/src/services/utils.ts +99 -99
- package/src/services/viem.ts +32 -34
- package/src/setup.ts +8 -8
- package/src/spark/index.ts +445 -445
- package/src/staking/eligibility.ts +59 -59
- package/src/staking/index.ts +1 -1
- package/src/staking/staking.ts +170 -170
- package/src/types/aave.ts +189 -189
- package/src/types/claiming.ts +109 -109
- package/src/types/common.ts +105 -106
- package/src/types/compound.ts +136 -136
- package/src/types/curveUsd.ts +123 -121
- package/src/types/euler.ts +175 -175
- package/src/types/fluid.ts +448 -448
- package/src/types/index.ts +13 -13
- package/src/types/liquity.ts +30 -30
- package/src/types/liquityV2.ts +126 -126
- package/src/types/llamaLend.ts +159 -159
- package/src/types/maker.ts +63 -63
- package/src/types/merit.ts +1 -1
- package/src/types/merkl.ts +70 -70
- package/src/types/morphoBlue.ts +194 -194
- package/src/types/portfolio.ts +60 -60
- package/src/types/spark.ts +135 -135
- package/src/umbrella/index.ts +69 -69
- package/src/umbrella/umbrellaUtils.ts +29 -29
package/.mocharc.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"require": "ts-node/register",
|
|
3
|
-
"extension": ["ts"]
|
|
4
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"require": "ts-node/register",
|
|
3
|
+
"extension": ["ts"]
|
|
4
|
+
}
|
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v20.17.0
|
|
1
|
+
v20.17.0
|
package/CLAUDE.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# DeFiSaver Positions SDK
|
|
2
|
+
|
|
3
|
+
TypeScript SDK for DeFi positions tracking and management.
|
|
4
|
+
|
|
5
|
+
## Commands
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Development
|
|
9
|
+
npm run dev # Watch mode compilation
|
|
10
|
+
npm run build # Lint and build both CJS and ESM
|
|
11
|
+
npm run build:cjs # Build CommonJS
|
|
12
|
+
npm run build:esm # Build ES modules
|
|
13
|
+
|
|
14
|
+
# Linting
|
|
15
|
+
npm run lint # Lint and fix
|
|
16
|
+
npm run lint-check # Lint without fixing
|
|
17
|
+
|
|
18
|
+
# Testing
|
|
19
|
+
npm run test # Run all tests
|
|
20
|
+
npm run test-single # Run single test (use --name=filename)
|
|
21
|
+
npm run test:debugger # Run tests with debugger
|
|
22
|
+
|
|
23
|
+
# Versioning
|
|
24
|
+
npm run version-bump # Commit and bump patch version
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Project Structure
|
|
28
|
+
|
|
29
|
+
- `src/` - TypeScript source code
|
|
30
|
+
- `tests/` - Test files
|
|
31
|
+
- `esm/` - ES module build output
|
|
32
|
+
- `cjs/` - CommonJS build output
|
package/README.md
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
# DeFi Saver Positions SDK
|
|
2
|
-
|
|
3
|
-
Supported protocols:
|
|
4
|
-
- [Maker](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/maker)
|
|
5
|
-
- [Spark](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/spark)
|
|
6
|
-
- [CrvUSD](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/curveUsd)
|
|
7
|
-
- [Aave V2](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/aaveV2)
|
|
8
|
-
- [Aave V3](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/aaveV3)
|
|
9
|
-
- [Compound V2](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/compoundV2)
|
|
10
|
-
- [Compound V3](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/compoundV3)
|
|
11
|
-
- [Liquity](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/liquity)
|
|
12
|
-
|
|
13
|
-
## Setup
|
|
14
|
-
Supported Node version is v10.
|
|
15
|
-
|
|
16
|
-
- run `npm install` (first time)
|
|
17
|
-
- run `npm run build`
|
|
18
|
-
|
|
19
|
-
`build` command will generate contracts and build ejs and esm folders
|
|
20
|
-
|
|
21
|
-
## How to use
|
|
22
|
-
[All available imports](https://github.com/defisaver/defisaver-positions-sdk/blob/main/src/index.ts)
|
|
23
|
-
|
|
24
|
-
This is a Compound V3 example, and every other protocol is similar
|
|
25
|
-
```js
|
|
26
|
-
import { compoundV3 } from '@defisaver/positions-sdk';
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
// every protocol has market data and user data getters
|
|
30
|
-
const {
|
|
31
|
-
getCompoundV3MarketsData,
|
|
32
|
-
getCompoundV3AccountData,
|
|
33
|
-
} = compoundV3;
|
|
34
|
-
|
|
35
|
-
const provider = 'Your RPC provider';
|
|
36
|
-
|
|
37
|
-
const user = '0x123...';
|
|
38
|
-
|
|
39
|
-
const { assetsData } = await getCompoundV3MarketsData(
|
|
40
|
-
provider, // rpc for the network you are using (note: can be tenderly or any other testnet rpc)
|
|
41
|
-
1, // network
|
|
42
|
-
selectedMarket, // market object like in /src/markets/compound/index.ts
|
|
43
|
-
provider, // this must be mainnet rpc - used for getting prices onchain and calculating apys
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
const userData = await getCompoundV3AccountData(
|
|
47
|
-
provider,
|
|
48
|
-
1, // network
|
|
49
|
-
userAddress, // EOA or DSProxy
|
|
50
|
-
'', // proxy address of the user, or just empty string if checking for EOA
|
|
51
|
-
{
|
|
52
|
-
selectedMarket, // market object as in /src/markets/compound/index.ts
|
|
53
|
-
assetsData,
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
More examples found [here](https://github.com/defisaver/defisaver-positions-sdk/tree/main/tests)
|
|
59
|
-
|
|
60
|
-
## Testing
|
|
61
|
-
|
|
62
|
-
`npm run test` - Run all tests
|
|
63
|
-
|
|
64
|
-
`npm run test-single --name=your_test_name` - Run single test for specified name e.g. for MyTest.js test name is MyTest
|
|
1
|
+
# DeFi Saver Positions SDK
|
|
2
|
+
|
|
3
|
+
Supported protocols:
|
|
4
|
+
- [Maker](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/maker)
|
|
5
|
+
- [Spark](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/spark)
|
|
6
|
+
- [CrvUSD](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/curveUsd)
|
|
7
|
+
- [Aave V2](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/aaveV2)
|
|
8
|
+
- [Aave V3](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/aaveV3)
|
|
9
|
+
- [Compound V2](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/compoundV2)
|
|
10
|
+
- [Compound V3](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/compoundV3)
|
|
11
|
+
- [Liquity](https://github.com/defisaver/defisaver-positions-sdk/tree/main/src/liquity)
|
|
12
|
+
|
|
13
|
+
## Setup
|
|
14
|
+
Supported Node version is v10.
|
|
15
|
+
|
|
16
|
+
- run `npm install` (first time)
|
|
17
|
+
- run `npm run build`
|
|
18
|
+
|
|
19
|
+
`build` command will generate contracts and build ejs and esm folders
|
|
20
|
+
|
|
21
|
+
## How to use
|
|
22
|
+
[All available imports](https://github.com/defisaver/defisaver-positions-sdk/blob/main/src/index.ts)
|
|
23
|
+
|
|
24
|
+
This is a Compound V3 example, and every other protocol is similar
|
|
25
|
+
```js
|
|
26
|
+
import { compoundV3 } from '@defisaver/positions-sdk';
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
// every protocol has market data and user data getters
|
|
30
|
+
const {
|
|
31
|
+
getCompoundV3MarketsData,
|
|
32
|
+
getCompoundV3AccountData,
|
|
33
|
+
} = compoundV3;
|
|
34
|
+
|
|
35
|
+
const provider = 'Your RPC provider';
|
|
36
|
+
|
|
37
|
+
const user = '0x123...';
|
|
38
|
+
|
|
39
|
+
const { assetsData } = await getCompoundV3MarketsData(
|
|
40
|
+
provider, // rpc for the network you are using (note: can be tenderly or any other testnet rpc)
|
|
41
|
+
1, // network
|
|
42
|
+
selectedMarket, // market object like in /src/markets/compound/index.ts
|
|
43
|
+
provider, // this must be mainnet rpc - used for getting prices onchain and calculating apys
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
const userData = await getCompoundV3AccountData(
|
|
47
|
+
provider,
|
|
48
|
+
1, // network
|
|
49
|
+
userAddress, // EOA or DSProxy
|
|
50
|
+
'', // proxy address of the user, or just empty string if checking for EOA
|
|
51
|
+
{
|
|
52
|
+
selectedMarket, // market object as in /src/markets/compound/index.ts
|
|
53
|
+
assetsData,
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
More examples found [here](https://github.com/defisaver/defisaver-positions-sdk/tree/main/tests)
|
|
59
|
+
|
|
60
|
+
## Testing
|
|
61
|
+
|
|
62
|
+
`npm run test` - Run all tests
|
|
63
|
+
|
|
64
|
+
`npm run test-single --name=your_test_name` - Run single test for specified name e.g. for MyTest.js test name is MyTest
|
package/cjs/aaveV3/index.js
CHANGED
|
@@ -63,7 +63,7 @@ function _getAaveV3MarketData(provider_1, network_1, market_1) {
|
|
|
63
63
|
const loanInfoContract = (0, contracts_1.AaveV3ViewContractViem)(provider, network);
|
|
64
64
|
const aaveIncentivesContract = (0, contracts_1.AaveIncentiveDataProviderV3ContractViem)(provider, network);
|
|
65
65
|
const marketAddress = market.providerAddress;
|
|
66
|
-
const networksWithIncentives = [common_1.NetworkNumber.Eth, common_1.NetworkNumber.Arb, common_1.NetworkNumber.Opt, common_1.NetworkNumber.Linea
|
|
66
|
+
const networksWithIncentives = [common_1.NetworkNumber.Eth, common_1.NetworkNumber.Arb, common_1.NetworkNumber.Opt, common_1.NetworkNumber.Linea];
|
|
67
67
|
// eslint-disable-next-line prefer-const
|
|
68
68
|
let [loanInfo, eModesInfo, isBorrowAllowed, rewardInfo, merkleRewardsMap, meritRewardsMap] = yield Promise.all([
|
|
69
69
|
loanInfoContract.read.getFullTokensInfo([marketAddress, _addresses], (0, viem_1.setViemBlockNumber)(blockNumber)),
|
package/cjs/aaveV3/merit.js
CHANGED
|
@@ -28303,11 +28303,6 @@ export declare const AaveV3View: {
|
|
|
28303
28303
|
};
|
|
28304
28304
|
};
|
|
28305
28305
|
};
|
|
28306
|
-
readonly "9745": {
|
|
28307
|
-
readonly address: "0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C";
|
|
28308
|
-
readonly createdBlock: 1880799;
|
|
28309
|
-
readonly oldVersions: {};
|
|
28310
|
-
};
|
|
28311
28306
|
};
|
|
28312
28307
|
};
|
|
28313
28308
|
export declare const AaveV3PoolAddressesProvider: {
|
|
@@ -28768,9 +28763,6 @@ export declare const AaveV3PoolAddressesProvider: {
|
|
|
28768
28763
|
readonly "59144": {
|
|
28769
28764
|
readonly address: "0x89502c3731F69DDC95B65753708A07F8Cd0373F4";
|
|
28770
28765
|
};
|
|
28771
|
-
readonly "9745": {
|
|
28772
|
-
readonly address: "0x061D8e131F26512348ee5FA42e2DF1bA9d6505E9";
|
|
28773
|
-
};
|
|
28774
28766
|
};
|
|
28775
28767
|
};
|
|
28776
28768
|
export declare const AaveV3LidoPoolAddressesProvider: {
|
|
@@ -31141,9 +31133,6 @@ export declare const AaveV3LendingPool: {
|
|
|
31141
31133
|
readonly "59144": {
|
|
31142
31134
|
readonly address: "0xc47b8C00b0f69a36fa203Ffeac0334874574a8Ac";
|
|
31143
31135
|
};
|
|
31144
|
-
readonly "9745": {
|
|
31145
|
-
readonly address: "0x925a2A7214Ed92428B5b1B090F80b25700095e12";
|
|
31146
|
-
};
|
|
31147
31136
|
};
|
|
31148
31137
|
};
|
|
31149
31138
|
export declare const AaveV3LidoLendingPool: {
|
|
@@ -34478,9 +34467,6 @@ export declare const AaveV3ProtocolDataProvider: {
|
|
|
34478
34467
|
readonly "59144": {
|
|
34479
34468
|
readonly address: "0x47cd4b507B81cB831669c71c7077f4daF6762FF4";
|
|
34480
34469
|
};
|
|
34481
|
-
readonly "9745": {
|
|
34482
|
-
readonly address: "0xf2D6E38B407e31E7E7e4a16E6769728b76c7419F";
|
|
34483
|
-
};
|
|
34484
34470
|
};
|
|
34485
34471
|
};
|
|
34486
34472
|
export declare const AaveV3LidoProtocolDataProvider: {
|
|
@@ -35819,9 +35805,6 @@ export declare const AaveUiIncentiveDataProviderV3: {
|
|
|
35819
35805
|
readonly "59144": {
|
|
35820
35806
|
readonly address: "0x117684358D990E42Eb1649E7e8C4691951dc1E71";
|
|
35821
35807
|
};
|
|
35822
|
-
readonly "9745": {
|
|
35823
|
-
readonly address: "0xcb85C501B3A5e9851850d66648d69B26A4c90942";
|
|
35824
|
-
};
|
|
35825
35808
|
};
|
|
35826
35809
|
};
|
|
35827
35810
|
export declare const cUSDCv3: {
|
package/cjs/config/contracts.js
CHANGED
|
@@ -231,11 +231,6 @@ exports.AaveV3View = {
|
|
|
231
231
|
"address": "0xc9D6EfA6e08B66a5Cdc516Bcd5807c2fa69E0f2A"
|
|
232
232
|
}
|
|
233
233
|
},
|
|
234
|
-
},
|
|
235
|
-
"9745": {
|
|
236
|
-
"address": "0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C",
|
|
237
|
-
"createdBlock": 1880799,
|
|
238
|
-
"oldVersions": {},
|
|
239
234
|
}
|
|
240
235
|
}
|
|
241
236
|
};
|
|
@@ -256,9 +251,6 @@ exports.AaveV3PoolAddressesProvider = {
|
|
|
256
251
|
},
|
|
257
252
|
"59144": {
|
|
258
253
|
"address": "0x89502c3731F69DDC95B65753708A07F8Cd0373F4"
|
|
259
|
-
},
|
|
260
|
-
"9745": {
|
|
261
|
-
"address": "0x061D8e131F26512348ee5FA42e2DF1bA9d6505E9"
|
|
262
254
|
}
|
|
263
255
|
}
|
|
264
256
|
};
|
|
@@ -295,9 +287,6 @@ exports.AaveV3LendingPool = {
|
|
|
295
287
|
},
|
|
296
288
|
"59144": {
|
|
297
289
|
"address": "0xc47b8C00b0f69a36fa203Ffeac0334874574a8Ac"
|
|
298
|
-
},
|
|
299
|
-
"9745": {
|
|
300
|
-
"address": "0x925a2A7214Ed92428B5b1B090F80b25700095e12"
|
|
301
290
|
}
|
|
302
291
|
}
|
|
303
292
|
};
|
|
@@ -334,9 +323,6 @@ exports.AaveV3ProtocolDataProvider = {
|
|
|
334
323
|
},
|
|
335
324
|
"59144": {
|
|
336
325
|
"address": "0x47cd4b507B81cB831669c71c7077f4daF6762FF4"
|
|
337
|
-
},
|
|
338
|
-
"9745": {
|
|
339
|
-
"address": "0xf2D6E38B407e31E7E7e4a16E6769728b76c7419F"
|
|
340
326
|
}
|
|
341
327
|
}
|
|
342
328
|
};
|
|
@@ -373,9 +359,6 @@ exports.AaveUiIncentiveDataProviderV3 = {
|
|
|
373
359
|
},
|
|
374
360
|
"59144": {
|
|
375
361
|
"address": "0x117684358D990E42Eb1649E7e8C4691951dc1E71"
|
|
376
|
-
},
|
|
377
|
-
"9745": {
|
|
378
|
-
"address": "0xcb85C501B3A5e9851850d66648d69B26A4c90942"
|
|
379
362
|
}
|
|
380
363
|
}
|
|
381
364
|
};
|
package/cjs/curveUsd/index.js
CHANGED
|
@@ -143,6 +143,7 @@ const _getCurveUsdUserData = (provider, network, address, selectedMarket, active
|
|
|
143
143
|
const collSuppliedUsd = new decimal_js_1.default(collSupplied).mul(collPrice).toString();
|
|
144
144
|
const crvUSDSupplied = (0, tokens_1.assetAmountInEth)(data.curveUsdCollateralAmount.toString(), debtAsset);
|
|
145
145
|
const debtBorrowed = (0, tokens_1.assetAmountInEth)(data.debtAmount.toString(), debtAsset);
|
|
146
|
+
const collRatio = data.loanExists ? new decimal_js_1.default(collSuppliedUsd).div(debtBorrowed).toString() : '0';
|
|
146
147
|
const usedAssets = data.loanExists ? {
|
|
147
148
|
[collAsset]: {
|
|
148
149
|
isSupplied: true,
|
|
@@ -173,7 +174,7 @@ const _getCurveUsdUserData = (provider, network, address, selectedMarket, active
|
|
|
173
174
|
const _userBands = data.loanExists ? (yield getAndFormatBands(provider, network, selectedMarket, data.bandRange[0].toString(), data.bandRange[1].toString())) : [];
|
|
174
175
|
const status = data.loanExists ? getStatusForUser(data.bandRange.map(b => b.toString()), activeBand, crvUSDSupplied, collSupplied, healthPercent) : types_1.CrvUSDStatus.Nonexistant;
|
|
175
176
|
const userBands = _userBands.map((band, index) => (Object.assign(Object.assign({}, band), { userDebtAmount: (0, tokens_1.assetAmountInEth)(data.usersBands[0][index].toString(), debtAsset), userCollAmount: (0, tokens_1.assetAmountInEth)(data.usersBands[1][index].toString(), collAsset) }))).sort((a, b) => parseInt(b.id, 10) - parseInt(a.id, 10));
|
|
176
|
-
return Object.assign(Object.assign(Object.assign(Object.assign({}, data), { debtAmount: (0, tokens_1.assetAmountInEth)(data.debtAmount.toString(), debtAsset), health,
|
|
177
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, data), { collRatio, collateralPrice: collPrice, debtAmount: (0, tokens_1.assetAmountInEth)(data.debtAmount.toString(), debtAsset), health,
|
|
177
178
|
healthPercent,
|
|
178
179
|
priceHigh,
|
|
179
180
|
priceLow, liquidationDiscount: (0, tokens_1.assetAmountInEth)(data.liquidationDiscount.toString()), numOfBands: data.N.toString(), usedAssets,
|
|
@@ -128,73 +128,73 @@ const getApyAfterValuesEstimation = (selectedMarket, actions, provider, network)
|
|
|
128
128
|
});
|
|
129
129
|
exports.getApyAfterValuesEstimation = getApyAfterValuesEstimation;
|
|
130
130
|
const API_URL = 'https://blue-api.morpho.org/graphql';
|
|
131
|
-
const MARKET_QUERY = `
|
|
132
|
-
query MarketByUniqueKey($uniqueKey: String!, $chainId: Int!) {
|
|
133
|
-
marketByUniqueKey(uniqueKey: $uniqueKey, chainId: $chainId) {
|
|
134
|
-
reallocatableLiquidityAssets
|
|
135
|
-
targetBorrowUtilization
|
|
136
|
-
loanAsset {
|
|
137
|
-
address
|
|
138
|
-
decimals
|
|
139
|
-
priceUsd
|
|
140
|
-
}
|
|
141
|
-
state {
|
|
142
|
-
liquidityAssets
|
|
143
|
-
borrowAssets
|
|
144
|
-
supplyAssets
|
|
145
|
-
}
|
|
146
|
-
publicAllocatorSharedLiquidity {
|
|
147
|
-
assets
|
|
148
|
-
vault {
|
|
149
|
-
address
|
|
150
|
-
name
|
|
151
|
-
}
|
|
152
|
-
allocationMarket {
|
|
153
|
-
uniqueKey
|
|
154
|
-
loanAsset {
|
|
155
|
-
address
|
|
156
|
-
}
|
|
157
|
-
collateralAsset {
|
|
158
|
-
address
|
|
159
|
-
}
|
|
160
|
-
irmAddress
|
|
161
|
-
oracle {
|
|
162
|
-
address
|
|
163
|
-
}
|
|
164
|
-
lltv
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
loanAsset {
|
|
168
|
-
address
|
|
169
|
-
}
|
|
170
|
-
collateralAsset {
|
|
171
|
-
address
|
|
172
|
-
}
|
|
173
|
-
oracle {
|
|
174
|
-
address
|
|
175
|
-
}
|
|
176
|
-
irmAddress
|
|
177
|
-
lltv
|
|
178
|
-
}
|
|
179
|
-
}
|
|
131
|
+
const MARKET_QUERY = `
|
|
132
|
+
query MarketByUniqueKey($uniqueKey: String!, $chainId: Int!) {
|
|
133
|
+
marketByUniqueKey(uniqueKey: $uniqueKey, chainId: $chainId) {
|
|
134
|
+
reallocatableLiquidityAssets
|
|
135
|
+
targetBorrowUtilization
|
|
136
|
+
loanAsset {
|
|
137
|
+
address
|
|
138
|
+
decimals
|
|
139
|
+
priceUsd
|
|
140
|
+
}
|
|
141
|
+
state {
|
|
142
|
+
liquidityAssets
|
|
143
|
+
borrowAssets
|
|
144
|
+
supplyAssets
|
|
145
|
+
}
|
|
146
|
+
publicAllocatorSharedLiquidity {
|
|
147
|
+
assets
|
|
148
|
+
vault {
|
|
149
|
+
address
|
|
150
|
+
name
|
|
151
|
+
}
|
|
152
|
+
allocationMarket {
|
|
153
|
+
uniqueKey
|
|
154
|
+
loanAsset {
|
|
155
|
+
address
|
|
156
|
+
}
|
|
157
|
+
collateralAsset {
|
|
158
|
+
address
|
|
159
|
+
}
|
|
160
|
+
irmAddress
|
|
161
|
+
oracle {
|
|
162
|
+
address
|
|
163
|
+
}
|
|
164
|
+
lltv
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
loanAsset {
|
|
168
|
+
address
|
|
169
|
+
}
|
|
170
|
+
collateralAsset {
|
|
171
|
+
address
|
|
172
|
+
}
|
|
173
|
+
oracle {
|
|
174
|
+
address
|
|
175
|
+
}
|
|
176
|
+
irmAddress
|
|
177
|
+
lltv
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
180
|
`;
|
|
181
|
-
const REWARDS_QUERY = `
|
|
182
|
-
query MarketByUniqueKey($uniqueKey: String!, $chainId: Int!) {
|
|
183
|
-
marketByUniqueKey(uniqueKey: $uniqueKey, chainId: $chainId) {
|
|
184
|
-
uniqueKey
|
|
185
|
-
state {
|
|
186
|
-
rewards {
|
|
187
|
-
amountPerSuppliedToken
|
|
188
|
-
supplyApr
|
|
189
|
-
amountPerBorrowedToken
|
|
190
|
-
borrowApr
|
|
191
|
-
asset {
|
|
192
|
-
address
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
181
|
+
const REWARDS_QUERY = `
|
|
182
|
+
query MarketByUniqueKey($uniqueKey: String!, $chainId: Int!) {
|
|
183
|
+
marketByUniqueKey(uniqueKey: $uniqueKey, chainId: $chainId) {
|
|
184
|
+
uniqueKey
|
|
185
|
+
state {
|
|
186
|
+
rewards {
|
|
187
|
+
amountPerSuppliedToken
|
|
188
|
+
supplyApr
|
|
189
|
+
amountPerBorrowedToken
|
|
190
|
+
borrowApr
|
|
191
|
+
asset {
|
|
192
|
+
address
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
198
|
`;
|
|
199
199
|
/**
|
|
200
200
|
* Get reallocatable liquidity to a given market and target borrow utilization
|
|
@@ -45,7 +45,7 @@ exports.AAVE_V2 = {
|
|
|
45
45
|
protocolName: 'aave',
|
|
46
46
|
};
|
|
47
47
|
const AAVE_V3 = (networkId) => ({
|
|
48
|
-
chainIds: [common_1.NetworkNumber.Eth, common_1.NetworkNumber.Opt, common_1.NetworkNumber.Arb, common_1.NetworkNumber.Base, common_1.NetworkNumber.Linea
|
|
48
|
+
chainIds: [common_1.NetworkNumber.Eth, common_1.NetworkNumber.Opt, common_1.NetworkNumber.Arb, common_1.NetworkNumber.Base, common_1.NetworkNumber.Linea],
|
|
49
49
|
label: networkId === common_1.NetworkNumber.Eth ? 'Aave v3 Core' : 'Aave v3',
|
|
50
50
|
shortLabel: 'v3',
|
|
51
51
|
value: types_1.AaveVersions.AaveV3,
|
|
@@ -6,14 +6,12 @@ export declare const aaveV3AssetsDefaultMarketOpt: string[];
|
|
|
6
6
|
export declare const aaveV3AssetsDefaultMarketArb: string[];
|
|
7
7
|
export declare const aaveV3AssetsDefaultMarketBase: string[];
|
|
8
8
|
export declare const aaveV3AssetsDefaultMarketLinea: string[];
|
|
9
|
-
export declare const aaveV3AssetsDefaultMarketPlasma: string[];
|
|
10
9
|
export declare const aaveV3AssetsDefaultMarket: {
|
|
11
10
|
readonly 1: string[];
|
|
12
11
|
readonly 10: string[];
|
|
13
12
|
readonly 42161: string[];
|
|
14
13
|
readonly 8453: string[];
|
|
15
14
|
readonly 59144: string[];
|
|
16
|
-
readonly 9745: string[];
|
|
17
15
|
};
|
|
18
16
|
export declare const aaveV3AssetsLidoMarketEth: string[];
|
|
19
17
|
export declare const aaveV3AssetsLidoMarket: {
|
|
@@ -22,7 +20,6 @@ export declare const aaveV3AssetsLidoMarket: {
|
|
|
22
20
|
readonly 42161: readonly [];
|
|
23
21
|
readonly 8453: readonly [];
|
|
24
22
|
readonly 59144: readonly [];
|
|
25
|
-
readonly 9745: readonly [];
|
|
26
23
|
};
|
|
27
24
|
export declare const aaveV3AssetsEtherfiMarketEth: string[];
|
|
28
25
|
export declare const aaveV3AssetsEtherfiMarket: {
|
|
@@ -31,5 +28,4 @@ export declare const aaveV3AssetsEtherfiMarket: {
|
|
|
31
28
|
readonly 42161: readonly [];
|
|
32
29
|
readonly 8453: readonly [];
|
|
33
30
|
readonly 59144: readonly [];
|
|
34
|
-
readonly 9745: readonly [];
|
|
35
31
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.aaveV3AssetsEtherfiMarket = exports.aaveV3AssetsEtherfiMarketEth = exports.aaveV3AssetsLidoMarket = exports.aaveV3AssetsLidoMarketEth = exports.aaveV3AssetsDefaultMarket = exports.
|
|
3
|
+
exports.aaveV3AssetsEtherfiMarket = exports.aaveV3AssetsEtherfiMarketEth = exports.aaveV3AssetsLidoMarket = exports.aaveV3AssetsLidoMarketEth = exports.aaveV3AssetsDefaultMarket = exports.aaveV3AssetsDefaultMarketLinea = exports.aaveV3AssetsDefaultMarketBase = exports.aaveV3AssetsDefaultMarketArb = exports.aaveV3AssetsDefaultMarketOpt = exports.aaveV3AssetsDefaultMarketEth = exports.aaveV2AssetsDefaultMarket = exports.aaveV1AssetsDefaultMarket = void 0;
|
|
4
4
|
const tokens_1 = require("@defisaver/tokens");
|
|
5
5
|
const common_1 = require("../../types/common");
|
|
6
6
|
exports.aaveV1AssetsDefaultMarket = [
|
|
@@ -18,7 +18,6 @@ exports.aaveV3AssetsDefaultMarketOpt = [
|
|
|
18
18
|
exports.aaveV3AssetsDefaultMarketArb = ['DAI', 'LINK', 'USDC.e', 'WBTC', 'ETH', 'USDT', 'AAVE', 'EURS', 'wstETH', 'MAI', 'rETH', 'LUSD', 'USDC', 'FRAX', 'ARB', 'weETH', 'GHO', 'ezETH', 'rsETH', 'tBTC'];
|
|
19
19
|
exports.aaveV3AssetsDefaultMarketBase = ['ETH', 'cbETH', 'USDbC', 'wstETH', 'USDC', 'weETH', 'cbBTC', 'ezETH', 'GHO', 'wrsETH', 'LBTC', 'EURC', 'AAVE', 'tBTC'];
|
|
20
20
|
exports.aaveV3AssetsDefaultMarketLinea = ['ETH', 'USDC', 'weETH', 'ezETH', 'USDT', 'wstETH', 'wrsETH', 'WBTC'];
|
|
21
|
-
exports.aaveV3AssetsDefaultMarketPlasma = ['ETH', 'USDT', 'sUSDe', 'USDe', 'weETH', 'XAUt'];
|
|
22
21
|
// @dev Keep assets in array, do not assign directly, so we can parse it and edit it programmatically with `scripts/updateMarkets`
|
|
23
22
|
exports.aaveV3AssetsDefaultMarket = {
|
|
24
23
|
[common_1.NetworkNumber.Eth]: exports.aaveV3AssetsDefaultMarketEth,
|
|
@@ -26,7 +25,6 @@ exports.aaveV3AssetsDefaultMarket = {
|
|
|
26
25
|
[common_1.NetworkNumber.Arb]: exports.aaveV3AssetsDefaultMarketArb,
|
|
27
26
|
[common_1.NetworkNumber.Base]: exports.aaveV3AssetsDefaultMarketBase,
|
|
28
27
|
[common_1.NetworkNumber.Linea]: exports.aaveV3AssetsDefaultMarketLinea,
|
|
29
|
-
[common_1.NetworkNumber.Plasma]: exports.aaveV3AssetsDefaultMarketPlasma,
|
|
30
28
|
};
|
|
31
29
|
exports.aaveV3AssetsLidoMarketEth = ['ETH', 'wstETH', 'USDS', 'USDC', 'ezETH', 'sUSDe', 'GHO', 'rsETH', 'tETH'];
|
|
32
30
|
exports.aaveV3AssetsLidoMarket = {
|
|
@@ -35,7 +33,6 @@ exports.aaveV3AssetsLidoMarket = {
|
|
|
35
33
|
[common_1.NetworkNumber.Arb]: [],
|
|
36
34
|
[common_1.NetworkNumber.Base]: [],
|
|
37
35
|
[common_1.NetworkNumber.Linea]: [],
|
|
38
|
-
[common_1.NetworkNumber.Plasma]: [],
|
|
39
36
|
};
|
|
40
37
|
exports.aaveV3AssetsEtherfiMarketEth = ['weETH', 'USDC', 'PYUSD', 'FRAX'];
|
|
41
38
|
exports.aaveV3AssetsEtherfiMarket = {
|
|
@@ -44,5 +41,4 @@ exports.aaveV3AssetsEtherfiMarket = {
|
|
|
44
41
|
[common_1.NetworkNumber.Arb]: [],
|
|
45
42
|
[common_1.NetworkNumber.Base]: [],
|
|
46
43
|
[common_1.NetworkNumber.Linea]: [],
|
|
47
|
-
[common_1.NetworkNumber.Plasma]: [],
|
|
48
44
|
};
|
|
@@ -73,17 +73,6 @@ const BULKER_OPTIONS = {
|
|
|
73
73
|
[types_1.CompoundVersions.CompoundV3wstETH]: EMPTY_BULKER_OPTIONS,
|
|
74
74
|
[types_1.CompoundVersions.CompoundV3USDS]: EMPTY_BULKER_OPTIONS,
|
|
75
75
|
},
|
|
76
|
-
[common_1.NetworkNumber.Plasma]: {
|
|
77
|
-
// Non-existing markets, keeping it because of typescript
|
|
78
|
-
[types_1.CompoundVersions.CompoundV3USDC]: EMPTY_BULKER_OPTIONS,
|
|
79
|
-
[types_1.CompoundVersions.CompoundV3USDT]: EMPTY_BULKER_OPTIONS,
|
|
80
|
-
[types_1.CompoundVersions.CompoundV3ETH]: EMPTY_BULKER_OPTIONS,
|
|
81
|
-
[types_1.CompoundVersions.CompoundV3USDbC]: EMPTY_BULKER_OPTIONS,
|
|
82
|
-
[types_1.CompoundVersions.CompoundV2]: EMPTY_BULKER_OPTIONS,
|
|
83
|
-
[types_1.CompoundVersions.CompoundV3USDCe]: EMPTY_BULKER_OPTIONS,
|
|
84
|
-
[types_1.CompoundVersions.CompoundV3wstETH]: EMPTY_BULKER_OPTIONS,
|
|
85
|
-
[types_1.CompoundVersions.CompoundV3USDS]: EMPTY_BULKER_OPTIONS,
|
|
86
|
-
},
|
|
87
76
|
};
|
|
88
77
|
exports.COMPOUND_V2 = {
|
|
89
78
|
chainIds: [common_1.NetworkNumber.Eth],
|
|
@@ -10,7 +10,6 @@ export declare const v3USDCCollAssets: {
|
|
|
10
10
|
readonly 42161: string[];
|
|
11
11
|
readonly 8453: string[];
|
|
12
12
|
readonly 59144: readonly [];
|
|
13
|
-
readonly 9745: readonly [];
|
|
14
13
|
};
|
|
15
14
|
export declare const v3USDCeCollAssetsArb: string[];
|
|
16
15
|
export declare const v3USDCeCollAssets: {
|
|
@@ -19,7 +18,6 @@ export declare const v3USDCeCollAssets: {
|
|
|
19
18
|
readonly 42161: string[];
|
|
20
19
|
readonly 8453: readonly [];
|
|
21
20
|
readonly 59144: readonly [];
|
|
22
|
-
readonly 9745: readonly [];
|
|
23
21
|
};
|
|
24
22
|
export declare const v3ETHCollAssetsEth: string[];
|
|
25
23
|
export declare const v3ETHCollAssetsBase: string[];
|
|
@@ -31,7 +29,6 @@ export declare const v3ETHCollAssets: {
|
|
|
31
29
|
readonly 42161: string[];
|
|
32
30
|
readonly 8453: string[];
|
|
33
31
|
readonly 59144: readonly [];
|
|
34
|
-
readonly 9745: readonly [];
|
|
35
32
|
};
|
|
36
33
|
export declare const v3USDbCCollAssetsBase: string[];
|
|
37
34
|
export declare const v3USDbCCollAssets: {
|
|
@@ -40,7 +37,6 @@ export declare const v3USDbCCollAssets: {
|
|
|
40
37
|
42161: never[];
|
|
41
38
|
8453: string[];
|
|
42
39
|
59144: never[];
|
|
43
|
-
9745: never[];
|
|
44
40
|
};
|
|
45
41
|
export declare const v3USDTCollAssetsEth: string[];
|
|
46
42
|
export declare const v3USDTCollAssetsArb: string[];
|
|
@@ -51,7 +47,6 @@ export declare const v3USDTCollAssets: {
|
|
|
51
47
|
42161: string[];
|
|
52
48
|
8453: never[];
|
|
53
49
|
59144: never[];
|
|
54
|
-
9745: never[];
|
|
55
50
|
};
|
|
56
51
|
export declare const v3USDSCollAssetsEth: string[];
|
|
57
52
|
export declare const v3USDSCollAssetsBase: string[];
|
|
@@ -61,7 +56,6 @@ export declare const v3USDSCollAssets: {
|
|
|
61
56
|
42161: never[];
|
|
62
57
|
8453: string[];
|
|
63
58
|
59144: never[];
|
|
64
|
-
9745: never[];
|
|
65
59
|
};
|
|
66
60
|
export declare const v3wstETHCollAssetsEth: string[];
|
|
67
61
|
export declare const v3wstETHCollAssets: {
|
|
@@ -70,5 +64,4 @@ export declare const v3wstETHCollAssets: {
|
|
|
70
64
|
42161: never[];
|
|
71
65
|
8453: never[];
|
|
72
66
|
59144: never[];
|
|
73
|
-
9745: never[];
|
|
74
67
|
};
|
|
@@ -18,7 +18,6 @@ exports.v3USDCCollAssets = {
|
|
|
18
18
|
[common_1.NetworkNumber.Arb]: exports.v3USDCCollAssetsArb,
|
|
19
19
|
[common_1.NetworkNumber.Base]: exports.v3USDCCollAssetsBase,
|
|
20
20
|
[common_1.NetworkNumber.Linea]: [],
|
|
21
|
-
[common_1.NetworkNumber.Plasma]: [],
|
|
22
21
|
};
|
|
23
22
|
exports.v3USDCeCollAssetsArb = ['ARB', 'ETH', 'GMX', 'WBTC'];
|
|
24
23
|
// @dev Keep assets in array, do not assign directly, so we can parse it and edit it programmatically with `scripts/updateMarkets`
|
|
@@ -28,7 +27,6 @@ exports.v3USDCeCollAssets = {
|
|
|
28
27
|
[common_1.NetworkNumber.Arb]: exports.v3USDCeCollAssetsArb,
|
|
29
28
|
[common_1.NetworkNumber.Base]: [],
|
|
30
29
|
[common_1.NetworkNumber.Linea]: [],
|
|
31
|
-
[common_1.NetworkNumber.Plasma]: [],
|
|
32
30
|
};
|
|
33
31
|
exports.v3ETHCollAssetsEth = ['cbETH', 'wstETH', 'rETH', 'rsETH', 'weETH', 'osETH', 'WBTC', 'ezETH', 'cbBTC', 'rswETH', 'tBTC', 'ETHx', 'tETH', 'pufETH', 'wOETH'];
|
|
34
32
|
exports.v3ETHCollAssetsBase = ['cbETH', 'ezETH', 'wstETH', 'USDC', 'weETH', 'wrsETH', 'cbBTC', 'wsuperOETHb'];
|
|
@@ -41,7 +39,6 @@ exports.v3ETHCollAssets = {
|
|
|
41
39
|
[common_1.NetworkNumber.Arb]: exports.v3ETHCollAssetsArb,
|
|
42
40
|
[common_1.NetworkNumber.Base]: exports.v3ETHCollAssetsBase,
|
|
43
41
|
[common_1.NetworkNumber.Linea]: [],
|
|
44
|
-
[common_1.NetworkNumber.Plasma]: [],
|
|
45
42
|
};
|
|
46
43
|
exports.v3USDbCCollAssetsBase = ['ETH', 'cbETH'];
|
|
47
44
|
// @dev Keep assets in array, do not assign directly, so we can parse it and edit it programmatically with `scripts/updateMarkets`
|
|
@@ -51,7 +48,6 @@ exports.v3USDbCCollAssets = {
|
|
|
51
48
|
[common_1.NetworkNumber.Arb]: [],
|
|
52
49
|
[common_1.NetworkNumber.Base]: exports.v3USDbCCollAssetsBase,
|
|
53
50
|
[common_1.NetworkNumber.Linea]: [],
|
|
54
|
-
[common_1.NetworkNumber.Plasma]: [],
|
|
55
51
|
};
|
|
56
52
|
exports.v3USDTCollAssetsEth = ['COMP', 'ETH', 'WBTC', 'UNI', 'LINK', 'wstETH', 'cbBTC', 'tBTC', 'wUSDM', 'sFRAX', 'mETH', 'weETH', 'sdeUSD', 'deUSD'];
|
|
57
53
|
exports.v3USDTCollAssetsArb = ['ETH', 'WBTC', 'wstETH', 'ARB', 'GMX'];
|
|
@@ -63,7 +59,6 @@ exports.v3USDTCollAssets = {
|
|
|
63
59
|
[common_1.NetworkNumber.Arb]: exports.v3USDTCollAssetsArb,
|
|
64
60
|
[common_1.NetworkNumber.Base]: [],
|
|
65
61
|
[common_1.NetworkNumber.Linea]: [],
|
|
66
|
-
[common_1.NetworkNumber.Plasma]: [],
|
|
67
62
|
};
|
|
68
63
|
exports.v3USDSCollAssetsEth = ['wstETH', 'ETH', 'sUSDS', 'cbETH', 'tBTC', 'USDe'];
|
|
69
64
|
exports.v3USDSCollAssetsBase = ['sUSDS', 'cbBTC'];
|
|
@@ -73,7 +68,6 @@ exports.v3USDSCollAssets = {
|
|
|
73
68
|
[common_1.NetworkNumber.Arb]: [],
|
|
74
69
|
[common_1.NetworkNumber.Base]: exports.v3USDSCollAssetsBase,
|
|
75
70
|
[common_1.NetworkNumber.Linea]: [],
|
|
76
|
-
[common_1.NetworkNumber.Plasma]: [],
|
|
77
71
|
};
|
|
78
72
|
exports.v3wstETHCollAssetsEth = ['rsETH', 'ezETH'];
|
|
79
73
|
exports.v3wstETHCollAssets = {
|
|
@@ -82,5 +76,4 @@ exports.v3wstETHCollAssets = {
|
|
|
82
76
|
[common_1.NetworkNumber.Arb]: [],
|
|
83
77
|
[common_1.NetworkNumber.Base]: [],
|
|
84
78
|
[common_1.NetworkNumber.Linea]: [],
|
|
85
|
-
[common_1.NetworkNumber.Plasma]: [],
|
|
86
79
|
};
|