@morpho-org/blue-sdk 5.12.0 → 5.13.0

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.
@@ -409,6 +409,7 @@ declare const _addressesRegistry: {
409
409
  };
410
410
  readonly 1135: {
411
411
  readonly morpho: "0x00cD58DEEbd7A2F1C55dAec715faF8aed5b27BF8";
412
+ readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
412
413
  readonly bundler3: {
413
414
  readonly bundler3: "0xD96E5e02580C4EAfE15B5537b25eE3dEe5861e00";
414
415
  readonly generalAdapter1: "0x76cFE4BF840C7b461772fE7CDE399f58c4173584";
@@ -1411,6 +1412,7 @@ export declare let addressesRegistry: {
1411
1412
  };
1412
1413
  readonly 1135: {
1413
1414
  readonly morpho: "0x00cD58DEEbd7A2F1C55dAec715faF8aed5b27BF8";
1415
+ readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
1414
1416
  readonly bundler3: {
1415
1417
  readonly bundler3: "0xD96E5e02580C4EAfE15B5537b25eE3dEe5861e00";
1416
1418
  readonly generalAdapter1: "0x76cFE4BF840C7b461772fE7CDE399f58c4173584";
package/lib/addresses.js CHANGED
@@ -395,6 +395,7 @@ const _addressesRegistry = {
395
395
  },
396
396
  [chain_js_1.ChainId.LiskMainnet]: {
397
397
  morpho: "0x00cD58DEEbd7A2F1C55dAec715faF8aed5b27BF8",
398
+ permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
398
399
  bundler3: {
399
400
  bundler3: "0xD96E5e02580C4EAfE15B5537b25eE3dEe5861e00",
400
401
  generalAdapter1: "0x76cFE4BF840C7b461772fE7CDE399f58c4173584",
@@ -507,6 +508,7 @@ const _addressesRegistry = {
507
508
  registryList: "0xCe93fcB2849EB886F1e81d45D2747dF803f843C3",
508
509
  chainlinkOracleFactory: "0xF24C6eAB91e43EacE18a4e893a48565C09132505",
509
510
  preLiquidationFactory: "0x741A6604e974FeAF35a5FBb1416B3e01c33e5C0e",
511
+ // There is no wrapped native token because the native token USDT0 is already an ERC20.
510
512
  },
511
513
  [chain_js_1.ChainId.CronosMainnet]: {
512
514
  morpho: "0xDF9a1DC07e5dEe5ccCCaBeC35e446C70fAF7434e",
package/lib/chain.js CHANGED
@@ -226,7 +226,7 @@ var ChainUtils;
226
226
  [ChainId.StableMainnet]: {
227
227
  name: "Stable",
228
228
  id: ChainId.StableMainnet,
229
- nativeCurrency: { name: "gUSDT", symbol: "gUSDT", decimals: 18 },
229
+ nativeCurrency: { name: "USDT0", symbol: "USDT0", decimals: 18 },
230
230
  explorerUrl: "https://stablescan.xyz",
231
231
  identifier: "stable",
232
232
  },
@@ -82,7 +82,7 @@ class AccrualVaultV2 extends VaultV2 {
82
82
  // `absoluteCap` can be set lower than `allocation`.
83
83
  const absoluteMaxDeposit = math_1.MathLib.zeroFloorSub(absoluteCap, allocation);
84
84
  if (liquidityAdapterLimit.value > absoluteMaxDeposit)
85
- return {
85
+ liquidityAdapterLimit = {
86
86
  value: absoluteMaxDeposit,
87
87
  limiter: utils_1.CapacityLimitReason.vaultV2_absoluteCap,
88
88
  };
@@ -90,7 +90,7 @@ class AccrualVaultV2 extends VaultV2 {
90
90
  // `relativeCap` can be set lower than `allocation / totalAssets`.
91
91
  const relativeMaxDeposit = math_1.MathLib.zeroFloorSub(math_1.MathLib.wMulDown(this.totalAssets, relativeCap), allocation);
92
92
  if (liquidityAdapterLimit.value > relativeMaxDeposit)
93
- return {
93
+ liquidityAdapterLimit = {
94
94
  value: relativeMaxDeposit,
95
95
  limiter: utils_1.CapacityLimitReason.vaultV2_relativeCap,
96
96
  };
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": "5.12.0",
4
+ "version": "5.13.0",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Rubilmax <rmilon@gmail.com>"
@@ -32,7 +32,7 @@
32
32
  "viem": "^2.41.2",
33
33
  "vitest": "^4.0.15",
34
34
  "@morpho-org/morpho-ts": "^2.4.6",
35
- "@morpho-org/test": "^2.6.6"
35
+ "@morpho-org/test": "^2.6.7"
36
36
  },
37
37
  "scripts": {
38
38
  "prepublish": "$npm_execpath build",