@morpho-org/blue-sdk 4.0.0 → 4.0.2

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/lib/chain.js CHANGED
@@ -152,7 +152,7 @@ var ChainUtils;
152
152
  name: "Katana",
153
153
  id: ChainId.KatanaMainnet,
154
154
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
155
- explorerUrl: "https://explorer.katana.network",
155
+ explorerUrl: "https://explorer.katanarpc.com",
156
156
  identifier: "katana",
157
157
  },
158
158
  };
@@ -51,7 +51,7 @@ var AdaptiveCurveIrmLib;
51
51
  // Compute e^r with a 2nd-order Taylor polynomial.
52
52
  const expR = MathLib_js_1.MathLib.WAD + r + (r * r) / MathLib_js_1.MathLib.WAD / 2n;
53
53
  // Return e^x = 2^q * e^r.
54
- if (q === 0n)
54
+ if (q >= 0n)
55
55
  return expR << q;
56
56
  return expR >> -q;
57
57
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@morpho-org/blue-sdk",
3
3
  "description": "Framework-agnostic package that defines Morpho-related entity classes (such as `Market`, `Token`, `Vault`).",
4
- "version": "4.0.0",
4
+ "version": "4.0.2",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Rubilmax <rmilon@gmail.com>"