@nexusmutual/sdk 0.3.2 → 0.3.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.
@@ -1422,7 +1422,7 @@
1422
1422
  "DAI"
1423
1423
  ],
1424
1424
  "isPrivate": true,
1425
- "timestamp": 1684312727
1425
+ "timestamp": 1704981731
1426
1426
  },
1427
1427
  {
1428
1428
  "id": 88,
@@ -1516,7 +1516,7 @@
1516
1516
  "DAI"
1517
1517
  ],
1518
1518
  "isPrivate": true,
1519
- "timestamp": 1704981731
1519
+ "timestamp": 1684312727
1520
1520
  },
1521
1521
  {
1522
1522
  "id": 94,
@@ -2165,7 +2165,7 @@
2165
2165
  "ETH"
2166
2166
  ],
2167
2167
  "isPrivate": false,
2168
- "timestamp": 1709310707
2168
+ "timestamp": 1709311739
2169
2169
  },
2170
2170
  {
2171
2171
  "id": 137,
@@ -2534,5 +2534,53 @@
2534
2534
  ],
2535
2535
  "isPrivate": true,
2536
2536
  "timestamp": 1712739011
2537
+ },
2538
+ {
2539
+ "id": 160,
2540
+ "name": "Etherfi (Zircuit) Pendle",
2541
+ "productType": 11,
2542
+ "isDeprecated": false,
2543
+ "useFixedPrice": false,
2544
+ "logo": "etherfi-zircuit-pendle.svg",
2545
+ "metadata": {
2546
+ "annex": "QmarQuziSJBVQoayRgPNuEiJdZHgf6wxDyKiGQVpsCNRnJ"
2547
+ },
2548
+ "coverAssets": [
2549
+ "ETH"
2550
+ ],
2551
+ "isPrivate": false,
2552
+ "timestamp": 1713185771
2553
+ },
2554
+ {
2555
+ "id": 161,
2556
+ "name": "KelpDAO (Zircuit) Pendle",
2557
+ "productType": 11,
2558
+ "isDeprecated": false,
2559
+ "useFixedPrice": false,
2560
+ "logo": "kelpdao-zircuit-pendle.svg",
2561
+ "metadata": {
2562
+ "annex": "QmdseksWrvXoMjF58NGnSS6WC7dXDVk2oeZz93Bt4oMzT2"
2563
+ },
2564
+ "coverAssets": [
2565
+ "ETH"
2566
+ ],
2567
+ "isPrivate": false,
2568
+ "timestamp": 1713185771
2569
+ },
2570
+ {
2571
+ "id": 162,
2572
+ "name": "Renzo (Zircuit) Pendle",
2573
+ "productType": 11,
2574
+ "isDeprecated": false,
2575
+ "useFixedPrice": false,
2576
+ "logo": "renzo-zircuit-pendle.svg",
2577
+ "metadata": {
2578
+ "annex": "QmeAB5RzQgQbC2DFa9W49taFEoxhZEUDgnXqvfceFUL4Xm"
2579
+ },
2580
+ "coverAssets": [
2581
+ "ETH"
2582
+ ],
2583
+ "isPrivate": false,
2584
+ "timestamp": 1713185771
2537
2585
  }
2538
2586
  ]
package/dist/index.d.mts CHANGED
@@ -1,41 +1,5 @@
1
1
  export * from '@nexusmutual/deployments';
2
2
 
3
- type Reserves = {
4
- ethReserve: bigint;
5
- nxmA: bigint;
6
- nxmB: bigint;
7
- budget: bigint;
8
- };
9
-
10
- /**
11
- * Calculates the amount of nxm flowing out of the pool for the given amount of eth flowing in
12
- */
13
- declare const calculateExactNxmForEth: (ethIn: bigint, reserves: Reserves) => bigint;
14
-
15
- /**
16
- * Calculates the amount of eth flowing out of the pool for the given amount of nxm flowing in
17
- */
18
- declare const calculateExactEthForNxm: (nxmIn: bigint, reserves: Reserves) => bigint;
19
-
20
- /**
21
- * Calculates the amount of nxm needed to flow into the pool to get the exact amount of eth out
22
- */
23
- declare const calculateNxmForExactEth: (ethOut: bigint, reserves: Reserves) => bigint;
24
-
25
- /**
26
- * Calculates the amount of eth needed to flow into the pool to get the exact amount of nxm out
27
- */
28
- declare const calculateEthForExactNxm: (nxmOut: bigint, reserves: Reserves) => bigint;
29
-
30
- declare const calculatePriceImpactA: (ethIn: bigint, reserves: Reserves) => bigint;
31
-
32
- declare const calculatePriceImpactB: (nxmIn: bigint, reserves: Reserves) => bigint;
33
-
34
- declare const calculateSpotPrice: (reserves: Reserves) => {
35
- spotPriceA: bigint;
36
- spotPriceB: bigint;
37
- };
38
-
39
3
  declare enum CoverAsset {
40
4
  ETH = 0,
41
5
  DAI = 1
@@ -149,17 +113,50 @@ type GetQuoteApiResponse = ApiResponse<GetQuoteResponse, undefined>;
149
113
  * @param {Integer} productId - The ID of the product for which cover is being purchased.
150
114
  * @param {IntString} coverAmount - The amount of cover in smallest unit of currency (i.e. wei)
151
115
  * @param {Integer} coverPeriod - The duration of the cover in days (28-365).
152
- * @param {CoverAsset} coverAsset - The asset for which cover is being purchased (the cover must be purchased using the same asset)
116
+ * @param {CoverAsset} coverAsset - The asset for which cover is being purchased; the purchase must use the same asset.
153
117
  * @param {Address} coverBuyerAddress - The Ethereum address of the buyer.
154
118
  * @param {number} slippage - The acceptable slippage percentage. Must be between 0-1 (Defaults to 0.001 ~ 0.1%)
155
119
  * @param {string} ipfsCid - The IPFS CID for additional data (optional).
120
+ * @param {string} coverRouterUrl - Used to override the default CoverRouter URL which is bundled this library.
156
121
  * @return {Promise<GetQuoteApiResponse | ErrorApiResponse>} Returns a successful quote response or an error response.
157
122
  */
158
- declare function getQuoteAndBuyCoverInputs(productId: Integer, coverAmount: IntString, coverPeriod: Integer, coverAsset: CoverAsset, coverBuyerAddress: Address, slippage?: number, ipfsCid?: string): Promise<GetQuoteApiResponse | ErrorApiResponse>;
123
+ declare function getQuoteAndBuyCoverInputs(productId: Integer, coverAmount: IntString, coverPeriod: Integer, coverAsset: CoverAsset, coverBuyerAddress: Address, slippage?: number, ipfsCid?: string, coverRouterUrl?: string): Promise<GetQuoteApiResponse | ErrorApiResponse>;
124
+
125
+ type Reserves = {
126
+ ethReserve: bigint;
127
+ nxmA: bigint;
128
+ nxmB: bigint;
129
+ budget: bigint;
130
+ };
131
+
159
132
  /**
160
- * Calculates the max capacity by summing up all the amounts in the given array of pool capacities.
133
+ * Calculates the amount of nxm flowing out of the pool for the given amount of eth flowing in
161
134
  */
162
- declare function sumPoolCapacities(capacities: PoolCapacity[]): IntString;
135
+ declare const calculateExactNxmForEth: (ethIn: bigint, reserves: Reserves) => bigint;
136
+
137
+ /**
138
+ * Calculates the amount of eth flowing out of the pool for the given amount of nxm flowing in
139
+ */
140
+ declare const calculateExactEthForNxm: (nxmIn: bigint, reserves: Reserves) => bigint;
141
+
142
+ /**
143
+ * Calculates the amount of nxm needed to flow into the pool to get the exact amount of eth out
144
+ */
145
+ declare const calculateNxmForExactEth: (ethOut: bigint, reserves: Reserves) => bigint;
146
+
147
+ /**
148
+ * Calculates the amount of eth needed to flow into the pool to get the exact amount of nxm out
149
+ */
150
+ declare const calculateEthForExactNxm: (nxmOut: bigint, reserves: Reserves) => bigint;
151
+
152
+ declare const calculatePriceImpactA: (ethIn: bigint, reserves: Reserves) => bigint;
153
+
154
+ declare const calculatePriceImpactB: (nxmIn: bigint, reserves: Reserves) => bigint;
155
+
156
+ declare const calculateSpotPrice: (reserves: Reserves) => {
157
+ spotPriceA: bigint;
158
+ spotPriceB: bigint;
159
+ };
163
160
 
164
161
  var products = [
165
162
  {
@@ -1652,7 +1649,7 @@ var products = [
1652
1649
  "DAI"
1653
1650
  ],
1654
1651
  isPrivate: true,
1655
- timestamp: 1684312727
1652
+ timestamp: 1704981731
1656
1653
  },
1657
1654
  {
1658
1655
  id: 88,
@@ -1750,7 +1747,7 @@ var products = [
1750
1747
  "DAI"
1751
1748
  ],
1752
1749
  isPrivate: true,
1753
- timestamp: 1704981731
1750
+ timestamp: 1684312727
1754
1751
  },
1755
1752
  {
1756
1753
  id: 94,
@@ -2436,7 +2433,7 @@ var products = [
2436
2433
  "ETH"
2437
2434
  ],
2438
2435
  isPrivate: false,
2439
- timestamp: 1709310707
2436
+ timestamp: 1709311739
2440
2437
  },
2441
2438
  {
2442
2439
  id: 137,
@@ -2812,6 +2809,54 @@ var products = [
2812
2809
  ],
2813
2810
  isPrivate: true,
2814
2811
  timestamp: 1712739011
2812
+ },
2813
+ {
2814
+ id: 160,
2815
+ name: "Etherfi (Zircuit) Pendle",
2816
+ productType: 11,
2817
+ isDeprecated: false,
2818
+ useFixedPrice: false,
2819
+ logo: "etherfi-zircuit-pendle.svg",
2820
+ metadata: {
2821
+ annex: "QmarQuziSJBVQoayRgPNuEiJdZHgf6wxDyKiGQVpsCNRnJ"
2822
+ },
2823
+ coverAssets: [
2824
+ "ETH"
2825
+ ],
2826
+ isPrivate: false,
2827
+ timestamp: 1713185771
2828
+ },
2829
+ {
2830
+ id: 161,
2831
+ name: "KelpDAO (Zircuit) Pendle",
2832
+ productType: 11,
2833
+ isDeprecated: false,
2834
+ useFixedPrice: false,
2835
+ logo: "kelpdao-zircuit-pendle.svg",
2836
+ metadata: {
2837
+ annex: "QmdseksWrvXoMjF58NGnSS6WC7dXDVk2oeZz93Bt4oMzT2"
2838
+ },
2839
+ coverAssets: [
2840
+ "ETH"
2841
+ ],
2842
+ isPrivate: false,
2843
+ timestamp: 1713185771
2844
+ },
2845
+ {
2846
+ id: 162,
2847
+ name: "Renzo (Zircuit) Pendle",
2848
+ productType: 11,
2849
+ isDeprecated: false,
2850
+ useFixedPrice: false,
2851
+ logo: "renzo-zircuit-pendle.svg",
2852
+ metadata: {
2853
+ annex: "QmeAB5RzQgQbC2DFa9W49taFEoxhZEUDgnXqvfceFUL4Xm"
2854
+ },
2855
+ coverAssets: [
2856
+ "ETH"
2857
+ ],
2858
+ isPrivate: false,
2859
+ timestamp: 1713185771
2815
2860
  }
2816
2861
  ];
2817
2862
 
@@ -2909,9 +2954,9 @@ var productTypes = [
2909
2954
  }
2910
2955
  ];
2911
2956
 
2912
- declare const allLogoFileNames: readonly ["zerox.svg", "oneinch.svg", "aavev2.svg", "abracadabra.svg", "alchemix.svg", "anchor.svg", "angle.svg", "argent.svg", "aura.svg", "babylon.svg", "badgerdao.svg", "balancer.svg", "bancor.svg", "bancor.svg", "beefy.svg", "binance.svg", "blockFi.svg", "gelt.svg", "centrifuge.svg", "coinbase.svg", "compoundv2.svg", "convex.svg", "convex.svg", "convex.svg", "crypto-com.svg", "curve.svg", "curve.svg", "curve.svg", "dydx.svg", "ease.svg", "enzyme.svg", "enzyme.svg", "eth.svg", "euler.svg", "fodl.svg", "ftx.svg", "gearbox.svg", "gemini.svg", "gmx.svg", "goldfinch.svg", "hodlnaut.svg", "kraken.svg", "ledn.svg", "liquidcollective.svg", "liquity.svg", "makerdao.svg", "mstable.svg", "nested.svg", "nexo.svg", "notional-finance.svg", "olympusdao.svg", "opyn.png", "originusd.svg", "pangolin.svg", "perpetual.svg", "pooltogether.svg", "premia.svg", "rari.svg", "reflexer.png", "ribbon.svg", "gnosis-safe.svg", "tokensets.svg", "tokensets.svg", "sherlock.svg", "stakedao.svg", "stakewise.svg", "stakewise.svg", "sushiswap.svg", "synthetix.svg", "thorchain.svg", "trader-joe.svg", "uniswapv2.svg", "uniswapv2.svg", "vector.svg", "vesper.svg", "yearn.svg", "yearn.svg", "yeti.png", "yield-app.svg", "alpaca.svg", "wefi.png", "exactly.svg", "etherfi.png", "squeeth-by-opyn.png", "rage-trade.svg", "sentiment.png", "lyra.svg", "perennial.jpeg", "liquify.svg", "lyra.svg", "buffer-finance.svg", "hook.jpeg", "holyheld.jpeg", "union-finance.svg", "openq.png", "level-finance.png", "offramp.png", "aavev3.svg", "morpho.svg", "chorusone.svg", "kiln.svg", "vertex.svg", "the-retail-mutual.png", "figment.svg", "teller.svg", "ajna.svg", "eigenlayer.png", "vox.png", "mahalend.svg", "self.svg", "scallop.svg", "wefi.png", "zktsunami.svg", "hats.svg", "makerdao-dsr.svg", "spark-lending.svg", "defi-edge.svg", "stakewisev3.svg", "compoundv3.svg", "deprecated.svg", "deprecated.svg", "deprecated.svg", "deprecated.svg", "yearn.svg", "velodrome2.svg", "gmxv2.svg", "dhedge.svg", "term-finance.png", "pendle.svg", "aerodrome.svg", "hyperliquid.svg", "maverick.svg", "equilibria.svg", "camelot.svg", "nftperp.svg", "gearbox.svg", "pxeth.svg", "fx-protocol.svg", "prisma.svg", "beethovenx.svg", "arrakis.svg", "yearn-juiced-vaults.svg", "kwenta-synthetix.svg", "eigenlayer-etherfi-pendle.svg", "beefy-curve.svg", "beefy-compoundv3.svg", "beefy-balancerv2-aura.svg", "notional-finance.svg", "fraxlend.svg", "morpho.svg", "etherfi.png", "arcadia.svg", "fx-curve-connex.svg", "eigenlayer-kelp-pendle.svg", "eigenlayer-renzo-pendle.svg", "eigenlayer-swell-pendle.svg", "arcadia.svg", "lyra-synthetix.svg", "eigenlayer-renzo.svg", "liquidcollective.svg", "aave-v1.svg", "akropolis.svg", "alpha-homora.svg", "ampleforth.svg", "arbitrum.svg", "aurora.svg", "avalanche.svg", "bunnypancake.svg", "bzx.svg", "celo.svg", "celsius.svg", "cowswap.svg", "cream.svg", "cronos.svg", "dforce.svg", "dodo.svg", "element-finance.svg", "enzyme-v4.svg", "fantom.svg", "fuse.svg", "gamma.svg", "gnosis-multisig.svg", "harmony.svg", "heco.svg", "homora.svg", "idleDAIYield.svg", "idleUSDTYield.svg", "instadapp.svg", "ironbank.svg", "maker-sai.svg", "metis.svg", "moonbeam.svg", "mooniswap.svg", "moonriver.svg", "nexus-mutual.svg", "nucypher.svg", "nuo.png", "ondo.svg", "optimism.svg", "pancakeswap.svg", "polkadot.svg", "polygon.svg", "popsicle.svg", "ren.svg", "solana.svg", "starkware.svg", "tbtc.svg", "terra-chain.svg", "uma.svg", "uniswap-v1.svg", "venus.svg", "vesper-veth.svg", "zksync.svg"];
2957
+ declare const allLogoFileNames: readonly ["zerox.svg", "oneinch.svg", "aavev2.svg", "abracadabra.svg", "alchemix.svg", "anchor.svg", "angle.svg", "argent.svg", "aura.svg", "babylon.svg", "badgerdao.svg", "balancer.svg", "bancor.svg", "bancor.svg", "beefy.svg", "binance.svg", "blockFi.svg", "gelt.svg", "centrifuge.svg", "coinbase.svg", "compoundv2.svg", "convex.svg", "convex.svg", "convex.svg", "crypto-com.svg", "curve.svg", "curve.svg", "curve.svg", "dydx.svg", "ease.svg", "enzyme.svg", "enzyme.svg", "eth.svg", "euler.svg", "fodl.svg", "ftx.svg", "gearbox.svg", "gemini.svg", "gmx.svg", "goldfinch.svg", "hodlnaut.svg", "kraken.svg", "ledn.svg", "liquidcollective.svg", "liquity.svg", "makerdao.svg", "mstable.svg", "nested.svg", "nexo.svg", "notional-finance.svg", "olympusdao.svg", "opyn.png", "originusd.svg", "pangolin.svg", "perpetual.svg", "pooltogether.svg", "premia.svg", "rari.svg", "reflexer.png", "ribbon.svg", "gnosis-safe.svg", "tokensets.svg", "tokensets.svg", "sherlock.svg", "stakedao.svg", "stakewise.svg", "stakewise.svg", "sushiswap.svg", "synthetix.svg", "thorchain.svg", "trader-joe.svg", "uniswapv2.svg", "uniswapv2.svg", "vector.svg", "vesper.svg", "yearn.svg", "yearn.svg", "yeti.png", "yield-app.svg", "alpaca.svg", "wefi.png", "exactly.svg", "etherfi.png", "squeeth-by-opyn.png", "rage-trade.svg", "sentiment.png", "lyra.svg", "perennial.jpeg", "liquify.svg", "lyra.svg", "buffer-finance.svg", "hook.jpeg", "holyheld.jpeg", "union-finance.svg", "openq.png", "level-finance.png", "offramp.png", "aavev3.svg", "morpho.svg", "chorusone.svg", "kiln.svg", "vertex.svg", "the-retail-mutual.png", "figment.svg", "teller.svg", "ajna.svg", "eigenlayer.png", "vox.png", "mahalend.svg", "self.svg", "scallop.svg", "wefi.png", "zktsunami.svg", "hats.svg", "makerdao-dsr.svg", "spark-lending.svg", "defi-edge.svg", "stakewisev3.svg", "compoundv3.svg", "deprecated.svg", "deprecated.svg", "deprecated.svg", "deprecated.svg", "yearn.svg", "velodrome2.svg", "gmxv2.svg", "dhedge.svg", "term-finance.png", "pendle.svg", "aerodrome.svg", "hyperliquid.svg", "maverick.svg", "equilibria.svg", "camelot.svg", "nftperp.svg", "gearbox.svg", "pxeth.svg", "fx-protocol.svg", "prisma.svg", "beethovenx.svg", "arrakis.svg", "yearn-juiced-vaults.svg", "kwenta-synthetix.svg", "eigenlayer-etherfi-pendle.svg", "beefy-curve.svg", "beefy-compoundv3.svg", "beefy-balancerv2-aura.svg", "notional-finance.svg", "fraxlend.svg", "morpho.svg", "etherfi.png", "arcadia.svg", "fx-curve-connex.svg", "eigenlayer-kelp-pendle.svg", "eigenlayer-renzo-pendle.svg", "eigenlayer-swell-pendle.svg", "arcadia.svg", "lyra-synthetix.svg", "eigenlayer-renzo.svg", "liquidcollective.svg", "etherfi-zircuit-pendle.svg", "kelpdao-zircuit-pendle.svg", "renzo-zircuit-pendle.svg", "aave-v1.svg", "akropolis.svg", "alpha-homora.svg", "ampleforth.svg", "arbitrum.svg", "aurora.svg", "avalanche.svg", "bunnypancake.svg", "bzx.svg", "celo.svg", "celsius.svg", "cowswap.svg", "cream.svg", "cronos.svg", "dforce.svg", "dodo.svg", "element-finance.svg", "enzyme-v4.svg", "fantom.svg", "fuse.svg", "gamma.svg", "gnosis-multisig.svg", "harmony.svg", "heco.svg", "homora.svg", "idleDAIYield.svg", "idleUSDTYield.svg", "instadapp.svg", "ironbank.svg", "maker-sai.svg", "metis.svg", "moonbeam.svg", "mooniswap.svg", "moonriver.svg", "nexus-mutual.svg", "nucypher.svg", "nuo.png", "ondo.svg", "optimism.svg", "pancakeswap.svg", "polkadot.svg", "polygon.svg", "popsicle.svg", "ren.svg", "solana.svg", "starkware.svg", "tbtc.svg", "terra-chain.svg", "uma.svg", "uniswap-v1.svg", "venus.svg", "vesper-veth.svg", "zksync.svg"];
2913
2958
  type LogoFileName = (typeof allLogoFileNames)[number];
2914
- declare const allLogoNames: readonly ["zerox", "oneinch", "aavev2", "abracadabra", "alchemix", "anchor", "angle", "argent", "aura", "babylon", "badgerdao", "balancer", "bancor", "bancor", "beefy", "binance", "blockFi", "gelt", "centrifuge", "coinbase", "compoundv2", "convex", "convex", "convex", "crypto-com", "curve", "curve", "curve", "dydx", "ease", "enzyme", "enzyme", "eth", "euler", "fodl", "ftx", "gearbox", "gemini", "gmx", "goldfinch", "hodlnaut", "kraken", "ledn", "liquidcollective", "liquity", "makerdao", "mstable", "nested", "nexo", "notional-finance", "olympusdao", "opyn", "originusd", "pangolin", "perpetual", "pooltogether", "premia", "rari", "reflexer", "ribbon", "gnosis-safe", "tokensets", "tokensets", "sherlock", "stakedao", "stakewise", "stakewise", "sushiswap", "synthetix", "thorchain", "trader-joe", "uniswapv2", "uniswapv2", "vector", "vesper", "yearn", "yearn", "yeti", "yield-app", "alpaca", "wefi", "exactly", "etherfi", "squeeth-by-opyn", "rage-trade", "sentiment", "lyra", "perennial", "liquify", "lyra", "buffer-finance", "hook", "holyheld", "union-finance", "openq", "level-finance", "offramp", "aavev3", "morpho", "chorusone", "kiln", "vertex", "the-retail-mutual", "figment", "teller", "ajna", "eigenlayer", "vox", "mahalend", "self", "scallop", "wefi", "zktsunami", "hats", "makerdao-dsr", "spark-lending", "defi-edge", "stakewisev3", "compoundv3", "deprecated", "deprecated", "deprecated", "deprecated", "yearn", "velodrome2", "gmxv2", "dhedge", "term-finance", "pendle", "aerodrome", "hyperliquid", "maverick", "equilibria", "camelot", "nftperp", "gearbox", "pxeth", "fx-protocol", "prisma", "beethovenx", "arrakis", "yearn-juiced-vaults", "kwenta-synthetix", "eigenlayer-etherfi-pendle", "beefy-curve", "beefy-compoundv3", "beefy-balancerv2-aura", "notional-finance", "fraxlend", "morpho", "etherfi", "arcadia", "fx-curve-connex", "eigenlayer-kelp-pendle", "eigenlayer-renzo-pendle", "eigenlayer-swell-pendle", "arcadia", "lyra-synthetix", "eigenlayer-renzo", "liquidcollective", "aave-v1", "akropolis", "alpha-homora", "ampleforth", "arbitrum", "aurora", "avalanche", "bunnypancake", "bzx", "celo", "celsius", "cowswap", "cream", "cronos", "dforce", "dodo", "element-finance", "enzyme-v4", "fantom", "fuse", "gamma", "gnosis-multisig", "harmony", "heco", "homora", "idleDAIYield", "idleUSDTYield", "instadapp", "ironbank", "maker-sai", "metis", "moonbeam", "mooniswap", "moonriver", "nexus-mutual", "nucypher", "nuo", "ondo", "optimism", "pancakeswap", "polkadot", "polygon", "popsicle", "ren", "solana", "starkware", "tbtc", "terra-chain", "uma", "uniswap-v1", "venus", "vesper-veth", "zksync"];
2959
+ declare const allLogoNames: readonly ["zerox", "oneinch", "aavev2", "abracadabra", "alchemix", "anchor", "angle", "argent", "aura", "babylon", "badgerdao", "balancer", "bancor", "bancor", "beefy", "binance", "blockFi", "gelt", "centrifuge", "coinbase", "compoundv2", "convex", "convex", "convex", "crypto-com", "curve", "curve", "curve", "dydx", "ease", "enzyme", "enzyme", "eth", "euler", "fodl", "ftx", "gearbox", "gemini", "gmx", "goldfinch", "hodlnaut", "kraken", "ledn", "liquidcollective", "liquity", "makerdao", "mstable", "nested", "nexo", "notional-finance", "olympusdao", "opyn", "originusd", "pangolin", "perpetual", "pooltogether", "premia", "rari", "reflexer", "ribbon", "gnosis-safe", "tokensets", "tokensets", "sherlock", "stakedao", "stakewise", "stakewise", "sushiswap", "synthetix", "thorchain", "trader-joe", "uniswapv2", "uniswapv2", "vector", "vesper", "yearn", "yearn", "yeti", "yield-app", "alpaca", "wefi", "exactly", "etherfi", "squeeth-by-opyn", "rage-trade", "sentiment", "lyra", "perennial", "liquify", "lyra", "buffer-finance", "hook", "holyheld", "union-finance", "openq", "level-finance", "offramp", "aavev3", "morpho", "chorusone", "kiln", "vertex", "the-retail-mutual", "figment", "teller", "ajna", "eigenlayer", "vox", "mahalend", "self", "scallop", "wefi", "zktsunami", "hats", "makerdao-dsr", "spark-lending", "defi-edge", "stakewisev3", "compoundv3", "deprecated", "deprecated", "deprecated", "deprecated", "yearn", "velodrome2", "gmxv2", "dhedge", "term-finance", "pendle", "aerodrome", "hyperliquid", "maverick", "equilibria", "camelot", "nftperp", "gearbox", "pxeth", "fx-protocol", "prisma", "beethovenx", "arrakis", "yearn-juiced-vaults", "kwenta-synthetix", "eigenlayer-etherfi-pendle", "beefy-curve", "beefy-compoundv3", "beefy-balancerv2-aura", "notional-finance", "fraxlend", "morpho", "etherfi", "arcadia", "fx-curve-connex", "eigenlayer-kelp-pendle", "eigenlayer-renzo-pendle", "eigenlayer-swell-pendle", "arcadia", "lyra-synthetix", "eigenlayer-renzo", "liquidcollective", "etherfi-zircuit-pendle", "kelpdao-zircuit-pendle", "renzo-zircuit-pendle", "aave-v1", "akropolis", "alpha-homora", "ampleforth", "arbitrum", "aurora", "avalanche", "bunnypancake", "bzx", "celo", "celsius", "cowswap", "cream", "cronos", "dforce", "dodo", "element-finance", "enzyme-v4", "fantom", "fuse", "gamma", "gnosis-multisig", "harmony", "heco", "homora", "idleDAIYield", "idleUSDTYield", "instadapp", "ironbank", "maker-sai", "metis", "moonbeam", "mooniswap", "moonriver", "nexus-mutual", "nucypher", "nuo", "ondo", "optimism", "pancakeswap", "polkadot", "polygon", "popsicle", "ren", "solana", "starkware", "tbtc", "terra-chain", "uma", "uniswap-v1", "venus", "vesper-veth", "zksync"];
2915
2960
  type LogoName = (typeof allLogoNames)[number];
2916
2961
 
2917
2962
  declare const calculatePremiumWithCommissionAndSlippage: (premium: bigint, commission?: number, slippage?: number) => bigint;
@@ -2927,7 +2972,6 @@ declare const nexusSdk: {
2927
2972
  DEFAULT_SLIPPAGE: 10;
2928
2973
  DEFAULT_COMMISSION_RATIO: 1500;
2929
2974
  NEXUS_MUTUAL_DAO_TREASURY_ADDRESS: "0x586b9b2F8010b284A0197f392156f1A7Eb5e86e9";
2930
- sumPoolCapacities: typeof sumPoolCapacities;
2931
2975
  getQuoteAndBuyCoverInputs: typeof getQuoteAndBuyCoverInputs;
2932
2976
  calculatePremiumWithCommissionAndSlippage: (premium: bigint, commission?: number, slippage?: number) => bigint;
2933
2977
  calculateExactNxmForEth: (ethIn: bigint, reserves: Reserves) => bigint;
@@ -2940,8 +2984,8 @@ declare const nexusSdk: {
2940
2984
  spotPriceA: bigint;
2941
2985
  spotPriceB: bigint;
2942
2986
  };
2943
- allLogoFileNames: readonly ["zerox.svg", "oneinch.svg", "aavev2.svg", "abracadabra.svg", "alchemix.svg", "anchor.svg", "angle.svg", "argent.svg", "aura.svg", "babylon.svg", "badgerdao.svg", "balancer.svg", "bancor.svg", "bancor.svg", "beefy.svg", "binance.svg", "blockFi.svg", "gelt.svg", "centrifuge.svg", "coinbase.svg", "compoundv2.svg", "convex.svg", "convex.svg", "convex.svg", "crypto-com.svg", "curve.svg", "curve.svg", "curve.svg", "dydx.svg", "ease.svg", "enzyme.svg", "enzyme.svg", "eth.svg", "euler.svg", "fodl.svg", "ftx.svg", "gearbox.svg", "gemini.svg", "gmx.svg", "goldfinch.svg", "hodlnaut.svg", "kraken.svg", "ledn.svg", "liquidcollective.svg", "liquity.svg", "makerdao.svg", "mstable.svg", "nested.svg", "nexo.svg", "notional-finance.svg", "olympusdao.svg", "opyn.png", "originusd.svg", "pangolin.svg", "perpetual.svg", "pooltogether.svg", "premia.svg", "rari.svg", "reflexer.png", "ribbon.svg", "gnosis-safe.svg", "tokensets.svg", "tokensets.svg", "sherlock.svg", "stakedao.svg", "stakewise.svg", "stakewise.svg", "sushiswap.svg", "synthetix.svg", "thorchain.svg", "trader-joe.svg", "uniswapv2.svg", "uniswapv2.svg", "vector.svg", "vesper.svg", "yearn.svg", "yearn.svg", "yeti.png", "yield-app.svg", "alpaca.svg", "wefi.png", "exactly.svg", "etherfi.png", "squeeth-by-opyn.png", "rage-trade.svg", "sentiment.png", "lyra.svg", "perennial.jpeg", "liquify.svg", "lyra.svg", "buffer-finance.svg", "hook.jpeg", "holyheld.jpeg", "union-finance.svg", "openq.png", "level-finance.png", "offramp.png", "aavev3.svg", "morpho.svg", "chorusone.svg", "kiln.svg", "vertex.svg", "the-retail-mutual.png", "figment.svg", "teller.svg", "ajna.svg", "eigenlayer.png", "vox.png", "mahalend.svg", "self.svg", "scallop.svg", "wefi.png", "zktsunami.svg", "hats.svg", "makerdao-dsr.svg", "spark-lending.svg", "defi-edge.svg", "stakewisev3.svg", "compoundv3.svg", "deprecated.svg", "deprecated.svg", "deprecated.svg", "deprecated.svg", "yearn.svg", "velodrome2.svg", "gmxv2.svg", "dhedge.svg", "term-finance.png", "pendle.svg", "aerodrome.svg", "hyperliquid.svg", "maverick.svg", "equilibria.svg", "camelot.svg", "nftperp.svg", "gearbox.svg", "pxeth.svg", "fx-protocol.svg", "prisma.svg", "beethovenx.svg", "arrakis.svg", "yearn-juiced-vaults.svg", "kwenta-synthetix.svg", "eigenlayer-etherfi-pendle.svg", "beefy-curve.svg", "beefy-compoundv3.svg", "beefy-balancerv2-aura.svg", "notional-finance.svg", "fraxlend.svg", "morpho.svg", "etherfi.png", "arcadia.svg", "fx-curve-connex.svg", "eigenlayer-kelp-pendle.svg", "eigenlayer-renzo-pendle.svg", "eigenlayer-swell-pendle.svg", "arcadia.svg", "lyra-synthetix.svg", "eigenlayer-renzo.svg", "liquidcollective.svg", "aave-v1.svg", "akropolis.svg", "alpha-homora.svg", "ampleforth.svg", "arbitrum.svg", "aurora.svg", "avalanche.svg", "bunnypancake.svg", "bzx.svg", "celo.svg", "celsius.svg", "cowswap.svg", "cream.svg", "cronos.svg", "dforce.svg", "dodo.svg", "element-finance.svg", "enzyme-v4.svg", "fantom.svg", "fuse.svg", "gamma.svg", "gnosis-multisig.svg", "harmony.svg", "heco.svg", "homora.svg", "idleDAIYield.svg", "idleUSDTYield.svg", "instadapp.svg", "ironbank.svg", "maker-sai.svg", "metis.svg", "moonbeam.svg", "mooniswap.svg", "moonriver.svg", "nexus-mutual.svg", "nucypher.svg", "nuo.png", "ondo.svg", "optimism.svg", "pancakeswap.svg", "polkadot.svg", "polygon.svg", "popsicle.svg", "ren.svg", "solana.svg", "starkware.svg", "tbtc.svg", "terra-chain.svg", "uma.svg", "uniswap-v1.svg", "venus.svg", "vesper-veth.svg", "zksync.svg"];
2944
- allLogoNames: readonly ["zerox", "oneinch", "aavev2", "abracadabra", "alchemix", "anchor", "angle", "argent", "aura", "babylon", "badgerdao", "balancer", "bancor", "bancor", "beefy", "binance", "blockFi", "gelt", "centrifuge", "coinbase", "compoundv2", "convex", "convex", "convex", "crypto-com", "curve", "curve", "curve", "dydx", "ease", "enzyme", "enzyme", "eth", "euler", "fodl", "ftx", "gearbox", "gemini", "gmx", "goldfinch", "hodlnaut", "kraken", "ledn", "liquidcollective", "liquity", "makerdao", "mstable", "nested", "nexo", "notional-finance", "olympusdao", "opyn", "originusd", "pangolin", "perpetual", "pooltogether", "premia", "rari", "reflexer", "ribbon", "gnosis-safe", "tokensets", "tokensets", "sherlock", "stakedao", "stakewise", "stakewise", "sushiswap", "synthetix", "thorchain", "trader-joe", "uniswapv2", "uniswapv2", "vector", "vesper", "yearn", "yearn", "yeti", "yield-app", "alpaca", "wefi", "exactly", "etherfi", "squeeth-by-opyn", "rage-trade", "sentiment", "lyra", "perennial", "liquify", "lyra", "buffer-finance", "hook", "holyheld", "union-finance", "openq", "level-finance", "offramp", "aavev3", "morpho", "chorusone", "kiln", "vertex", "the-retail-mutual", "figment", "teller", "ajna", "eigenlayer", "vox", "mahalend", "self", "scallop", "wefi", "zktsunami", "hats", "makerdao-dsr", "spark-lending", "defi-edge", "stakewisev3", "compoundv3", "deprecated", "deprecated", "deprecated", "deprecated", "yearn", "velodrome2", "gmxv2", "dhedge", "term-finance", "pendle", "aerodrome", "hyperliquid", "maverick", "equilibria", "camelot", "nftperp", "gearbox", "pxeth", "fx-protocol", "prisma", "beethovenx", "arrakis", "yearn-juiced-vaults", "kwenta-synthetix", "eigenlayer-etherfi-pendle", "beefy-curve", "beefy-compoundv3", "beefy-balancerv2-aura", "notional-finance", "fraxlend", "morpho", "etherfi", "arcadia", "fx-curve-connex", "eigenlayer-kelp-pendle", "eigenlayer-renzo-pendle", "eigenlayer-swell-pendle", "arcadia", "lyra-synthetix", "eigenlayer-renzo", "liquidcollective", "aave-v1", "akropolis", "alpha-homora", "ampleforth", "arbitrum", "aurora", "avalanche", "bunnypancake", "bzx", "celo", "celsius", "cowswap", "cream", "cronos", "dforce", "dodo", "element-finance", "enzyme-v4", "fantom", "fuse", "gamma", "gnosis-multisig", "harmony", "heco", "homora", "idleDAIYield", "idleUSDTYield", "instadapp", "ironbank", "maker-sai", "metis", "moonbeam", "mooniswap", "moonriver", "nexus-mutual", "nucypher", "nuo", "ondo", "optimism", "pancakeswap", "polkadot", "polygon", "popsicle", "ren", "solana", "starkware", "tbtc", "terra-chain", "uma", "uniswap-v1", "venus", "vesper-veth", "zksync"];
2987
+ allLogoFileNames: readonly ["zerox.svg", "oneinch.svg", "aavev2.svg", "abracadabra.svg", "alchemix.svg", "anchor.svg", "angle.svg", "argent.svg", "aura.svg", "babylon.svg", "badgerdao.svg", "balancer.svg", "bancor.svg", "bancor.svg", "beefy.svg", "binance.svg", "blockFi.svg", "gelt.svg", "centrifuge.svg", "coinbase.svg", "compoundv2.svg", "convex.svg", "convex.svg", "convex.svg", "crypto-com.svg", "curve.svg", "curve.svg", "curve.svg", "dydx.svg", "ease.svg", "enzyme.svg", "enzyme.svg", "eth.svg", "euler.svg", "fodl.svg", "ftx.svg", "gearbox.svg", "gemini.svg", "gmx.svg", "goldfinch.svg", "hodlnaut.svg", "kraken.svg", "ledn.svg", "liquidcollective.svg", "liquity.svg", "makerdao.svg", "mstable.svg", "nested.svg", "nexo.svg", "notional-finance.svg", "olympusdao.svg", "opyn.png", "originusd.svg", "pangolin.svg", "perpetual.svg", "pooltogether.svg", "premia.svg", "rari.svg", "reflexer.png", "ribbon.svg", "gnosis-safe.svg", "tokensets.svg", "tokensets.svg", "sherlock.svg", "stakedao.svg", "stakewise.svg", "stakewise.svg", "sushiswap.svg", "synthetix.svg", "thorchain.svg", "trader-joe.svg", "uniswapv2.svg", "uniswapv2.svg", "vector.svg", "vesper.svg", "yearn.svg", "yearn.svg", "yeti.png", "yield-app.svg", "alpaca.svg", "wefi.png", "exactly.svg", "etherfi.png", "squeeth-by-opyn.png", "rage-trade.svg", "sentiment.png", "lyra.svg", "perennial.jpeg", "liquify.svg", "lyra.svg", "buffer-finance.svg", "hook.jpeg", "holyheld.jpeg", "union-finance.svg", "openq.png", "level-finance.png", "offramp.png", "aavev3.svg", "morpho.svg", "chorusone.svg", "kiln.svg", "vertex.svg", "the-retail-mutual.png", "figment.svg", "teller.svg", "ajna.svg", "eigenlayer.png", "vox.png", "mahalend.svg", "self.svg", "scallop.svg", "wefi.png", "zktsunami.svg", "hats.svg", "makerdao-dsr.svg", "spark-lending.svg", "defi-edge.svg", "stakewisev3.svg", "compoundv3.svg", "deprecated.svg", "deprecated.svg", "deprecated.svg", "deprecated.svg", "yearn.svg", "velodrome2.svg", "gmxv2.svg", "dhedge.svg", "term-finance.png", "pendle.svg", "aerodrome.svg", "hyperliquid.svg", "maverick.svg", "equilibria.svg", "camelot.svg", "nftperp.svg", "gearbox.svg", "pxeth.svg", "fx-protocol.svg", "prisma.svg", "beethovenx.svg", "arrakis.svg", "yearn-juiced-vaults.svg", "kwenta-synthetix.svg", "eigenlayer-etherfi-pendle.svg", "beefy-curve.svg", "beefy-compoundv3.svg", "beefy-balancerv2-aura.svg", "notional-finance.svg", "fraxlend.svg", "morpho.svg", "etherfi.png", "arcadia.svg", "fx-curve-connex.svg", "eigenlayer-kelp-pendle.svg", "eigenlayer-renzo-pendle.svg", "eigenlayer-swell-pendle.svg", "arcadia.svg", "lyra-synthetix.svg", "eigenlayer-renzo.svg", "liquidcollective.svg", "etherfi-zircuit-pendle.svg", "kelpdao-zircuit-pendle.svg", "renzo-zircuit-pendle.svg", "aave-v1.svg", "akropolis.svg", "alpha-homora.svg", "ampleforth.svg", "arbitrum.svg", "aurora.svg", "avalanche.svg", "bunnypancake.svg", "bzx.svg", "celo.svg", "celsius.svg", "cowswap.svg", "cream.svg", "cronos.svg", "dforce.svg", "dodo.svg", "element-finance.svg", "enzyme-v4.svg", "fantom.svg", "fuse.svg", "gamma.svg", "gnosis-multisig.svg", "harmony.svg", "heco.svg", "homora.svg", "idleDAIYield.svg", "idleUSDTYield.svg", "instadapp.svg", "ironbank.svg", "maker-sai.svg", "metis.svg", "moonbeam.svg", "mooniswap.svg", "moonriver.svg", "nexus-mutual.svg", "nucypher.svg", "nuo.png", "ondo.svg", "optimism.svg", "pancakeswap.svg", "polkadot.svg", "polygon.svg", "popsicle.svg", "ren.svg", "solana.svg", "starkware.svg", "tbtc.svg", "terra-chain.svg", "uma.svg", "uniswap-v1.svg", "venus.svg", "vesper-veth.svg", "zksync.svg"];
2988
+ allLogoNames: readonly ["zerox", "oneinch", "aavev2", "abracadabra", "alchemix", "anchor", "angle", "argent", "aura", "babylon", "badgerdao", "balancer", "bancor", "bancor", "beefy", "binance", "blockFi", "gelt", "centrifuge", "coinbase", "compoundv2", "convex", "convex", "convex", "crypto-com", "curve", "curve", "curve", "dydx", "ease", "enzyme", "enzyme", "eth", "euler", "fodl", "ftx", "gearbox", "gemini", "gmx", "goldfinch", "hodlnaut", "kraken", "ledn", "liquidcollective", "liquity", "makerdao", "mstable", "nested", "nexo", "notional-finance", "olympusdao", "opyn", "originusd", "pangolin", "perpetual", "pooltogether", "premia", "rari", "reflexer", "ribbon", "gnosis-safe", "tokensets", "tokensets", "sherlock", "stakedao", "stakewise", "stakewise", "sushiswap", "synthetix", "thorchain", "trader-joe", "uniswapv2", "uniswapv2", "vector", "vesper", "yearn", "yearn", "yeti", "yield-app", "alpaca", "wefi", "exactly", "etherfi", "squeeth-by-opyn", "rage-trade", "sentiment", "lyra", "perennial", "liquify", "lyra", "buffer-finance", "hook", "holyheld", "union-finance", "openq", "level-finance", "offramp", "aavev3", "morpho", "chorusone", "kiln", "vertex", "the-retail-mutual", "figment", "teller", "ajna", "eigenlayer", "vox", "mahalend", "self", "scallop", "wefi", "zktsunami", "hats", "makerdao-dsr", "spark-lending", "defi-edge", "stakewisev3", "compoundv3", "deprecated", "deprecated", "deprecated", "deprecated", "yearn", "velodrome2", "gmxv2", "dhedge", "term-finance", "pendle", "aerodrome", "hyperliquid", "maverick", "equilibria", "camelot", "nftperp", "gearbox", "pxeth", "fx-protocol", "prisma", "beethovenx", "arrakis", "yearn-juiced-vaults", "kwenta-synthetix", "eigenlayer-etherfi-pendle", "beefy-curve", "beefy-compoundv3", "beefy-balancerv2-aura", "notional-finance", "fraxlend", "morpho", "etherfi", "arcadia", "fx-curve-connex", "eigenlayer-kelp-pendle", "eigenlayer-renzo-pendle", "eigenlayer-swell-pendle", "arcadia", "lyra-synthetix", "eigenlayer-renzo", "liquidcollective", "etherfi-zircuit-pendle", "kelpdao-zircuit-pendle", "renzo-zircuit-pendle", "aave-v1", "akropolis", "alpha-homora", "ampleforth", "arbitrum", "aurora", "avalanche", "bunnypancake", "bzx", "celo", "celsius", "cowswap", "cream", "cronos", "dforce", "dodo", "element-finance", "enzyme-v4", "fantom", "fuse", "gamma", "gnosis-multisig", "harmony", "heco", "homora", "idleDAIYield", "idleUSDTYield", "instadapp", "ironbank", "maker-sai", "metis", "moonbeam", "mooniswap", "moonriver", "nexus-mutual", "nucypher", "nuo", "ondo", "optimism", "pancakeswap", "polkadot", "polygon", "popsicle", "ren", "solana", "starkware", "tbtc", "terra-chain", "uma", "uniswap-v1", "venus", "vesper-veth", "zksync"];
2945
2989
  products: ({
2946
2990
  id: number;
2947
2991
  name: string;
@@ -38947,4 +38991,4 @@ declare const nexusSdk: {
38947
38991
  }];
38948
38992
  };
38949
38993
 
38950
- export { Address, ApiResponse, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, Capacity, CoverAsset, CoverId, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, ErrorApiResponse, ErrorResponse, FloatString, GetQuoteApiResponse, GetQuoteResponse, IntString, Integer, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, PoolAllocationRequest, PoolCapacity, Quote, QuoteDisplayInfo, Reserves, SLIPPAGE_DENOMINATOR, TARGET_PRICE_DENOMINATOR, allLogoFileNames, allLogoNames, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePremiumWithCommissionAndSlippage, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, nexusSdk as default, getQuoteAndBuyCoverInputs, productTypes, products, sumPoolCapacities };
38994
+ export { Address, ApiResponse, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, Capacity, CoverAsset, CoverId, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, ErrorApiResponse, ErrorResponse, FloatString, GetQuoteApiResponse, GetQuoteResponse, IntString, Integer, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, PoolAllocationRequest, PoolCapacity, Quote, QuoteDisplayInfo, Reserves, SLIPPAGE_DENOMINATOR, TARGET_PRICE_DENOMINATOR, allLogoFileNames, allLogoNames, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePremiumWithCommissionAndSlippage, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, nexusSdk as default, getQuoteAndBuyCoverInputs, productTypes, products };