@defisaver/positions-sdk 2.1.13-dev-plasma-fluid4 → 2.1.13-dev-plasma-fluid6

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.
@@ -74,6 +74,12 @@ const getChainLinkPricesForTokens = (tokens, network, client) => __awaiter(void
74
74
  return (0, priceService_1.getWstETHChainLinkPriceCalls)(client, network);
75
75
  if (assetInfo.symbol === 'weETH' && network !== common_1.NetworkNumber.Plasma)
76
76
  return (0, priceService_1.getWeETHChainLinkPriceCalls)(client, network);
77
+ if (assetInfo.symbol === 'wrsETH' && network === common_1.NetworkNumber.Plasma)
78
+ return (0, priceService_1.getWsrETHChainLinkPriceCalls)(client, network);
79
+ if (assetInfo.symbol === 'syrupUSDT')
80
+ return (0, priceService_1.getSyrupUSDTChainLinkPriceCalls)(client, network);
81
+ if (assetInfo.symbol === 'wstUSR')
82
+ return (0, priceService_1.getWstUSRChainLinkPriceCalls)(client, network);
77
83
  if (isMainnet) {
78
84
  const feedRegistryContract = (0, contracts_1.FeedRegistryContractViem)(client, common_1.NetworkNumber.Eth);
79
85
  return ({
@@ -112,6 +118,30 @@ const getChainLinkPricesForTokens = (tokens, network, client) => __awaiter(void
112
118
  acc[token] = new decimal_js_1.default(ethPrice).mul(wstETHRate).toString();
113
119
  break;
114
120
  }
121
+ case 'wrsETH': {
122
+ const { ethPrice, wrsETHRate, } = (0, priceService_1.parseWrsETHPriceCalls)(results[i + offset].result.toString(),
123
+ // @ts-ignore
124
+ results[i + offset + 1].result[1].toString());
125
+ offset += 1;
126
+ acc[token] = new decimal_js_1.default(ethPrice).mul(wrsETHRate).toString();
127
+ break;
128
+ }
129
+ case 'syrupUSDT': {
130
+ const { syrupUSDTRate, USDTRate, } = (0, priceService_1.parseSyrupUSDTPriceCalls)(results[i + offset].result.toString(),
131
+ // @ts-ignore
132
+ results[i + offset + 1].result[1].toString());
133
+ offset += 1;
134
+ acc[token] = new decimal_js_1.default(syrupUSDTRate).mul(USDTRate).toString();
135
+ break;
136
+ }
137
+ case 'wstUSR': {
138
+ const { wstUSRRate, USRRate, } = (0, priceService_1.parseWstUSRPriceCalls)(results[i + offset].result.toString(),
139
+ // @ts-ignore
140
+ results[i + offset + 1].result[1].toString());
141
+ offset += 1;
142
+ acc[token] = new decimal_js_1.default(wstUSRRate).mul(USRRate).toString();
143
+ break;
144
+ }
115
145
  // TODO: These addresses do not have chainlink feeds, so we need to handle them separately, this is hotfix
116
146
  case 'ezETH': {
117
147
  acc[token] = new decimal_js_1.default(ethPriceChainlink).mul(1.049).toString();
@@ -1230,6 +1260,15 @@ const getTokenPricePortfolio = (token, provider, network) => __awaiter(void 0, v
1230
1260
  if (token === 'weETH' && network !== common_1.NetworkNumber.Plasma) {
1231
1261
  return (0, priceService_1.getWeETHPrice)(provider, network);
1232
1262
  }
1263
+ if (token === 'wrsETH') {
1264
+ return (0, priceService_1.getWsrETHPrice)(provider, network);
1265
+ }
1266
+ if (token === 'syrupUSDT') {
1267
+ return (0, priceService_1.getSyrupUSDTPrice)(provider, network);
1268
+ }
1269
+ if (token === 'wstUSR') {
1270
+ return (0, priceService_1.getWstUSRPrice)(provider, network);
1271
+ }
1233
1272
  const isMainnet = (0, utils_1.isMainnetNetwork)(network);
1234
1273
  const chainLinkFeedAddress = (0, priceService_1.getChainlinkAssetAddress)(token, network);
1235
1274
  if (isMainnet) {
@@ -126,7 +126,7 @@ export declare const FLUID_XAUT_USDT_7_PLASMA: (networkId?: NetworkNumber) => Fl
126
126
  export declare const FLUID_XAUT_USDE_8_PLASMA: (networkId?: NetworkNumber) => FluidMarketInfo;
127
127
  export declare const FLUID_USDE_USDT_9_PLASMA: (networkId?: NetworkNumber) => FluidMarketInfo;
128
128
  export declare const FLUID_USDAI_USDT_10_PLASMA: (networkId?: NetworkNumber) => FluidMarketInfo;
129
- export declare const FLUID_WEETH_ETH_ETH_11_PLASMA: (networkId?: NetworkNumber) => FluidMarketInfo;
129
+ export declare const FLUID_ETH_WEETH_ETH_11_PLASMA: (networkId?: NetworkNumber) => FluidMarketInfo;
130
130
  export declare const FLUID_SUSDE_USDT_USDT_12_PLASMA: (networkId?: NetworkNumber) => FluidMarketInfo;
131
131
  export declare const FLUID_USDE_USDT_USDT_13_PLASMA: (networkId?: NetworkNumber) => FluidMarketInfo;
132
132
  export declare const FLUID_USDAI_USDT_USDT_14_PLASMA: (networkId?: NetworkNumber) => FluidMarketInfo;
@@ -264,7 +264,7 @@ export declare const FluidMarkets: (networkId: NetworkNumber) => {
264
264
  FLUID_XAUT_USDE_8_PLASMA: FluidMarketInfo;
265
265
  FLUID_USDE_USDT_9_PLASMA: FluidMarketInfo;
266
266
  FLUID_USDAI_USDT_10_PLASMA: FluidMarketInfo;
267
- FLUID_WEETH_ETH_ETH_11_PLASMA: FluidMarketInfo;
267
+ FLUID_ETH_WEETH_ETH_11_PLASMA: FluidMarketInfo;
268
268
  FLUID_SUSDE_USDT_USDT_12_PLASMA: FluidMarketInfo;
269
269
  FLUID_USDE_USDT_USDT_13_PLASMA: FluidMarketInfo;
270
270
  FLUID_USDAI_USDT_USDT_14_PLASMA: FluidMarketInfo;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FLUID_CBBTC_GHO_60 = exports.FLUID_WBTC_GHO_59 = exports.FLUID_SUSDS_GHO_58 = exports.FLUID_WEETH_GHO_57 = exports.FLUID_SUSDE_GHO_56 = exports.FLUID_WSTETH_GHO_55 = exports.FLUID_ETH_GHO_54 = exports.FLUID_WBTC_CBBTC_USDT_53 = exports.FLUID_WBTC_CBBTC_USDC_52 = exports.FLUID_WBTC_CBBTC_WBTC_CBBTC_51 = exports.FLUID_SUSDE_USDC_USDT_50 = exports.FLUID_CBBTC_USDC_USDT_49 = exports.FLUID_WBTC_USDC_USDT_48 = exports.FLUID_WEETH_USDC_USDT_47 = exports.FLUID_WSTETH_USDC_USDT_46 = exports.FLUID_ETH_USDC_USDT_45 = exports.FLUID_WSTETH_ETH_WSTETH_ETH_44 = exports.FLUID_WEETH_CBBTC_32 = exports.FLUID_WSTETH_CBBTC_33 = exports.FLUID_ETH_CBBTC_31 = exports.FLUID_CBBTC_USDT_30 = exports.FLUID_CBBTC_USDC_29 = exports.FLUID_CBBTC_ETH_28 = exports.FLUID_WEETHS_WSTETH_27 = exports.FLUID_WEETH_WBTC_26 = exports.FLUID_WSTETH_WBTC_25 = exports.FLUID_ETH_WBTC_24 = exports.FLUID_WBTC_ETH_23 = exports.FLUID_WBTC_USDT_22 = exports.FLUID_WBTC_USDC_21 = exports.FLUID_WEETH_USDT_20 = exports.FLUID_WEETH_USDC_19 = exports.FLUID_SUSDE_USDT_18 = exports.FLUID_SUSDE_USDC_17 = exports.FLUID_WEETH_WSTETH_16 = exports.FLUID_WSTETH_USDT_15 = exports.FLUID_WSTETH_USDC_14 = exports.FLUID_WSTETH_ETH_13 = exports.FLUID_ETH_USDT_12 = exports.FLUID_ETH_USDC_11 = exports.FLUID_WEETH_USDT_10 = exports.FLUID_WEETH_USDC_9 = exports.FLUID_SUSDE_USDT_8 = exports.FLUID_SUSDE_USDC_7 = exports.FLUID_WEETH_WSTETH_6 = exports.FLUID_WSTETH_USDT_5 = exports.FLUID_WSTETH_USDC_4 = exports.FLUID_WSTETH_ETH_3 = exports.FLUID_ETH_USDT_2 = exports.FLUID_ETH_USDC_1 = void 0;
4
4
  exports.FLUID_WEETH_USDC_5_BASE = exports.FLUID_WEETH_WSTETH_4_BASE = exports.FLUID_WSTETH_ETH_3_BASE = exports.FLUID_WSTETH_USDC_2_BASE = exports.FLUID_ETH_USDC_1_BASE = exports.FLUID_WBTC_USDC_USDT_26_ARB = exports.FLUID_WEETH_USDC_USDT_25_ARB = exports.FLUID_WSTETH_USDC_USDT_24_ARB = exports.FLUID_ETH_USDC_USDT_23_ARB = exports.FLUID_USDC_ETH_USDC_ETH_22_ARB = exports.FLUID_WEETH_WBTC_21_ARB = exports.FLUID_WSTETH_WBTC_20_ARB = exports.FLUID_ETH_WBTC_19_ARB = exports.FLUID_WBTC_ETH_18_ARB = exports.FLUID_WEETH_ETH_WSTETH_17_ARB = exports.FLUID_WSTETH_ETH_WSTETH_ETH_16_ARB = exports.FLUID_WBTC_USDT_13_ARB = exports.FLUID_WBTC_USDC_12_ARB = exports.FLUID_ARB_USDT_11_ARB = exports.FLUID_ARB_USDC_10_ARB = exports.FLUID_ETH_ARB_9_ARB = exports.FLUID_WEETH_USDT_8_ARB = exports.FLUID_WEETH_USDC_7_ARB = exports.FLUID_WEETH_WSTETH_6_ARB = exports.FLUID_WSTETH_ETH_5_ARB = exports.FLUID_WSTETH_USDT_4_ARB = exports.FLUID_WSTETH_USDC_3_ARB = exports.FLUID_ETH_USDT_2_ARB = exports.FLUID_ETH_USDC_1_ARB = exports.FLUID_WBTC_LBTC_WBTC_115 = exports.FLUID_LBTC_CBBTC_CBBTC_114 = exports.FLUID_LBTC_GHO_109 = exports.FLUID_LBTC_USDT_108 = exports.FLUID_LBTC_USDC_107 = exports.FLUID_EZETH_ETH_WSTETH_104 = exports.FLUID_EZETH_WSTETH_103 = exports.FLUID_USDC_CBBTC_102 = exports.FLUID_USDC_WBTC_101 = exports.FLUID_USDC_ETH_100 = exports.FLUID_USDE_USDT_USDC_USDT_99 = exports.FLUID_SUSDE_USDT_USDC_USDT_98 = exports.FLUID_LBTC_CBBTC_WBTC_97 = exports.FLUID_USDE_USDT_USDT_93 = exports.FLUID_SUSDE_USDT_USDT_92 = exports.FLUID_WEETHS_ETH_WSTETH_80 = exports.FLUID_RSETH_WSTETH_79 = exports.FLUID_RSETH_ETH_WSTETH_78 = exports.FLUID_USDC_ETH_USDC_ETH_77 = exports.FLUID_WEETH_ETH_WSTETH_74 = exports.FLUID_GHO_USDC_GHO_USDC_61 = void 0;
5
- exports.getFTokenAddress = exports.FluidFTokens = exports.getFluidMarketInfoByAddress = exports.getFluidMarketInfoById = exports.getFluidVersionsDataForNetwork = exports.FluidMarkets = exports.FLUID_ETH_WRSETH_ETH_21_PLASMA = exports.FLUID_SYRUPUSDT_USDT_20_PLASMA = exports.FLUID_WSTUSR_USDT_USDT_19_PLASMA = exports.FLUID_WSTUSR_USDT_18_PLASMA = exports.FLUID_XPL_USDE_17_PLASMA = exports.FLUID_XPL_USDT_16_PLASMA = exports.FLUID_USDT_SYRUPUSDT_USDT_15_PLASMA = exports.FLUID_USDAI_USDT_USDT_14_PLASMA = exports.FLUID_USDE_USDT_USDT_13_PLASMA = exports.FLUID_SUSDE_USDT_USDT_12_PLASMA = exports.FLUID_WEETH_ETH_ETH_11_PLASMA = exports.FLUID_USDAI_USDT_10_PLASMA = exports.FLUID_USDE_USDT_9_PLASMA = exports.FLUID_XAUT_USDE_8_PLASMA = exports.FLUID_XAUT_USDT_7_PLASMA = exports.FLUID_WEETH_USDE_6_PLASMA = exports.FLUID_WEETH_USDT_5_PLASMA = exports.FLUID_SUSDE_USDT_4_PLASMA = exports.FLUID_WEETH_ETH_3_PLASMA = exports.FLUID_ETH_USDE_2_PLASMA = exports.FLUID_ETH_USDT_1_PLASMA = exports.FLUID_LBTC_SUSDS_22_BASE = exports.FLUID_LBTC_USDC_21_BASE = exports.FLUID_CBBTC_SUSDS_19_BASE = exports.FLUID_WSTETH_SUSDS_18_BASE = exports.FLUID_ETH_SUSDS_17_BASE = exports.FLUID_WSTETH_CBBTC_16_BASE = exports.FLUID_WEETH_CBBTC_15_BASE = exports.FLUID_ETH_CBBTC_14_BASE = exports.FLUID_CBBTC_ETH_13_BASE = exports.FLUID_WSTETH_EURC_12_BASE = exports.FLUID_WEETH_EURC_11_BASE = exports.FLUID_ETH_EURC_10_BASE = exports.FLUID_CBETH_EURC_9_BASE = exports.FLUID_CBBTC_EURC_8_BASE = exports.FLUID_CBBTC_USDC_7_BASE = exports.FLUID_CBETH_USDC_6_BASE = void 0;
5
+ exports.getFTokenAddress = exports.FluidFTokens = exports.getFluidMarketInfoByAddress = exports.getFluidMarketInfoById = exports.getFluidVersionsDataForNetwork = exports.FluidMarkets = exports.FLUID_ETH_WRSETH_ETH_21_PLASMA = exports.FLUID_SYRUPUSDT_USDT_20_PLASMA = exports.FLUID_WSTUSR_USDT_USDT_19_PLASMA = exports.FLUID_WSTUSR_USDT_18_PLASMA = exports.FLUID_XPL_USDE_17_PLASMA = exports.FLUID_XPL_USDT_16_PLASMA = exports.FLUID_USDT_SYRUPUSDT_USDT_15_PLASMA = exports.FLUID_USDAI_USDT_USDT_14_PLASMA = exports.FLUID_USDE_USDT_USDT_13_PLASMA = exports.FLUID_SUSDE_USDT_USDT_12_PLASMA = exports.FLUID_ETH_WEETH_ETH_11_PLASMA = exports.FLUID_USDAI_USDT_10_PLASMA = exports.FLUID_USDE_USDT_9_PLASMA = exports.FLUID_XAUT_USDE_8_PLASMA = exports.FLUID_XAUT_USDT_7_PLASMA = exports.FLUID_WEETH_USDE_6_PLASMA = exports.FLUID_WEETH_USDT_5_PLASMA = exports.FLUID_SUSDE_USDT_4_PLASMA = exports.FLUID_WEETH_ETH_3_PLASMA = exports.FLUID_ETH_USDE_2_PLASMA = exports.FLUID_ETH_USDT_1_PLASMA = exports.FLUID_LBTC_SUSDS_22_BASE = exports.FLUID_LBTC_USDC_21_BASE = exports.FLUID_CBBTC_SUSDS_19_BASE = exports.FLUID_WSTETH_SUSDS_18_BASE = exports.FLUID_ETH_SUSDS_17_BASE = exports.FLUID_WSTETH_CBBTC_16_BASE = exports.FLUID_WEETH_CBBTC_15_BASE = exports.FLUID_ETH_CBBTC_14_BASE = exports.FLUID_CBBTC_ETH_13_BASE = exports.FLUID_WSTETH_EURC_12_BASE = exports.FLUID_WEETH_EURC_11_BASE = exports.FLUID_ETH_EURC_10_BASE = exports.FLUID_CBETH_EURC_9_BASE = exports.FLUID_CBBTC_EURC_8_BASE = exports.FLUID_CBBTC_USDC_7_BASE = exports.FLUID_CBETH_USDC_6_BASE = void 0;
6
6
  const common_1 = require("../../types/common");
7
7
  const types_1 = require("../../types");
8
8
  const utils_1 = require("../../services/utils");
@@ -2470,7 +2470,7 @@ const FLUID_USDAI_USDT_10_PLASMA = (networkId = common_1.NetworkNumber.Eth) => (
2470
2470
  debtAsset0: 'USDT',
2471
2471
  });
2472
2472
  exports.FLUID_USDAI_USDT_10_PLASMA = FLUID_USDAI_USDT_10_PLASMA;
2473
- const FLUID_WEETH_ETH_ETH_11_PLASMA = (networkId = common_1.NetworkNumber.Eth) => ({
2473
+ const FLUID_ETH_WEETH_ETH_11_PLASMA = (networkId = common_1.NetworkNumber.Eth) => ({
2474
2474
  stableBased: false,
2475
2475
  btcBased: false,
2476
2476
  wstETHBased: false,
@@ -2478,18 +2478,18 @@ const FLUID_WEETH_ETH_ETH_11_PLASMA = (networkId = common_1.NetworkNumber.Eth) =
2478
2478
  type: types_1.FluidVaultType.T2,
2479
2479
  id: 11,
2480
2480
  chainIds: [common_1.NetworkNumber.Plasma],
2481
- label: '#11 (weETH-ETH / ETH)',
2482
- shortLabel: 'weETH-ETH/ETH',
2483
- value: types_1.FluidPlasmaVersions.FLUID_WEETH_ETH_ETH_11_PLASMA,
2484
- url: 'weeth-eth-eth-11-plasma',
2481
+ label: '#11 (ETH-weETH / ETH)',
2482
+ shortLabel: 'ETH-weETH/ETH',
2483
+ value: types_1.FluidPlasmaVersions.FLUID_ETH_WEETH_ETH_11_PLASMA,
2484
+ url: 'eth-weeth-eth-11-plasma',
2485
2485
  marketAddress: '0x0C8C77B7FF4c2aF7F6CEBbe67350A490E3DD6cB3',
2486
2486
  hasSmartCollateral: true,
2487
2487
  hasSmartDebt: false,
2488
- collateralAsset0: 'weETH',
2489
- collateralAsset1: 'ETH',
2488
+ collateralAsset0: 'ETH',
2489
+ collateralAsset1: 'weETH',
2490
2490
  debtAsset0: 'ETH',
2491
2491
  });
2492
- exports.FLUID_WEETH_ETH_ETH_11_PLASMA = FLUID_WEETH_ETH_ETH_11_PLASMA;
2492
+ exports.FLUID_ETH_WEETH_ETH_11_PLASMA = FLUID_ETH_WEETH_ETH_11_PLASMA;
2493
2493
  const FLUID_SUSDE_USDT_USDT_12_PLASMA = (networkId = common_1.NetworkNumber.Eth) => ({
2494
2494
  stableBased: true,
2495
2495
  btcBased: false,
@@ -2817,7 +2817,7 @@ const FluidMarkets = (networkId) => ({
2817
2817
  [types_1.FluidPlasmaVersions.FLUID_XAUT_USDE_8_PLASMA]: (0, exports.FLUID_XAUT_USDE_8_PLASMA)(networkId),
2818
2818
  [types_1.FluidPlasmaVersions.FLUID_USDE_USDT_9_PLASMA]: (0, exports.FLUID_USDE_USDT_9_PLASMA)(networkId),
2819
2819
  [types_1.FluidPlasmaVersions.FLUID_USDAI_USDT_10_PLASMA]: (0, exports.FLUID_USDAI_USDT_10_PLASMA)(networkId),
2820
- [types_1.FluidPlasmaVersions.FLUID_WEETH_ETH_ETH_11_PLASMA]: (0, exports.FLUID_WEETH_ETH_ETH_11_PLASMA)(networkId),
2820
+ [types_1.FluidPlasmaVersions.FLUID_ETH_WEETH_ETH_11_PLASMA]: (0, exports.FLUID_ETH_WEETH_ETH_11_PLASMA)(networkId),
2821
2821
  [types_1.FluidPlasmaVersions.FLUID_SUSDE_USDT_USDT_12_PLASMA]: (0, exports.FLUID_SUSDE_USDT_USDT_12_PLASMA)(networkId),
2822
2822
  [types_1.FluidPlasmaVersions.FLUID_USDE_USDT_USDT_13_PLASMA]: (0, exports.FLUID_USDE_USDT_USDT_13_PLASMA)(networkId),
2823
2823
  [types_1.FluidPlasmaVersions.FLUID_USDAI_USDT_USDT_14_PLASMA]: (0, exports.FLUID_USDAI_USDT_USDT_14_PLASMA)(networkId),
@@ -6,6 +6,9 @@ export declare const getUSDCPrice: (client: Client) => Promise<string>;
6
6
  export declare const getCompPrice: (client: Client) => Promise<string>;
7
7
  export declare const getWstETHPrice: (client: Client, network?: NetworkNumber) => Promise<string>;
8
8
  export declare const getWeETHPrice: (client: Client, network?: NetworkNumber) => Promise<string>;
9
+ export declare const getWsrETHPrice: (client: Client, network?: NetworkNumber) => Promise<string>;
10
+ export declare const getSyrupUSDTPrice: (client: Client, network?: NetworkNumber) => Promise<string>;
11
+ export declare const getWstUSRPrice: (client: Client, network?: NetworkNumber) => Promise<string>;
9
12
  export declare const getWstETHChainLinkPriceCalls: (client: PublicClient, network: NetworkNumber) => ({
10
13
  address: `0x${string}`;
11
14
  abi: readonly [{
@@ -1324,10 +1327,496 @@ export declare const getWeETHChainLinkPriceCalls: (client: PublicClient, network
1324
1327
  functionName: string;
1325
1328
  args: never[];
1326
1329
  })[];
1330
+ export declare const getWsrETHChainLinkPriceCalls: (client: PublicClient, network: NetworkNumber) => {
1331
+ address: `0x${string}`;
1332
+ abi: readonly [{
1333
+ readonly inputs: readonly [];
1334
+ readonly name: "NonContractCall";
1335
+ readonly type: "error";
1336
+ }, {
1337
+ readonly inputs: readonly [];
1338
+ readonly name: "SenderNotAdmin";
1339
+ readonly type: "error";
1340
+ }, {
1341
+ readonly inputs: readonly [];
1342
+ readonly name: "SenderNotOwner";
1343
+ readonly type: "error";
1344
+ }, {
1345
+ readonly inputs: readonly [];
1346
+ readonly name: "adminVault";
1347
+ readonly outputs: readonly [{
1348
+ readonly internalType: "contract AdminVault";
1349
+ readonly name: "";
1350
+ readonly type: "address";
1351
+ }];
1352
+ readonly stateMutability: "view";
1353
+ readonly type: "function";
1354
+ }, {
1355
+ readonly inputs: readonly [{
1356
+ readonly internalType: "address";
1357
+ readonly name: "";
1358
+ readonly type: "address";
1359
+ }, {
1360
+ readonly internalType: "address";
1361
+ readonly name: "";
1362
+ readonly type: "address";
1363
+ }];
1364
+ readonly name: "aggregators";
1365
+ readonly outputs: readonly [{
1366
+ readonly internalType: "address";
1367
+ readonly name: "";
1368
+ readonly type: "address";
1369
+ }];
1370
+ readonly stateMutability: "view";
1371
+ readonly type: "function";
1372
+ }, {
1373
+ readonly inputs: readonly [{
1374
+ readonly internalType: "address";
1375
+ readonly name: "base";
1376
+ readonly type: "address";
1377
+ }, {
1378
+ readonly internalType: "address";
1379
+ readonly name: "quote";
1380
+ readonly type: "address";
1381
+ }];
1382
+ readonly name: "getFeed";
1383
+ readonly outputs: readonly [{
1384
+ readonly internalType: "address";
1385
+ readonly name: "aggregator";
1386
+ readonly type: "address";
1387
+ }];
1388
+ readonly stateMutability: "view";
1389
+ readonly type: "function";
1390
+ }, {
1391
+ readonly inputs: readonly [];
1392
+ readonly name: "kill";
1393
+ readonly outputs: readonly [];
1394
+ readonly stateMutability: "nonpayable";
1395
+ readonly type: "function";
1396
+ }, {
1397
+ readonly inputs: readonly [{
1398
+ readonly internalType: "address";
1399
+ readonly name: "base";
1400
+ readonly type: "address";
1401
+ }, {
1402
+ readonly internalType: "address";
1403
+ readonly name: "quote";
1404
+ readonly type: "address";
1405
+ }];
1406
+ readonly name: "latestRoundData";
1407
+ readonly outputs: readonly [{
1408
+ readonly internalType: "uint80";
1409
+ readonly name: "roundId";
1410
+ readonly type: "uint80";
1411
+ }, {
1412
+ readonly internalType: "int256";
1413
+ readonly name: "answer";
1414
+ readonly type: "int256";
1415
+ }, {
1416
+ readonly internalType: "uint256";
1417
+ readonly name: "startedAt";
1418
+ readonly type: "uint256";
1419
+ }, {
1420
+ readonly internalType: "uint256";
1421
+ readonly name: "updatedAt";
1422
+ readonly type: "uint256";
1423
+ }, {
1424
+ readonly internalType: "uint80";
1425
+ readonly name: "answeredInRound";
1426
+ readonly type: "uint80";
1427
+ }];
1428
+ readonly stateMutability: "view";
1429
+ readonly type: "function";
1430
+ }, {
1431
+ readonly inputs: readonly [{
1432
+ readonly internalType: "address";
1433
+ readonly name: "base";
1434
+ readonly type: "address";
1435
+ }, {
1436
+ readonly internalType: "address";
1437
+ readonly name: "quote";
1438
+ readonly type: "address";
1439
+ }, {
1440
+ readonly internalType: "address";
1441
+ readonly name: "aggregator";
1442
+ readonly type: "address";
1443
+ }];
1444
+ readonly name: "setFeed";
1445
+ readonly outputs: readonly [];
1446
+ readonly stateMutability: "nonpayable";
1447
+ readonly type: "function";
1448
+ }, {
1449
+ readonly inputs: readonly [{
1450
+ readonly internalType: "address[]";
1451
+ readonly name: "bases";
1452
+ readonly type: "address[]";
1453
+ }, {
1454
+ readonly internalType: "address[]";
1455
+ readonly name: "quotes";
1456
+ readonly type: "address[]";
1457
+ }, {
1458
+ readonly internalType: "address[]";
1459
+ readonly name: "aggregator";
1460
+ readonly type: "address[]";
1461
+ }];
1462
+ readonly name: "setFeeds";
1463
+ readonly outputs: readonly [];
1464
+ readonly stateMutability: "nonpayable";
1465
+ readonly type: "function";
1466
+ }, {
1467
+ readonly inputs: readonly [{
1468
+ readonly internalType: "address";
1469
+ readonly name: "_token";
1470
+ readonly type: "address";
1471
+ }, {
1472
+ readonly internalType: "address";
1473
+ readonly name: "_receiver";
1474
+ readonly type: "address";
1475
+ }, {
1476
+ readonly internalType: "uint256";
1477
+ readonly name: "_amount";
1478
+ readonly type: "uint256";
1479
+ }];
1480
+ readonly name: "withdrawStuckFunds";
1481
+ readonly outputs: readonly [];
1482
+ readonly stateMutability: "nonpayable";
1483
+ readonly type: "function";
1484
+ }];
1485
+ functionName: string;
1486
+ args: string[];
1487
+ }[];
1488
+ export declare const getSyrupUSDTChainLinkPriceCalls: (client: PublicClient, network: NetworkNumber) => {
1489
+ address: `0x${string}`;
1490
+ abi: readonly [{
1491
+ readonly inputs: readonly [];
1492
+ readonly name: "NonContractCall";
1493
+ readonly type: "error";
1494
+ }, {
1495
+ readonly inputs: readonly [];
1496
+ readonly name: "SenderNotAdmin";
1497
+ readonly type: "error";
1498
+ }, {
1499
+ readonly inputs: readonly [];
1500
+ readonly name: "SenderNotOwner";
1501
+ readonly type: "error";
1502
+ }, {
1503
+ readonly inputs: readonly [];
1504
+ readonly name: "adminVault";
1505
+ readonly outputs: readonly [{
1506
+ readonly internalType: "contract AdminVault";
1507
+ readonly name: "";
1508
+ readonly type: "address";
1509
+ }];
1510
+ readonly stateMutability: "view";
1511
+ readonly type: "function";
1512
+ }, {
1513
+ readonly inputs: readonly [{
1514
+ readonly internalType: "address";
1515
+ readonly name: "";
1516
+ readonly type: "address";
1517
+ }, {
1518
+ readonly internalType: "address";
1519
+ readonly name: "";
1520
+ readonly type: "address";
1521
+ }];
1522
+ readonly name: "aggregators";
1523
+ readonly outputs: readonly [{
1524
+ readonly internalType: "address";
1525
+ readonly name: "";
1526
+ readonly type: "address";
1527
+ }];
1528
+ readonly stateMutability: "view";
1529
+ readonly type: "function";
1530
+ }, {
1531
+ readonly inputs: readonly [{
1532
+ readonly internalType: "address";
1533
+ readonly name: "base";
1534
+ readonly type: "address";
1535
+ }, {
1536
+ readonly internalType: "address";
1537
+ readonly name: "quote";
1538
+ readonly type: "address";
1539
+ }];
1540
+ readonly name: "getFeed";
1541
+ readonly outputs: readonly [{
1542
+ readonly internalType: "address";
1543
+ readonly name: "aggregator";
1544
+ readonly type: "address";
1545
+ }];
1546
+ readonly stateMutability: "view";
1547
+ readonly type: "function";
1548
+ }, {
1549
+ readonly inputs: readonly [];
1550
+ readonly name: "kill";
1551
+ readonly outputs: readonly [];
1552
+ readonly stateMutability: "nonpayable";
1553
+ readonly type: "function";
1554
+ }, {
1555
+ readonly inputs: readonly [{
1556
+ readonly internalType: "address";
1557
+ readonly name: "base";
1558
+ readonly type: "address";
1559
+ }, {
1560
+ readonly internalType: "address";
1561
+ readonly name: "quote";
1562
+ readonly type: "address";
1563
+ }];
1564
+ readonly name: "latestRoundData";
1565
+ readonly outputs: readonly [{
1566
+ readonly internalType: "uint80";
1567
+ readonly name: "roundId";
1568
+ readonly type: "uint80";
1569
+ }, {
1570
+ readonly internalType: "int256";
1571
+ readonly name: "answer";
1572
+ readonly type: "int256";
1573
+ }, {
1574
+ readonly internalType: "uint256";
1575
+ readonly name: "startedAt";
1576
+ readonly type: "uint256";
1577
+ }, {
1578
+ readonly internalType: "uint256";
1579
+ readonly name: "updatedAt";
1580
+ readonly type: "uint256";
1581
+ }, {
1582
+ readonly internalType: "uint80";
1583
+ readonly name: "answeredInRound";
1584
+ readonly type: "uint80";
1585
+ }];
1586
+ readonly stateMutability: "view";
1587
+ readonly type: "function";
1588
+ }, {
1589
+ readonly inputs: readonly [{
1590
+ readonly internalType: "address";
1591
+ readonly name: "base";
1592
+ readonly type: "address";
1593
+ }, {
1594
+ readonly internalType: "address";
1595
+ readonly name: "quote";
1596
+ readonly type: "address";
1597
+ }, {
1598
+ readonly internalType: "address";
1599
+ readonly name: "aggregator";
1600
+ readonly type: "address";
1601
+ }];
1602
+ readonly name: "setFeed";
1603
+ readonly outputs: readonly [];
1604
+ readonly stateMutability: "nonpayable";
1605
+ readonly type: "function";
1606
+ }, {
1607
+ readonly inputs: readonly [{
1608
+ readonly internalType: "address[]";
1609
+ readonly name: "bases";
1610
+ readonly type: "address[]";
1611
+ }, {
1612
+ readonly internalType: "address[]";
1613
+ readonly name: "quotes";
1614
+ readonly type: "address[]";
1615
+ }, {
1616
+ readonly internalType: "address[]";
1617
+ readonly name: "aggregator";
1618
+ readonly type: "address[]";
1619
+ }];
1620
+ readonly name: "setFeeds";
1621
+ readonly outputs: readonly [];
1622
+ readonly stateMutability: "nonpayable";
1623
+ readonly type: "function";
1624
+ }, {
1625
+ readonly inputs: readonly [{
1626
+ readonly internalType: "address";
1627
+ readonly name: "_token";
1628
+ readonly type: "address";
1629
+ }, {
1630
+ readonly internalType: "address";
1631
+ readonly name: "_receiver";
1632
+ readonly type: "address";
1633
+ }, {
1634
+ readonly internalType: "uint256";
1635
+ readonly name: "_amount";
1636
+ readonly type: "uint256";
1637
+ }];
1638
+ readonly name: "withdrawStuckFunds";
1639
+ readonly outputs: readonly [];
1640
+ readonly stateMutability: "nonpayable";
1641
+ readonly type: "function";
1642
+ }];
1643
+ functionName: string;
1644
+ args: string[];
1645
+ }[];
1646
+ export declare const getWstUSRChainLinkPriceCalls: (client: PublicClient, network: NetworkNumber) => {
1647
+ address: `0x${string}`;
1648
+ abi: readonly [{
1649
+ readonly inputs: readonly [];
1650
+ readonly name: "NonContractCall";
1651
+ readonly type: "error";
1652
+ }, {
1653
+ readonly inputs: readonly [];
1654
+ readonly name: "SenderNotAdmin";
1655
+ readonly type: "error";
1656
+ }, {
1657
+ readonly inputs: readonly [];
1658
+ readonly name: "SenderNotOwner";
1659
+ readonly type: "error";
1660
+ }, {
1661
+ readonly inputs: readonly [];
1662
+ readonly name: "adminVault";
1663
+ readonly outputs: readonly [{
1664
+ readonly internalType: "contract AdminVault";
1665
+ readonly name: "";
1666
+ readonly type: "address";
1667
+ }];
1668
+ readonly stateMutability: "view";
1669
+ readonly type: "function";
1670
+ }, {
1671
+ readonly inputs: readonly [{
1672
+ readonly internalType: "address";
1673
+ readonly name: "";
1674
+ readonly type: "address";
1675
+ }, {
1676
+ readonly internalType: "address";
1677
+ readonly name: "";
1678
+ readonly type: "address";
1679
+ }];
1680
+ readonly name: "aggregators";
1681
+ readonly outputs: readonly [{
1682
+ readonly internalType: "address";
1683
+ readonly name: "";
1684
+ readonly type: "address";
1685
+ }];
1686
+ readonly stateMutability: "view";
1687
+ readonly type: "function";
1688
+ }, {
1689
+ readonly inputs: readonly [{
1690
+ readonly internalType: "address";
1691
+ readonly name: "base";
1692
+ readonly type: "address";
1693
+ }, {
1694
+ readonly internalType: "address";
1695
+ readonly name: "quote";
1696
+ readonly type: "address";
1697
+ }];
1698
+ readonly name: "getFeed";
1699
+ readonly outputs: readonly [{
1700
+ readonly internalType: "address";
1701
+ readonly name: "aggregator";
1702
+ readonly type: "address";
1703
+ }];
1704
+ readonly stateMutability: "view";
1705
+ readonly type: "function";
1706
+ }, {
1707
+ readonly inputs: readonly [];
1708
+ readonly name: "kill";
1709
+ readonly outputs: readonly [];
1710
+ readonly stateMutability: "nonpayable";
1711
+ readonly type: "function";
1712
+ }, {
1713
+ readonly inputs: readonly [{
1714
+ readonly internalType: "address";
1715
+ readonly name: "base";
1716
+ readonly type: "address";
1717
+ }, {
1718
+ readonly internalType: "address";
1719
+ readonly name: "quote";
1720
+ readonly type: "address";
1721
+ }];
1722
+ readonly name: "latestRoundData";
1723
+ readonly outputs: readonly [{
1724
+ readonly internalType: "uint80";
1725
+ readonly name: "roundId";
1726
+ readonly type: "uint80";
1727
+ }, {
1728
+ readonly internalType: "int256";
1729
+ readonly name: "answer";
1730
+ readonly type: "int256";
1731
+ }, {
1732
+ readonly internalType: "uint256";
1733
+ readonly name: "startedAt";
1734
+ readonly type: "uint256";
1735
+ }, {
1736
+ readonly internalType: "uint256";
1737
+ readonly name: "updatedAt";
1738
+ readonly type: "uint256";
1739
+ }, {
1740
+ readonly internalType: "uint80";
1741
+ readonly name: "answeredInRound";
1742
+ readonly type: "uint80";
1743
+ }];
1744
+ readonly stateMutability: "view";
1745
+ readonly type: "function";
1746
+ }, {
1747
+ readonly inputs: readonly [{
1748
+ readonly internalType: "address";
1749
+ readonly name: "base";
1750
+ readonly type: "address";
1751
+ }, {
1752
+ readonly internalType: "address";
1753
+ readonly name: "quote";
1754
+ readonly type: "address";
1755
+ }, {
1756
+ readonly internalType: "address";
1757
+ readonly name: "aggregator";
1758
+ readonly type: "address";
1759
+ }];
1760
+ readonly name: "setFeed";
1761
+ readonly outputs: readonly [];
1762
+ readonly stateMutability: "nonpayable";
1763
+ readonly type: "function";
1764
+ }, {
1765
+ readonly inputs: readonly [{
1766
+ readonly internalType: "address[]";
1767
+ readonly name: "bases";
1768
+ readonly type: "address[]";
1769
+ }, {
1770
+ readonly internalType: "address[]";
1771
+ readonly name: "quotes";
1772
+ readonly type: "address[]";
1773
+ }, {
1774
+ readonly internalType: "address[]";
1775
+ readonly name: "aggregator";
1776
+ readonly type: "address[]";
1777
+ }];
1778
+ readonly name: "setFeeds";
1779
+ readonly outputs: readonly [];
1780
+ readonly stateMutability: "nonpayable";
1781
+ readonly type: "function";
1782
+ }, {
1783
+ readonly inputs: readonly [{
1784
+ readonly internalType: "address";
1785
+ readonly name: "_token";
1786
+ readonly type: "address";
1787
+ }, {
1788
+ readonly internalType: "address";
1789
+ readonly name: "_receiver";
1790
+ readonly type: "address";
1791
+ }, {
1792
+ readonly internalType: "uint256";
1793
+ readonly name: "_amount";
1794
+ readonly type: "uint256";
1795
+ }];
1796
+ readonly name: "withdrawStuckFunds";
1797
+ readonly outputs: readonly [];
1798
+ readonly stateMutability: "nonpayable";
1799
+ readonly type: "function";
1800
+ }];
1801
+ functionName: string;
1802
+ args: string[];
1803
+ }[];
1327
1804
  export declare const parseWstETHPriceCalls: (_ethPrice: string, wstETHrateAnswer: string, decimals: string) => {
1328
1805
  ethPrice: Dec;
1329
1806
  wstETHRate: string;
1330
1807
  };
1808
+ export declare const parseWrsETHPriceCalls: (ethPriceAnswer: string, wrsETHrateAnswer: string) => {
1809
+ ethPrice: Dec;
1810
+ wrsETHRate: Dec;
1811
+ };
1812
+ export declare const parseSyrupUSDTPriceCalls: (usdtPriceAnswer: string, syrupUSDTRateAnswer: string) => {
1813
+ syrupUSDTRate: Dec;
1814
+ USDTRate: Dec;
1815
+ };
1816
+ export declare const parseWstUSRPriceCalls: (usrPrice: string, _wstUSRRate: string) => {
1817
+ wstUSRRate: Dec;
1818
+ USRRate: Dec;
1819
+ };
1331
1820
  export declare const parseWeETHPriceCalls: (_ethPrice: string, weETHrateAnswer: string, decimals: string) => {
1332
1821
  ethPrice: Dec;
1333
1822
  weETHRate: string;