@morpho-org/blue-sdk 5.12.1 → 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.
- package/lib/addresses.d.ts +2 -0
- package/lib/addresses.js +1 -0
- package/lib/vault/v2/VaultV2.js +2 -2
- package/package.json +1 -1
package/lib/addresses.d.ts
CHANGED
|
@@ -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",
|
package/lib/vault/v2/VaultV2.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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.
|
|
4
|
+
"version": "5.13.0",
|
|
5
5
|
"author": "Morpho Association <contact@morpho.org>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Rubilmax <rmilon@gmail.com>"
|