@gearbox-protocol/sdk 3.0.0-vfour.48 → 3.0.0-vfour.49

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.
@@ -1492,21 +1492,24 @@ async function setLTs(anvil, cm, newLTs, logger) {
1492
1492
  value: viem.parseEther("100")
1493
1493
  });
1494
1494
  for (const [t, lt] of Object.entries(newLTs)) {
1495
- await anvil.writeContract({
1496
- chain: anvil.chain,
1497
- address: cm.creditConfigurator,
1498
- account: configuratorAddr,
1499
- abi: iCreditConfiguratorV3Abi,
1500
- functionName: "setLiquidationThreshold",
1501
- args: [t, lt]
1502
- });
1503
- const newLT = await anvil.readContract({
1504
- address: cm.address,
1505
- abi: iCreditManagerV3Abi,
1506
- functionName: "liquidationThresholds",
1507
- args: [t]
1508
- });
1509
- logger?.debug(`set ${t} LT to ${newLT}`);
1495
+ try {
1496
+ await anvil.writeContract({
1497
+ chain: anvil.chain,
1498
+ address: cm.creditConfigurator,
1499
+ account: configuratorAddr,
1500
+ abi: iCreditConfiguratorV3Abi,
1501
+ functionName: "setLiquidationThreshold",
1502
+ args: [t, lt]
1503
+ });
1504
+ const newLT = await anvil.readContract({
1505
+ address: cm.address,
1506
+ abi: iCreditManagerV3Abi,
1507
+ functionName: "liquidationThresholds",
1508
+ args: [t]
1509
+ });
1510
+ logger?.debug(`set ${t} LT to ${newLT}`);
1511
+ } catch {
1512
+ }
1510
1513
  }
1511
1514
  await anvil.stopImpersonatingAccount({
1512
1515
  address: configuratorAddr
@@ -1490,21 +1490,24 @@ async function setLTs(anvil, cm, newLTs, logger) {
1490
1490
  value: parseEther("100")
1491
1491
  });
1492
1492
  for (const [t, lt] of Object.entries(newLTs)) {
1493
- await anvil.writeContract({
1494
- chain: anvil.chain,
1495
- address: cm.creditConfigurator,
1496
- account: configuratorAddr,
1497
- abi: iCreditConfiguratorV3Abi,
1498
- functionName: "setLiquidationThreshold",
1499
- args: [t, lt]
1500
- });
1501
- const newLT = await anvil.readContract({
1502
- address: cm.address,
1503
- abi: iCreditManagerV3Abi,
1504
- functionName: "liquidationThresholds",
1505
- args: [t]
1506
- });
1507
- logger?.debug(`set ${t} LT to ${newLT}`);
1493
+ try {
1494
+ await anvil.writeContract({
1495
+ chain: anvil.chain,
1496
+ address: cm.creditConfigurator,
1497
+ account: configuratorAddr,
1498
+ abi: iCreditConfiguratorV3Abi,
1499
+ functionName: "setLiquidationThreshold",
1500
+ args: [t, lt]
1501
+ });
1502
+ const newLT = await anvil.readContract({
1503
+ address: cm.address,
1504
+ abi: iCreditManagerV3Abi,
1505
+ functionName: "liquidationThresholds",
1506
+ args: [t]
1507
+ });
1508
+ logger?.debug(`set ${t} LT to ${newLT}`);
1509
+ } catch {
1510
+ }
1508
1511
  }
1509
1512
  await anvil.stopImpersonatingAccount({
1510
1513
  address: configuratorAddr
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-vfour.48",
3
+ "version": "3.0.0-vfour.49",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",