@defisaver/sdk 1.3.14-dev-morpho-2 → 1.3.14

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/esm/src/Recipe.js CHANGED
@@ -119,7 +119,7 @@ export class Recipe {
119
119
  data.shouldTakeFeeFromPosition,
120
120
  ];
121
121
  return [
122
- this.recipeExecutorAddress,
122
+ getAddr('RecipeExecutorForTxSaver', CONFIG.chainId),
123
123
  // @ts-expect-error Interface of AbiCoder is wrong :(
124
124
  AbiCoder.encodeFunctionCall(executeTaskAbi, [encodedRecipe, encodedTxSaverData]),
125
125
  ];
@@ -1685,6 +1685,7 @@ export declare const actionAddresses: {
1685
1685
  export declare const otherAddresses: {
1686
1686
  [x: number]: {
1687
1687
  RecipeExecutor: string;
1688
+ RecipeExecutorForTxSaver: string;
1688
1689
  DFSRegistry: string;
1689
1690
  DFSProxyRegistry: string;
1690
1691
  ProxyRegistry: string;
@@ -1706,6 +1707,7 @@ export declare const otherAddresses: {
1706
1707
  DefisaverLogger?: undefined;
1707
1708
  } | {
1708
1709
  RecipeExecutor: string;
1710
+ RecipeExecutorForTxSaver: string;
1709
1711
  DFSRegistry: string;
1710
1712
  ProxyRegistry: string;
1711
1713
  DSGuardFactory: string;
@@ -1727,6 +1729,7 @@ export declare const otherAddresses: {
1727
1729
  BLUSD?: undefined;
1728
1730
  } | {
1729
1731
  RecipeExecutor: string;
1732
+ RecipeExecutorForTxSaver: string;
1730
1733
  DFSRegistry: string;
1731
1734
  ProxyRegistry: string;
1732
1735
  DSGuardFactory: string;
@@ -1753,6 +1756,7 @@ export declare const otherAddresses: {
1753
1756
  AdminVault: string;
1754
1757
  DefisaverLogger: string;
1755
1758
  Empty: string;
1759
+ RecipeExecutorForTxSaver?: undefined;
1756
1760
  DFSProxyRegistry?: undefined;
1757
1761
  ProxyRegistry?: undefined;
1758
1762
  McdCdpManager?: undefined;
@@ -1773,6 +1777,7 @@ export declare const otherAddresses: {
1773
1777
  AdminVault: string;
1774
1778
  DefisaverLogger: string;
1775
1779
  Empty: string;
1780
+ RecipeExecutorForTxSaver?: undefined;
1776
1781
  DFSProxyRegistry?: undefined;
1777
1782
  ProxyRegistry?: undefined;
1778
1783
  McdCdpManager?: undefined;
@@ -131,7 +131,7 @@ export const actionAddresses = {
131
131
  FLMaker: '0x0f8C3368cADF78167F5355D746Ed7b2A826A6e3b',
132
132
  FLBalancer: '0x93d333930c7f7260a1E6061B0a8C0CbdEC95F367',
133
133
  FLSpark: '0xe9Fe5a0f5e4B370Ae60d837da58744666D5C06F7',
134
- FLAction: '0x5f1dC84Ba060Ea3f7429c6A7bBEdd9243CF1209b',
134
+ FLAction: '0x7A0f3963c666d4549e5909a7162B560abF9f006D',
135
135
  FLUniV3: '0x9CAdAC8Be718572F82B672b950c53F0b58483A35',
136
136
  FLGho: '0xbb67b81dD080a406227A38965d0393f396ddECBc',
137
137
  FLMorphoBlue: '0x6206C96EAc5EAC546861438A9f953B6BEa50EBAB',
@@ -355,7 +355,7 @@ export const actionAddresses = {
355
355
  FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
356
356
  FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
357
357
  FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
358
- FLAction: '0x82d5eDeb005AfFbF381B5949C707a3305160F4A9',
358
+ FLAction: '0x13663f7f852dFa7ec6517B5F3B0caabDBd9bf049',
359
359
  AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
360
360
  GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
361
361
  AaveV3RatioCheck: '0x7A36779a7b5F1128B28932604057d5b63361297c',
@@ -422,9 +422,9 @@ export const actionAddresses = {
422
422
  FLAaveV3NoFee: '0x219ac6dA971dE6d943cffD1BD62abde71525d382',
423
423
  FLAaveV3: '0x53953aCEe438c083e4299F7976f03Ff3cb862161',
424
424
  FLBalancer: '0xdb28fE77709D88badC86868B27937428C3F48E73',
425
- FLUniV3: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
426
- FLAction: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
427
- FLMorphoBlue: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
425
+ FLUniV3: '0x6AD754298a902320919cbA7a633a222d56D4b83B',
426
+ FLAction: '0x6AD754298a902320919cbA7a633a222d56D4b83B',
427
+ FLMorphoBlue: '0x6AD754298a902320919cbA7a633a222d56D4b83B',
428
428
  GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
429
429
  AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
430
430
  // uniswap V3
@@ -499,8 +499,8 @@ export const actionAddresses = {
499
499
  FLAaveV3: '0x79Eb9cEe432Cd3e7b09A9eFdB21A733A6d7b4c3A',
500
500
  FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
501
501
  FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
502
- FLAction: '0x5523E61fBEF59825831Ffbb1306aBc3Bb03BB3A4',
503
- FLMorphoBlue: '0x5523E61fBEF59825831Ffbb1306aBc3Bb03BB3A4',
502
+ FLAction: '0xDA86B4c61A545a4b217746ba43C8157f0Ec612c7',
503
+ FLMorphoBlue: '0xDA86B4c61A545a4b217746ba43C8157f0Ec612c7',
504
504
  // AaveV3
505
505
  AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
506
506
  AaveV3SwapBorrowRateMode: '0x9d1D7A0dD5e82cCe9CC131eC0C807B0F543be70e',
@@ -636,7 +636,8 @@ export const actionAddresses = {
636
636
  };
637
637
  export const otherAddresses = {
638
638
  [NETWORKS.ethereum.chainId]: {
639
- RecipeExecutor: '0x2ee96cf53ae5fbd5309284704f978d0ca66cb963',
639
+ RecipeExecutor: '0x4677c84699ab29637102609cD2868d0743a48DdF',
640
+ RecipeExecutorForTxSaver: '0x2ee96cf53ae5fbd5309284704f978d0ca66cb963',
640
641
  DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
641
642
  DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
642
643
  ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
@@ -655,7 +656,8 @@ export const otherAddresses = {
655
656
  Empty: '0x0000000000000000000000000000000000000000',
656
657
  },
657
658
  [NETWORKS.optimism.chainId]: {
658
- RecipeExecutor: '0x993A8c81142044E1CB0Cf0c3d84BEa235d842Fb0',
659
+ RecipeExecutor: '0x30CEf36b14Dd71A347284204C48E134D04c24331',
660
+ RecipeExecutorForTxSaver: '0x993A8c81142044E1CB0Cf0c3d84BEa235d842Fb0',
659
661
  DFSRegistry: '0xAf707Ee480204Ed6e2640B53cE86F680D28Afcbd',
660
662
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
661
663
  DSGuardFactory: '0xc19d0F1E2b38AA283E226Ca4044766A43aA7B02b',
@@ -665,7 +667,8 @@ export const otherAddresses = {
665
667
  UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
666
668
  },
667
669
  [NETWORKS.arbitrum.chainId]: {
668
- RecipeExecutor: '0x7a25174229ea402d8ccd35fc6d55af079c399884',
670
+ RecipeExecutor: '0x6927F7Dc79B4215F307e6c1C4d5883d134053BAB',
671
+ RecipeExecutorForTxSaver: '0x7a25174229ea402d8ccd35fc6d55af079c399884',
669
672
  DFSRegistry: '0xBF1CaC12DB60819Bfa71A328282ecbc1D40443aA',
670
673
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
671
674
  DSGuardFactory: '0x5261abC3a94a6475D0A1171daE94A5f84fbaEcD2',
@@ -675,7 +678,8 @@ export const otherAddresses = {
675
678
  UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
676
679
  },
677
680
  [NETWORKS.base.chainId]: {
678
- RecipeExecutor: '0x7a87565b77dd65bbc153fe20e97743842f1a6e0c',
681
+ RecipeExecutor: '0x7De85e67745a027D41Aba5Fe2D9b288e6467d710',
682
+ RecipeExecutorForTxSaver: '0x7a87565b77dd65bbc153fe20e97743842f1a6e0c',
679
683
  DFSRegistry: '0x347FB634271F666353F23A3362f3935D96F97476',
680
684
  ProxyRegistry: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
681
685
  DSGuardFactory: '0x7783da8958013a57a5514737a4FBDFF06A0056e1',
@@ -3377,6 +3377,7 @@ declare const actionAddresses: (chainId?: null) => {
3377
3377
  declare const otherAddressesAllChains: {
3378
3378
  [x: number]: {
3379
3379
  RecipeExecutor: string;
3380
+ RecipeExecutorForTxSaver: string;
3380
3381
  DFSRegistry: string;
3381
3382
  DFSProxyRegistry: string;
3382
3383
  ProxyRegistry: string;
@@ -3398,6 +3399,7 @@ declare const otherAddressesAllChains: {
3398
3399
  DefisaverLogger?: undefined;
3399
3400
  } | {
3400
3401
  RecipeExecutor: string;
3402
+ RecipeExecutorForTxSaver: string;
3401
3403
  DFSRegistry: string;
3402
3404
  ProxyRegistry: string;
3403
3405
  DSGuardFactory: string;
@@ -3419,6 +3421,7 @@ declare const otherAddressesAllChains: {
3419
3421
  BLUSD?: undefined;
3420
3422
  } | {
3421
3423
  RecipeExecutor: string;
3424
+ RecipeExecutorForTxSaver: string;
3422
3425
  DFSRegistry: string;
3423
3426
  ProxyRegistry: string;
3424
3427
  DSGuardFactory: string;
@@ -3445,6 +3448,7 @@ declare const otherAddressesAllChains: {
3445
3448
  AdminVault: string;
3446
3449
  DefisaverLogger: string;
3447
3450
  Empty: string;
3451
+ RecipeExecutorForTxSaver?: undefined;
3448
3452
  DFSProxyRegistry?: undefined;
3449
3453
  ProxyRegistry?: undefined;
3450
3454
  McdCdpManager?: undefined;
@@ -3465,6 +3469,7 @@ declare const otherAddressesAllChains: {
3465
3469
  AdminVault: string;
3466
3470
  DefisaverLogger: string;
3467
3471
  Empty: string;
3472
+ RecipeExecutorForTxSaver?: undefined;
3468
3473
  DFSProxyRegistry?: undefined;
3469
3474
  ProxyRegistry?: undefined;
3470
3475
  McdCdpManager?: undefined;
@@ -3484,6 +3489,7 @@ declare const otherAddressesAllChains: {
3484
3489
  };
3485
3490
  declare const otherAddresses: (chainId?: null) => {
3486
3491
  RecipeExecutor: string;
3492
+ RecipeExecutorForTxSaver: string;
3487
3493
  DFSRegistry: string;
3488
3494
  DFSProxyRegistry: string;
3489
3495
  ProxyRegistry: string;
@@ -3505,6 +3511,7 @@ declare const otherAddresses: (chainId?: null) => {
3505
3511
  DefisaverLogger?: undefined;
3506
3512
  } | {
3507
3513
  RecipeExecutor: string;
3514
+ RecipeExecutorForTxSaver: string;
3508
3515
  DFSRegistry: string;
3509
3516
  ProxyRegistry: string;
3510
3517
  DSGuardFactory: string;
@@ -3526,6 +3533,7 @@ declare const otherAddresses: (chainId?: null) => {
3526
3533
  BLUSD?: undefined;
3527
3534
  } | {
3528
3535
  RecipeExecutor: string;
3536
+ RecipeExecutorForTxSaver: string;
3529
3537
  DFSRegistry: string;
3530
3538
  ProxyRegistry: string;
3531
3539
  DSGuardFactory: string;
@@ -3552,6 +3560,7 @@ declare const otherAddresses: (chainId?: null) => {
3552
3560
  AdminVault: string;
3553
3561
  DefisaverLogger: string;
3554
3562
  Empty: string;
3563
+ RecipeExecutorForTxSaver?: undefined;
3555
3564
  DFSProxyRegistry?: undefined;
3556
3565
  ProxyRegistry?: undefined;
3557
3566
  McdCdpManager?: undefined;
@@ -3572,6 +3581,7 @@ declare const otherAddresses: (chainId?: null) => {
3572
3581
  AdminVault: string;
3573
3582
  DefisaverLogger: string;
3574
3583
  Empty: string;
3584
+ RecipeExecutorForTxSaver?: undefined;
3575
3585
  DFSProxyRegistry?: undefined;
3576
3586
  ProxyRegistry?: undefined;
3577
3587
  McdCdpManager?: undefined;
@@ -6968,6 +6978,7 @@ declare const _default: {
6968
6978
  };
6969
6979
  otherAddresses: (chainId?: null) => {
6970
6980
  RecipeExecutor: string;
6981
+ RecipeExecutorForTxSaver: string;
6971
6982
  DFSRegistry: string;
6972
6983
  DFSProxyRegistry: string;
6973
6984
  ProxyRegistry: string;
@@ -6989,6 +7000,7 @@ declare const _default: {
6989
7000
  DefisaverLogger?: undefined;
6990
7001
  } | {
6991
7002
  RecipeExecutor: string;
7003
+ RecipeExecutorForTxSaver: string;
6992
7004
  DFSRegistry: string;
6993
7005
  ProxyRegistry: string;
6994
7006
  DSGuardFactory: string;
@@ -7010,6 +7022,7 @@ declare const _default: {
7010
7022
  BLUSD?: undefined;
7011
7023
  } | {
7012
7024
  RecipeExecutor: string;
7025
+ RecipeExecutorForTxSaver: string;
7013
7026
  DFSRegistry: string;
7014
7027
  ProxyRegistry: string;
7015
7028
  DSGuardFactory: string;
@@ -7036,6 +7049,7 @@ declare const _default: {
7036
7049
  AdminVault: string;
7037
7050
  DefisaverLogger: string;
7038
7051
  Empty: string;
7052
+ RecipeExecutorForTxSaver?: undefined;
7039
7053
  DFSProxyRegistry?: undefined;
7040
7054
  ProxyRegistry?: undefined;
7041
7055
  McdCdpManager?: undefined;
@@ -7056,6 +7070,7 @@ declare const _default: {
7056
7070
  AdminVault: string;
7057
7071
  DefisaverLogger: string;
7058
7072
  Empty: string;
7073
+ RecipeExecutorForTxSaver?: undefined;
7059
7074
  DFSProxyRegistry?: undefined;
7060
7075
  ProxyRegistry?: undefined;
7061
7076
  McdCdpManager?: undefined;
@@ -7075,6 +7090,7 @@ declare const _default: {
7075
7090
  otherAddressesAllChains: {
7076
7091
  [x: number]: {
7077
7092
  RecipeExecutor: string;
7093
+ RecipeExecutorForTxSaver: string;
7078
7094
  DFSRegistry: string;
7079
7095
  DFSProxyRegistry: string;
7080
7096
  ProxyRegistry: string;
@@ -7096,6 +7112,7 @@ declare const _default: {
7096
7112
  DefisaverLogger?: undefined;
7097
7113
  } | {
7098
7114
  RecipeExecutor: string;
7115
+ RecipeExecutorForTxSaver: string;
7099
7116
  DFSRegistry: string;
7100
7117
  ProxyRegistry: string;
7101
7118
  DSGuardFactory: string;
@@ -7117,6 +7134,7 @@ declare const _default: {
7117
7134
  BLUSD?: undefined;
7118
7135
  } | {
7119
7136
  RecipeExecutor: string;
7137
+ RecipeExecutorForTxSaver: string;
7120
7138
  DFSRegistry: string;
7121
7139
  ProxyRegistry: string;
7122
7140
  DSGuardFactory: string;
@@ -7143,6 +7161,7 @@ declare const _default: {
7143
7161
  AdminVault: string;
7144
7162
  DefisaverLogger: string;
7145
7163
  Empty: string;
7164
+ RecipeExecutorForTxSaver?: undefined;
7146
7165
  DFSProxyRegistry?: undefined;
7147
7166
  ProxyRegistry?: undefined;
7148
7167
  McdCdpManager?: undefined;
@@ -7163,6 +7182,7 @@ declare const _default: {
7163
7182
  AdminVault: string;
7164
7183
  DefisaverLogger: string;
7165
7184
  Empty: string;
7185
+ RecipeExecutorForTxSaver?: undefined;
7166
7186
  DFSProxyRegistry?: undefined;
7167
7187
  ProxyRegistry?: undefined;
7168
7188
  McdCdpManager?: undefined;
@@ -30,4 +30,3 @@ export * from './CompV3PriceRangeTrigger';
30
30
  export * from './LiquityV2AdjustRateDebtInFrontTrigger';
31
31
  export * from './AaveV3QuotePriceRangeTrigger';
32
32
  export * from './SparkQuotePriceRangeTrigger';
33
- export * from './MorphoBluePriceRangeTrigger';
@@ -30,4 +30,3 @@ export * from './CompV3PriceRangeTrigger';
30
30
  export * from './LiquityV2AdjustRateDebtInFrontTrigger';
31
31
  export * from './AaveV3QuotePriceRangeTrigger';
32
32
  export * from './SparkQuotePriceRangeTrigger';
33
- export * from './MorphoBluePriceRangeTrigger';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.3.14-dev-morpho-2",
3
+ "version": "1.3.14",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
package/src/Recipe.ts CHANGED
@@ -143,7 +143,7 @@ export class Recipe {
143
143
  data.shouldTakeFeeFromPosition,
144
144
  ];
145
145
  return [
146
- this.recipeExecutorAddress,
146
+ getAddr('RecipeExecutorForTxSaver', CONFIG.chainId),
147
147
  // @ts-expect-error Interface of AbiCoder is wrong :(
148
148
  AbiCoder.encodeFunctionCall(executeTaskAbi, [encodedRecipe, encodedTxSaverData]),
149
149
  ];
package/src/addresses.ts CHANGED
@@ -144,7 +144,7 @@ export const actionAddresses = {
144
144
  FLMaker: '0x0f8C3368cADF78167F5355D746Ed7b2A826A6e3b',
145
145
  FLBalancer: '0x93d333930c7f7260a1E6061B0a8C0CbdEC95F367',
146
146
  FLSpark: '0xe9Fe5a0f5e4B370Ae60d837da58744666D5C06F7',
147
- FLAction: '0x5f1dC84Ba060Ea3f7429c6A7bBEdd9243CF1209b',
147
+ FLAction: '0x7A0f3963c666d4549e5909a7162B560abF9f006D',
148
148
  FLUniV3: '0x9CAdAC8Be718572F82B672b950c53F0b58483A35',
149
149
  FLGho: '0xbb67b81dD080a406227A38965d0393f396ddECBc',
150
150
  FLMorphoBlue: '0x6206C96EAc5EAC546861438A9f953B6BEa50EBAB',
@@ -405,7 +405,7 @@ export const actionAddresses = {
405
405
  FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
406
406
  FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
407
407
  FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
408
- FLAction: '0x82d5eDeb005AfFbF381B5949C707a3305160F4A9',
408
+ FLAction: '0x13663f7f852dFa7ec6517B5F3B0caabDBd9bf049',
409
409
 
410
410
  AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
411
411
  GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
@@ -480,9 +480,9 @@ export const actionAddresses = {
480
480
  FLAaveV3NoFee: '0x219ac6dA971dE6d943cffD1BD62abde71525d382',
481
481
  FLAaveV3: '0x53953aCEe438c083e4299F7976f03Ff3cb862161',
482
482
  FLBalancer: '0xdb28fE77709D88badC86868B27937428C3F48E73',
483
- FLUniV3: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741', // @DEV - incorrect, same as FLAction
484
- FLAction: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
485
- FLMorphoBlue: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
483
+ FLUniV3: '0x6AD754298a902320919cbA7a633a222d56D4b83B', // @DEV - incorrect, same as FLAction
484
+ FLAction: '0x6AD754298a902320919cbA7a633a222d56D4b83B',
485
+ FLMorphoBlue: '0x6AD754298a902320919cbA7a633a222d56D4b83B',
486
486
 
487
487
  GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
488
488
  AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
@@ -565,8 +565,8 @@ export const actionAddresses = {
565
565
  FLAaveV3: '0x79Eb9cEe432Cd3e7b09A9eFdB21A733A6d7b4c3A',
566
566
  FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
567
567
  FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
568
- FLAction: '0x5523E61fBEF59825831Ffbb1306aBc3Bb03BB3A4', // fix temp
569
- FLMorphoBlue: '0x5523E61fBEF59825831Ffbb1306aBc3Bb03BB3A4',
568
+ FLAction: '0xDA86B4c61A545a4b217746ba43C8157f0Ec612c7', // fix temp
569
+ FLMorphoBlue: '0xDA86B4c61A545a4b217746ba43C8157f0Ec612c7',
570
570
 
571
571
  // AaveV3
572
572
  AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
@@ -714,7 +714,8 @@ export const actionAddresses = {
714
714
 
715
715
  export const otherAddresses = {
716
716
  [NETWORKS.ethereum.chainId]: {
717
- RecipeExecutor: '0x2ee96cf53ae5fbd5309284704f978d0ca66cb963',
717
+ RecipeExecutor: '0x4677c84699ab29637102609cD2868d0743a48DdF',
718
+ RecipeExecutorForTxSaver: '0x2ee96cf53ae5fbd5309284704f978d0ca66cb963',
718
719
  DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
719
720
  DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
720
721
  ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
@@ -734,7 +735,8 @@ export const otherAddresses = {
734
735
  Empty: '0x0000000000000000000000000000000000000000',
735
736
  },
736
737
  [NETWORKS.optimism.chainId]: {
737
- RecipeExecutor: '0x993A8c81142044E1CB0Cf0c3d84BEa235d842Fb0',
738
+ RecipeExecutor: '0x30CEf36b14Dd71A347284204C48E134D04c24331',
739
+ RecipeExecutorForTxSaver: '0x993A8c81142044E1CB0Cf0c3d84BEa235d842Fb0',
738
740
  DFSRegistry: '0xAf707Ee480204Ed6e2640B53cE86F680D28Afcbd',
739
741
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
740
742
 
@@ -746,7 +748,8 @@ export const otherAddresses = {
746
748
  UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
747
749
  },
748
750
  [NETWORKS.arbitrum.chainId]: {
749
- RecipeExecutor: '0x7a25174229ea402d8ccd35fc6d55af079c399884',
751
+ RecipeExecutor: '0x6927F7Dc79B4215F307e6c1C4d5883d134053BAB',
752
+ RecipeExecutorForTxSaver: '0x7a25174229ea402d8ccd35fc6d55af079c399884',
750
753
  DFSRegistry: '0xBF1CaC12DB60819Bfa71A328282ecbc1D40443aA',
751
754
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
752
755
 
@@ -758,7 +761,8 @@ export const otherAddresses = {
758
761
  UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
759
762
  },
760
763
  [NETWORKS.base.chainId]: {
761
- RecipeExecutor: '0x7a87565b77dd65bbc153fe20e97743842f1a6e0c',
764
+ RecipeExecutor: '0x7De85e67745a027D41Aba5Fe2D9b288e6467d710',
765
+ RecipeExecutorForTxSaver: '0x7a87565b77dd65bbc153fe20e97743842f1a6e0c',
762
766
  DFSRegistry: '0x347FB634271F666353F23A3362f3935D96F97476',
763
767
  ProxyRegistry: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
764
768
 
@@ -29,5 +29,4 @@ export * from './CompV3PriceTrigger';
29
29
  export * from './CompV3PriceRangeTrigger';
30
30
  export * from './LiquityV2AdjustRateDebtInFrontTrigger';
31
31
  export * from './AaveV3QuotePriceRangeTrigger';
32
- export * from './SparkQuotePriceRangeTrigger';
33
- export * from './MorphoBluePriceRangeTrigger';
32
+ export * from './SparkQuotePriceRangeTrigger';
package/umd/index.js CHANGED
@@ -7,7 +7,7 @@
7
7
  exports["defisaver-sdk"] = factory(require("web3-eth-abi"), require("web3-utils"), require("decimal.js"), require("@defisaver/tokens"), require("@ethersproject/solidity"), require("@ethersproject/address"), require("axios"));
8
8
  else
9
9
  root["defisaver-sdk"] = factory(root["web3-eth-abi"], root["web3-utils"], root["decimal.js"], root["@defisaver/tokens"], root["@ethersproject/solidity"], root["@ethersproject/address"], root["axios"]);
10
- })(this, (__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__138__, __WEBPACK_EXTERNAL_MODULE__139__, __WEBPACK_EXTERNAL_MODULE__444__) => {
10
+ })(this, (__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__138__, __WEBPACK_EXTERNAL_MODULE__139__, __WEBPACK_EXTERNAL_MODULE__443__) => {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ([
@@ -1200,7 +1200,7 @@ class Recipe {
1200
1200
  });
1201
1201
  var encodedRecipe = _assertClassBrand(_Recipe_brand, this, _encodeForCall).call(this)[0];
1202
1202
  var encodedTxSaverData = [data.maxTxCostInFeeToken, data.feeToken, data.tokenPriceInEth, data.deadline, data.shouldTakeFeeFromPosition];
1203
- return [this.recipeExecutorAddress,
1203
+ return [(0,_addresses__WEBPACK_IMPORTED_MODULE_4__.getAddr)('RecipeExecutorForTxSaver', _config__WEBPACK_IMPORTED_MODULE_6__.CONFIG.chainId),
1204
1204
  // @ts-expect-error Interface of AbiCoder is wrong :(
1205
1205
  web3_eth_abi__WEBPACK_IMPORTED_MODULE_0___default().encodeFunctionCall(executeTaskAbi, [encodedRecipe, encodedTxSaverData])];
1206
1206
  }
@@ -1444,7 +1444,7 @@ var actionAddresses = {
1444
1444
  FLMaker: '0x0f8C3368cADF78167F5355D746Ed7b2A826A6e3b',
1445
1445
  FLBalancer: '0x93d333930c7f7260a1E6061B0a8C0CbdEC95F367',
1446
1446
  FLSpark: '0xe9Fe5a0f5e4B370Ae60d837da58744666D5C06F7',
1447
- FLAction: '0x5f1dC84Ba060Ea3f7429c6A7bBEdd9243CF1209b',
1447
+ FLAction: '0x7A0f3963c666d4549e5909a7162B560abF9f006D',
1448
1448
  FLUniV3: '0x9CAdAC8Be718572F82B672b950c53F0b58483A35',
1449
1449
  FLGho: '0xbb67b81dD080a406227A38965d0393f396ddECBc',
1450
1450
  FLMorphoBlue: '0x6206C96EAc5EAC546861438A9f953B6BEa50EBAB',
@@ -1668,7 +1668,7 @@ var actionAddresses = {
1668
1668
  FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
1669
1669
  FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
1670
1670
  FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
1671
- FLAction: '0x82d5eDeb005AfFbF381B5949C707a3305160F4A9',
1671
+ FLAction: '0x13663f7f852dFa7ec6517B5F3B0caabDBd9bf049',
1672
1672
  AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
1673
1673
  GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
1674
1674
  AaveV3RatioCheck: '0x7A36779a7b5F1128B28932604057d5b63361297c',
@@ -1735,10 +1735,10 @@ var actionAddresses = {
1735
1735
  FLAaveV3NoFee: '0x219ac6dA971dE6d943cffD1BD62abde71525d382',
1736
1736
  FLAaveV3: '0x53953aCEe438c083e4299F7976f03Ff3cb862161',
1737
1737
  FLBalancer: '0xdb28fE77709D88badC86868B27937428C3F48E73',
1738
- FLUniV3: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
1738
+ FLUniV3: '0x6AD754298a902320919cbA7a633a222d56D4b83B',
1739
1739
  // @DEV - incorrect, same as FLAction
1740
- FLAction: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
1741
- FLMorphoBlue: '0x9FD9884428615DF36c28B9ba206b67Ded81eB741',
1740
+ FLAction: '0x6AD754298a902320919cbA7a633a222d56D4b83B',
1741
+ FLMorphoBlue: '0x6AD754298a902320919cbA7a633a222d56D4b83B',
1742
1742
  GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
1743
1743
  AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
1744
1744
  // uniswap V3
@@ -1813,9 +1813,9 @@ var actionAddresses = {
1813
1813
  FLAaveV3: '0x79Eb9cEe432Cd3e7b09A9eFdB21A733A6d7b4c3A',
1814
1814
  FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
1815
1815
  FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
1816
- FLAction: '0x5523E61fBEF59825831Ffbb1306aBc3Bb03BB3A4',
1816
+ FLAction: '0xDA86B4c61A545a4b217746ba43C8157f0Ec612c7',
1817
1817
  // fix temp
1818
- FLMorphoBlue: '0x5523E61fBEF59825831Ffbb1306aBc3Bb03BB3A4',
1818
+ FLMorphoBlue: '0xDA86B4c61A545a4b217746ba43C8157f0Ec612c7',
1819
1819
  // AaveV3
1820
1820
  AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
1821
1821
  AaveV3SwapBorrowRateMode: '0x9d1D7A0dD5e82cCe9CC131eC0C807B0F543be70e',
@@ -1953,7 +1953,8 @@ var actionAddresses = {
1953
1953
  };
1954
1954
  var otherAddresses = {
1955
1955
  [_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.ethereum.chainId]: {
1956
- RecipeExecutor: '0x2ee96cf53ae5fbd5309284704f978d0ca66cb963',
1956
+ RecipeExecutor: '0x4677c84699ab29637102609cD2868d0743a48DdF',
1957
+ RecipeExecutorForTxSaver: '0x2ee96cf53ae5fbd5309284704f978d0ca66cb963',
1957
1958
  DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
1958
1959
  DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
1959
1960
  ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
@@ -1972,7 +1973,8 @@ var otherAddresses = {
1972
1973
  Empty: '0x0000000000000000000000000000000000000000'
1973
1974
  },
1974
1975
  [_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.optimism.chainId]: {
1975
- RecipeExecutor: '0x993A8c81142044E1CB0Cf0c3d84BEa235d842Fb0',
1976
+ RecipeExecutor: '0x30CEf36b14Dd71A347284204C48E134D04c24331',
1977
+ RecipeExecutorForTxSaver: '0x993A8c81142044E1CB0Cf0c3d84BEa235d842Fb0',
1976
1978
  DFSRegistry: '0xAf707Ee480204Ed6e2640B53cE86F680D28Afcbd',
1977
1979
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
1978
1980
  DSGuardFactory: '0xc19d0F1E2b38AA283E226Ca4044766A43aA7B02b',
@@ -1982,7 +1984,8 @@ var otherAddresses = {
1982
1984
  UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88'
1983
1985
  },
1984
1986
  [_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.arbitrum.chainId]: {
1985
- RecipeExecutor: '0x7a25174229ea402d8ccd35fc6d55af079c399884',
1987
+ RecipeExecutor: '0x6927F7Dc79B4215F307e6c1C4d5883d134053BAB',
1988
+ RecipeExecutorForTxSaver: '0x7a25174229ea402d8ccd35fc6d55af079c399884',
1986
1989
  DFSRegistry: '0xBF1CaC12DB60819Bfa71A328282ecbc1D40443aA',
1987
1990
  ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
1988
1991
  DSGuardFactory: '0x5261abC3a94a6475D0A1171daE94A5f84fbaEcD2',
@@ -1992,7 +1995,8 @@ var otherAddresses = {
1992
1995
  UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88'
1993
1996
  },
1994
1997
  [_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.base.chainId]: {
1995
- RecipeExecutor: '0x7a87565b77dd65bbc153fe20e97743842f1a6e0c',
1998
+ RecipeExecutor: '0x7De85e67745a027D41Aba5Fe2D9b288e6467d710',
1999
+ RecipeExecutorForTxSaver: '0x7a87565b77dd65bbc153fe20e97743842f1a6e0c',
1996
2000
  DFSRegistry: '0x347FB634271F666353F23A3362f3935D96F97476',
1997
2001
  ProxyRegistry: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
1998
2002
  DSGuardFactory: '0x7783da8958013a57a5514737a4FBDFF06A0056e1',
@@ -16394,7 +16398,6 @@ __webpack_require__.r(__webpack_exports__);
16394
16398
  /* harmony export */ LiquityV2RatioTrigger: () => (/* reexport safe */ _LiquityV2RatioTrigger__WEBPACK_IMPORTED_MODULE_23__.LiquityV2RatioTrigger),
16395
16399
  /* harmony export */ MakerRatioTrigger: () => (/* reexport safe */ _MakerRatioTrigger__WEBPACK_IMPORTED_MODULE_0__.MakerRatioTrigger),
16396
16400
  /* harmony export */ MorphoAaveV2RatioTrigger: () => (/* reexport safe */ _MorphoAaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_14__.MorphoAaveV2RatioTrigger),
16397
- /* harmony export */ MorphoBluePriceRangeTrigger: () => (/* reexport safe */ _MorphoBluePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_32__.MorphoBluePriceRangeTrigger),
16398
16401
  /* harmony export */ MorphoBluePriceTrigger: () => (/* reexport safe */ _MorphoBluePriceTrigger__WEBPACK_IMPORTED_MODULE_22__.MorphoBluePriceTrigger),
16399
16402
  /* harmony export */ MorphoBlueRatioTrigger: () => (/* reexport safe */ _MorphoBlueRatioTrigger__WEBPACK_IMPORTED_MODULE_20__.MorphoBlueRatioTrigger),
16400
16403
  /* harmony export */ OffchainPriceTrigger: () => (/* reexport safe */ _OffchainPriceTrigger__WEBPACK_IMPORTED_MODULE_21__.OffchainPriceTrigger),
@@ -16438,8 +16441,6 @@ __webpack_require__.r(__webpack_exports__);
16438
16441
  /* harmony import */ var _LiquityV2AdjustRateDebtInFrontTrigger__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(438);
16439
16442
  /* harmony import */ var _AaveV3QuotePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(439);
16440
16443
  /* harmony import */ var _SparkQuotePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(440);
16441
- /* harmony import */ var _MorphoBluePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(441);
16442
-
16443
16444
 
16444
16445
 
16445
16446
 
@@ -17219,35 +17220,6 @@ class SparkQuotePriceRangeTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.A
17219
17220
  /* 441 */
17220
17221
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17221
17222
 
17222
- __webpack_require__.r(__webpack_exports__);
17223
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17224
- /* harmony export */ MorphoBluePriceRangeTrigger: () => (/* binding */ MorphoBluePriceRangeTrigger)
17225
- /* harmony export */ });
17226
- /* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
17227
- /* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
17228
-
17229
-
17230
- /**
17231
- * Trigger contract that verifies if current token price ratio is outside of given range specified during subscription
17232
- * @category Triggers
17233
- */
17234
- class MorphoBluePriceRangeTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
17235
- /**
17236
- * @param loanToken - MarketParams loanToken
17237
- * @param collateralToken - MarketParams collateralToken
17238
- * @param oracle - MarketParams oracle
17239
- * @param lowerPrice - The lower price of the range
17240
- * @param upperPrice - The upper price of the range
17241
- */
17242
- constructor(loanToken, collateralToken, oracle, lowerPrice, upperPrice) {
17243
- super('MorphoBluePriceRangeTrigger', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), [['address', 'address', 'address', 'uint256', 'uint256']], [[oracle, collateralToken, loanToken, lowerPrice, upperPrice]]);
17244
- }
17245
- }
17246
-
17247
- /***/ }),
17248
- /* 442 */
17249
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17250
-
17251
17223
  __webpack_require__.r(__webpack_exports__);
17252
17224
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17253
17225
  /* harmony export */ basicUtils: () => (/* reexport module object */ _basic_utils__WEBPACK_IMPORTED_MODULE_7__),
@@ -17259,9 +17231,9 @@ __webpack_require__.r(__webpack_exports__);
17259
17231
  /* harmony export */ uniswapV3LP: () => (/* reexport module object */ _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__),
17260
17232
  /* harmony export */ zeroExExchange: () => (/* reexport module object */ _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__)
17261
17233
  /* harmony export */ });
17262
- /* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(443);
17234
+ /* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(442);
17263
17235
  /* harmony import */ var _uniswapLP__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(137);
17264
- /* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(445);
17236
+ /* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(444);
17265
17237
  /* harmony import */ var _convex_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(243);
17266
17238
  /* harmony import */ var _mstableAssetPairs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(223);
17267
17239
  /* harmony import */ var _curve_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(209);
@@ -17278,7 +17250,7 @@ __webpack_require__.r(__webpack_exports__);
17278
17250
 
17279
17251
 
17280
17252
  /***/ }),
17281
- /* 443 */
17253
+ /* 442 */
17282
17254
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17283
17255
 
17284
17256
  __webpack_require__.r(__webpack_exports__);
@@ -17289,7 +17261,7 @@ __webpack_require__.r(__webpack_exports__);
17289
17261
  /* harmony export */ });
17290
17262
  /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
17291
17263
  /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(decimal_js__WEBPACK_IMPORTED_MODULE_0__);
17292
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(444);
17264
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(443);
17293
17265
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
17294
17266
  /* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
17295
17267
  /* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__);
@@ -17491,20 +17463,20 @@ var createSellAction = /*#__PURE__*/function () {
17491
17463
  }();
17492
17464
 
17493
17465
  /***/ }),
17494
- /* 444 */
17466
+ /* 443 */
17495
17467
  /***/ ((module) => {
17496
17468
 
17497
- module.exports = __WEBPACK_EXTERNAL_MODULE__444__;
17469
+ module.exports = __WEBPACK_EXTERNAL_MODULE__443__;
17498
17470
 
17499
17471
  /***/ }),
17500
- /* 445 */
17472
+ /* 444 */
17501
17473
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17502
17474
 
17503
17475
  __webpack_require__.r(__webpack_exports__);
17504
17476
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17505
17477
  /* harmony export */ getAssetAddrByTokenId: () => (/* binding */ getAssetAddrByTokenId)
17506
17478
  /* harmony export */ });
17507
- /* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(446);
17479
+ /* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(445);
17508
17480
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
17509
17481
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
17510
17482
  /**
@@ -17529,7 +17501,7 @@ var getAssetAddrByTokenId = /*#__PURE__*/function () {
17529
17501
  }();
17530
17502
 
17531
17503
  /***/ }),
17532
- /* 446 */
17504
+ /* 445 */
17533
17505
  /***/ ((module) => {
17534
17506
 
17535
17507
  module.exports = /*#__PURE__*/JSON.parse('[{"constant":false,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"positions","outputs":[{"name":"nonce","type":"uint96"},{"name":"operator","type":"address"},{"name":"token0","type":"address"},{"name":"token1","type":"address"},{"name":"fee","type":"uint24"},{"name":"tickLower","type":"int24"},{"name":"tickUpper","type":"int24"},{"name":"liquidity","type":"uint128"},{"name":"feeGrowthInside0LastX128","type":"uint256"},{"name":"feeGrowthInside1LastX128","type":"uint256"},{"name":"tokensOwed0","type":"uint128"},{"name":"tokensOwed1","type":"uint128"}],"payable":false,"stateMutability":"view","type":"function"}]');
@@ -17634,7 +17606,7 @@ __webpack_require__.r(__webpack_exports__);
17634
17606
  /* harmony import */ var _DfsWeb3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30);
17635
17607
  /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35);
17636
17608
  /* harmony import */ var _triggers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(408);
17637
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(442);
17609
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(441);
17638
17610
  /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4);
17639
17611
  /* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27);
17640
17612
  /* Export types here */
@@ -1,16 +0,0 @@
1
- import { Action } from '../Action';
2
- import { EthAddress, uint256 } from '../types';
3
- /**
4
- * Trigger contract that verifies if current token price ratio is outside of given range specified during subscription
5
- * @category Triggers
6
- */
7
- export declare class MorphoBluePriceRangeTrigger extends Action {
8
- /**
9
- * @param loanToken - MarketParams loanToken
10
- * @param collateralToken - MarketParams collateralToken
11
- * @param oracle - MarketParams oracle
12
- * @param lowerPrice - The lower price of the range
13
- * @param upperPrice - The upper price of the range
14
- */
15
- constructor(loanToken: EthAddress, collateralToken: EthAddress, oracle: EthAddress, lowerPrice: uint256, upperPrice: uint256);
16
- }
@@ -1,18 +0,0 @@
1
- import { Action } from '../Action';
2
- import { getAddr } from '../addresses';
3
- /**
4
- * Trigger contract that verifies if current token price ratio is outside of given range specified during subscription
5
- * @category Triggers
6
- */
7
- export class MorphoBluePriceRangeTrigger extends Action {
8
- /**
9
- * @param loanToken - MarketParams loanToken
10
- * @param collateralToken - MarketParams collateralToken
11
- * @param oracle - MarketParams oracle
12
- * @param lowerPrice - The lower price of the range
13
- * @param upperPrice - The upper price of the range
14
- */
15
- constructor(loanToken, collateralToken, oracle, lowerPrice, upperPrice) {
16
- super('MorphoBluePriceRangeTrigger', getAddr('Empty'), [['address', 'address', 'address', 'uint256', 'uint256']], [[oracle, collateralToken, loanToken, lowerPrice, upperPrice]]);
17
- }
18
- }
@@ -1,31 +0,0 @@
1
- import { Action } from '../Action';
2
- import { getAddr } from '../addresses';
3
- import { EthAddress, uint256, uint8 } from '../types';
4
-
5
- /**
6
- * Trigger contract that verifies if current token price ratio is outside of given range specified during subscription
7
- * @category Triggers
8
- */
9
- export class MorphoBluePriceRangeTrigger extends Action {
10
- /**
11
- * @param loanToken - MarketParams loanToken
12
- * @param collateralToken - MarketParams collateralToken
13
- * @param oracle - MarketParams oracle
14
- * @param lowerPrice - The lower price of the range
15
- * @param upperPrice - The upper price of the range
16
- */
17
- constructor(
18
- loanToken:EthAddress,
19
- collateralToken:EthAddress,
20
- oracle:EthAddress,
21
- lowerPrice:uint256,
22
- upperPrice:uint256,
23
- ) {
24
- super(
25
- 'MorphoBluePriceRangeTrigger',
26
- getAddr('Empty'),
27
- [['address', 'address', 'address', 'uint256', 'uint256']],
28
- [[oracle, collateralToken, loanToken, lowerPrice, upperPrice]],
29
- );
30
- }
31
- }