@defisaver/sdk 1.0.19 → 1.0.21

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/src/addresses.ts CHANGED
@@ -71,6 +71,12 @@ export const actionAddresses = {
71
71
  MorphoAaveV2Withdraw: '0x29a8b5a8889f465c85b778edccf984e44ad70f12',
72
72
  MorphoClaim: '0xa269C841E26EA8Ee1F0350a2E5905F71446998dC',
73
73
 
74
+ // morpho aave v3
75
+ MorphoAaveV3Borrow: '0x4a177af7640e087dc819c52b28eaa9f672bcd362',
76
+ MorphoAaveV3Payback: '0x31d38b7ece8c68b0cbdc9f6db93a0251841c1ad6',
77
+ MorphoAaveV3Supply: '0x5befc2b35721aafaccd3c63916e8dc99b8aeab53',
78
+ MorphoAaveV3Withdraw: '0xb5305db14b7290266aa3790ffe828900c4cfb6a7',
79
+
74
80
  // compound
75
81
  CompBorrow: '0x8495579BF6Ae848f7E59686536F834f1d2CCd79C',
76
82
  CompClaim: '0x81F488cF7A0128A9DB5e7207042cCAB1CB0ac902',
@@ -161,7 +167,7 @@ export const actionAddresses = {
161
167
  CurveStethPoolWithdraw: '0x4089731d843Ce52699Fe64F68556aBbD95D70D00',
162
168
 
163
169
  CurveDeposit: '0xf46aCCE6d2559971bF5Aea03A10B3679709CE43d',
164
- CurveWithdraw: '0x558E1242daf42a2Cc9c581D9806EE4309bB8Cf83',
170
+ CurveWithdraw: '0x97616a969daaa8e1f27c4902745c88357e54ad6c',
165
171
 
166
172
  McdBoostComposite: '0x0000000000000000000000000000000000000000',
167
173
  McdRepayComposite: '0x0000000000000000000000000000000000000000',
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__105__, __WEBPACK_EXTERNAL_MODULE__106__, __WEBPACK_EXTERNAL_MODULE__239__) => {
10
+ })(this, (__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__105__, __WEBPACK_EXTERNAL_MODULE__106__, __WEBPACK_EXTERNAL_MODULE__243__) => {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ([
@@ -1300,6 +1300,11 @@ var actionAddresses = {
1300
1300
  MorphoAaveV2Supply: '0x60ED1Cf5Da785AA4FD4A4fF3f8cFc0682d60E0F3',
1301
1301
  MorphoAaveV2Withdraw: '0x29a8b5a8889f465c85b778edccf984e44ad70f12',
1302
1302
  MorphoClaim: '0xa269C841E26EA8Ee1F0350a2E5905F71446998dC',
1303
+ // morpho aave v3
1304
+ MorphoAaveV3Borrow: '0x4a177af7640e087dc819c52b28eaa9f672bcd362',
1305
+ MorphoAaveV3Payback: '0x31d38b7ece8c68b0cbdc9f6db93a0251841c1ad6',
1306
+ MorphoAaveV3Supply: '0x5befc2b35721aafaccd3c63916e8dc99b8aeab53',
1307
+ MorphoAaveV3Withdraw: '0xb5305db14b7290266aa3790ffe828900c4cfb6a7',
1303
1308
  // compound
1304
1309
  CompBorrow: '0x8495579BF6Ae848f7E59686536F834f1d2CCd79C',
1305
1310
  CompClaim: '0x81F488cF7A0128A9DB5e7207042cCAB1CB0ac902',
@@ -1373,7 +1378,7 @@ var actionAddresses = {
1373
1378
  CurveStethPoolDeposit: '0x5Ae5870dC0C780e9eb68bE7a223eCd7F3BDad12B',
1374
1379
  CurveStethPoolWithdraw: '0x4089731d843Ce52699Fe64F68556aBbD95D70D00',
1375
1380
  CurveDeposit: '0xf46aCCE6d2559971bF5Aea03A10B3679709CE43d',
1376
- CurveWithdraw: '0x558E1242daf42a2Cc9c581D9806EE4309bB8Cf83',
1381
+ CurveWithdraw: '0x97616a969daaa8e1f27c4902745c88357e54ad6c',
1377
1382
  McdBoostComposite: '0x0000000000000000000000000000000000000000',
1378
1383
  McdRepayComposite: '0x0000000000000000000000000000000000000000',
1379
1384
  // Euler
@@ -1833,7 +1838,7 @@ __webpack_require__.r(__webpack_exports__);
1833
1838
  /* harmony import */ var _chickenBonds__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(198);
1834
1839
  /* harmony import */ var _compoundV3__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(206);
1835
1840
  /* harmony import */ var _morpho__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(214);
1836
- /* harmony import */ var _bprotocol__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(220);
1841
+ /* harmony import */ var _bprotocol__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(224);
1837
1842
 
1838
1843
 
1839
1844
 
@@ -8598,6 +8603,10 @@ __webpack_require__.r(__webpack_exports__);
8598
8603
  /* harmony export */ "MorphoAaveV2PaybackAction": () => (/* reexport safe */ _MorphoAaveV2PaybackAction__WEBPACK_IMPORTED_MODULE_3__.MorphoAaveV2PaybackAction),
8599
8604
  /* harmony export */ "MorphoAaveV2SupplyAction": () => (/* reexport safe */ _MorphoAaveV2SupplyAction__WEBPACK_IMPORTED_MODULE_0__.MorphoAaveV2SupplyAction),
8600
8605
  /* harmony export */ "MorphoAaveV2WithdrawAction": () => (/* reexport safe */ _MorphoAaveV2WithdrawAction__WEBPACK_IMPORTED_MODULE_1__.MorphoAaveV2WithdrawAction),
8606
+ /* harmony export */ "MorphoAaveV3BorrowAction": () => (/* reexport safe */ _aaveV3_MorphoAaveV3BorrowAction__WEBPACK_IMPORTED_MODULE_7__.MorphoAaveV3BorrowAction),
8607
+ /* harmony export */ "MorphoAaveV3PaybackAction": () => (/* reexport safe */ _aaveV3_MorphoAaveV3PaybackAction__WEBPACK_IMPORTED_MODULE_8__.MorphoAaveV3PaybackAction),
8608
+ /* harmony export */ "MorphoAaveV3SupplyAction": () => (/* reexport safe */ _aaveV3_MorphoAaveV3SupplyAction__WEBPACK_IMPORTED_MODULE_5__.MorphoAaveV3SupplyAction),
8609
+ /* harmony export */ "MorphoAaveV3WithdrawAction": () => (/* reexport safe */ _aaveV3_MorphoAaveV3WithdrawAction__WEBPACK_IMPORTED_MODULE_6__.MorphoAaveV3WithdrawAction),
8601
8610
  /* harmony export */ "MorphoClaimAction": () => (/* reexport safe */ _MorphoClaimAction__WEBPACK_IMPORTED_MODULE_4__.MorphoClaimAction)
8602
8611
  /* harmony export */ });
8603
8612
  /* harmony import */ var _MorphoAaveV2SupplyAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(215);
@@ -8605,6 +8614,14 @@ __webpack_require__.r(__webpack_exports__);
8605
8614
  /* harmony import */ var _MorphoAaveV2BorrowAction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(217);
8606
8615
  /* harmony import */ var _MorphoAaveV2PaybackAction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(218);
8607
8616
  /* harmony import */ var _MorphoClaimAction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(219);
8617
+ /* harmony import */ var _aaveV3_MorphoAaveV3SupplyAction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(220);
8618
+ /* harmony import */ var _aaveV3_MorphoAaveV3WithdrawAction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(221);
8619
+ /* harmony import */ var _aaveV3_MorphoAaveV3BorrowAction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(222);
8620
+ /* harmony import */ var _aaveV3_MorphoAaveV3PaybackAction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(223);
8621
+
8622
+
8623
+
8624
+
8608
8625
 
8609
8626
 
8610
8627
 
@@ -8800,18 +8817,188 @@ class MorphoClaimAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
8800
8817
  /* 220 */
8801
8818
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8802
8819
 
8820
+ __webpack_require__.r(__webpack_exports__);
8821
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8822
+ /* harmony export */ "MorphoAaveV3SupplyAction": () => (/* binding */ MorphoAaveV3SupplyAction)
8823
+ /* harmony export */ });
8824
+ /* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
8825
+ /* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__);
8826
+ /* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
8827
+ /* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27);
8828
+ 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); } }
8829
+ 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); }); }; }
8830
+
8831
+
8832
+
8833
+ /**
8834
+ * MorphoAaveV3SupplyAction - Supply token to morpho aaveV3
8835
+ *
8836
+ * @category Morpho
8837
+ */
8838
+ class MorphoAaveV3SupplyAction extends _Action__WEBPACK_IMPORTED_MODULE_1__.Action {
8839
+ /**
8840
+ * @param emodeId Type of emode we are entering in, each one is different deployment on Morpho
8841
+ * @param tokenAddr - Address of tokenAddr (underlying)
8842
+ * @param amount - Token amount
8843
+ * @param from - Tokens will be sent from this address
8844
+ * @param onBehalf - For what user we are paying back the debt, defaults to proxy
8845
+ * @param supplyAsColl Whether to supplyAsCollateral or regular supply
8846
+ * @param maxIterations Max number of iterations for p2p matching, 0 will use default num of iterations
8847
+ */
8848
+ constructor(emodeId, tokenAddr, amount, from) {
8849
+ var onBehalf = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('Empty');
8850
+ var supplyAsColl = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
8851
+ var maxIterations = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '4';
8852
+ super('MorphoAaveV3Supply', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('MorphoAaveV3Supply'), ['uint256', 'address', 'uint256', 'address', 'address', 'bool', 'uint256'], [emodeId, tokenAddr, amount, from, onBehalf, supplyAsColl, maxIterations]);
8853
+ this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3], this.args[4], this.args[5]];
8854
+ }
8855
+ getAssetsToApprove() {
8856
+ var _this = this;
8857
+ return _asyncToGenerator(function* () {
8858
+ var asset = (0,_defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__.getAssetInfoByAddress)(_this.args[1]);
8859
+ if (asset.symbol !== 'ETH') return [{
8860
+ asset: _this.args[1],
8861
+ owner: _this.args[3]
8862
+ }];
8863
+ return [];
8864
+ })();
8865
+ }
8866
+ }
8867
+
8868
+ /***/ }),
8869
+ /* 221 */
8870
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8871
+
8872
+ __webpack_require__.r(__webpack_exports__);
8873
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8874
+ /* harmony export */ "MorphoAaveV3WithdrawAction": () => (/* binding */ MorphoAaveV3WithdrawAction)
8875
+ /* harmony export */ });
8876
+ /* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
8877
+ /* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
8878
+
8879
+
8880
+ /**
8881
+ * MorphoAaveV3WithdrawAction - Withdraw token from Morpho AaveV3
8882
+ *
8883
+ * @category Morpho
8884
+ */
8885
+ class MorphoAaveV3WithdrawAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
8886
+ /**
8887
+ * @param emodeId Type of emode we are entering in, each one is different deployment on Morpho
8888
+ * @param tokenAddr - Address of tokenAddr (underlying)
8889
+ * @param amount - Token amount
8890
+ * @param to - Tokens will be sent to this address
8891
+ * @param onBehalf - For what user we are withdrawing the tokens, defaults to proxy
8892
+ * @param withdrawAsColl - If we want to withdraw from collateral or from pure supply
8893
+ * @param maxIterations - Max number of iterations for p2p matching, 0 will use default num of iterations
8894
+ */
8895
+ constructor(emodeId, tokenAddr, amount, to) {
8896
+ var onBehalf = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty');
8897
+ var withdrawAsColl = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
8898
+ var maxIterations = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '4';
8899
+ super('MorphoAaveV3Withdraw', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('MorphoAaveV3Withdraw'), ['uint256', 'address', 'uint256', 'address', 'address', 'bool', 'uint256'], [emodeId, tokenAddr, amount, to, onBehalf, withdrawAsColl, maxIterations]);
8900
+ this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3], this.args[4], this.args[5]];
8901
+ }
8902
+ }
8903
+
8904
+ /***/ }),
8905
+ /* 222 */
8906
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8907
+
8908
+ __webpack_require__.r(__webpack_exports__);
8909
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8910
+ /* harmony export */ "MorphoAaveV3BorrowAction": () => (/* binding */ MorphoAaveV3BorrowAction)
8911
+ /* harmony export */ });
8912
+ /* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
8913
+ /* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
8914
+
8915
+
8916
+ /**
8917
+ * MorphoAaveV3BorrowAction - Borrow token from Morpho AaveV3
8918
+ *
8919
+ * @category Morpho
8920
+ */
8921
+ class MorphoAaveV3BorrowAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
8922
+ /**
8923
+ * @param emodeId Type of emode we are entering in, each one is different deployment on Morpho
8924
+ * @param tokenAddr - Address of tokenAddr (underlying)
8925
+ * @param amount - Token amount
8926
+ * @param to - The address we are sending the borrowed tokens to
8927
+ * @param onBehalf - For what user we are borrowing the tokens, defaults to proxy
8928
+ * @param maxIterations - Max number of iterations for p2p matching, 0 will use default num of iterations
8929
+ */
8930
+ constructor(emodeId, tokenAddr, amount, to) {
8931
+ var onBehalf = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty');
8932
+ var maxIterations = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '4';
8933
+ super('MorphoAaveV3Borrow', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('MorphoAaveV3Borrow'), ['uint256', 'address', 'uint256', 'address', 'address', 'uint256'], [emodeId, tokenAddr, amount, to, onBehalf, maxIterations]);
8934
+ this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3], this.args[4]];
8935
+ }
8936
+ }
8937
+
8938
+ /***/ }),
8939
+ /* 223 */
8940
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8941
+
8942
+ __webpack_require__.r(__webpack_exports__);
8943
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8944
+ /* harmony export */ "MorphoAaveV3PaybackAction": () => (/* binding */ MorphoAaveV3PaybackAction)
8945
+ /* harmony export */ });
8946
+ /* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
8947
+ /* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__);
8948
+ /* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
8949
+ /* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27);
8950
+ 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); } }
8951
+ 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); }); }; }
8952
+
8953
+
8954
+
8955
+ /**
8956
+ * MorphoAaveV3PaybackAction - Payback token to Morpho AaveV3
8957
+ *
8958
+ * @category Morpho
8959
+ */
8960
+ class MorphoAaveV3PaybackAction extends _Action__WEBPACK_IMPORTED_MODULE_1__.Action {
8961
+ /**
8962
+ * @param emodeId Type of emode we are entering in, each one is different deployment on Morpho
8963
+ * @param tokenAddr - Address of tokenAddr (underlying)
8964
+ * @param amount - Token amount
8965
+ * @param from - Tokens will be sent from this address
8966
+ * @param onBehalf - For what user we are paying back the debt, defaults to proxy
8967
+ */
8968
+ constructor(emodeId, tokenAddr, amount, from) {
8969
+ var onBehalf = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('Empty');
8970
+ super('MorphoAaveV3Payback', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('MorphoAaveV3Payback'), ['uint256', 'address', 'uint256', 'address', 'address'], [emodeId, tokenAddr, amount, from, onBehalf]);
8971
+ this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3], this.args[4]];
8972
+ }
8973
+ getAssetsToApprove() {
8974
+ var _this = this;
8975
+ return _asyncToGenerator(function* () {
8976
+ var asset = (0,_defisaver_tokens__WEBPACK_IMPORTED_MODULE_0__.getAssetInfoByAddress)(_this.args[1]);
8977
+ if (asset.symbol !== 'ETH') return [{
8978
+ asset: _this.args[1],
8979
+ owner: _this.args[3]
8980
+ }];
8981
+ return [];
8982
+ })();
8983
+ }
8984
+ }
8985
+
8986
+ /***/ }),
8987
+ /* 224 */
8988
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8989
+
8803
8990
  __webpack_require__.r(__webpack_exports__);
8804
8991
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8805
8992
  /* harmony export */ "BprotocolLiquitySPDepositAction": () => (/* reexport safe */ _BprotocolLiquitySPDepositAction__WEBPACK_IMPORTED_MODULE_0__.BprotocolLiquitySPDepositAction),
8806
8993
  /* harmony export */ "BprotocolLiquitySPWithdrawAction": () => (/* reexport safe */ _BprotocolLiquitySPWithdrawAction__WEBPACK_IMPORTED_MODULE_1__.BprotocolLiquitySPWithdrawAction)
8807
8994
  /* harmony export */ });
8808
- /* harmony import */ var _BprotocolLiquitySPDepositAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(221);
8809
- /* harmony import */ var _BprotocolLiquitySPWithdrawAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(222);
8995
+ /* harmony import */ var _BprotocolLiquitySPDepositAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(225);
8996
+ /* harmony import */ var _BprotocolLiquitySPWithdrawAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(226);
8810
8997
 
8811
8998
 
8812
8999
 
8813
9000
  /***/ }),
8814
- /* 221 */
9001
+ /* 225 */
8815
9002
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8816
9003
 
8817
9004
  __webpack_require__.r(__webpack_exports__);
@@ -8856,7 +9043,7 @@ class BprotocolLiquitySPDepositAction extends _Action__WEBPACK_IMPORTED_MODULE_1
8856
9043
  }
8857
9044
 
8858
9045
  /***/ }),
8859
- /* 222 */
9046
+ /* 226 */
8860
9047
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8861
9048
 
8862
9049
  __webpack_require__.r(__webpack_exports__);
@@ -8887,7 +9074,7 @@ class BprotocolLiquitySPWithdrawAction extends _Action__WEBPACK_IMPORTED_MODULE_
8887
9074
  }
8888
9075
 
8889
9076
  /***/ }),
8890
- /* 223 */
9077
+ /* 227 */
8891
9078
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8892
9079
 
8893
9080
  __webpack_require__.r(__webpack_exports__);
@@ -8906,19 +9093,19 @@ __webpack_require__.r(__webpack_exports__);
8906
9093
  /* harmony export */ "TrailingStopTrigger": () => (/* reexport safe */ _TrailingStopTrigger__WEBPACK_IMPORTED_MODULE_10__.TrailingStopTrigger),
8907
9094
  /* harmony export */ "UniV3CurrentTickTrigger": () => (/* reexport safe */ _UniV3CurrentTickTrigger__WEBPACK_IMPORTED_MODULE_2__.UniV3CurrentTickTrigger)
8908
9095
  /* harmony export */ });
8909
- /* harmony import */ var _MakerRatioTrigger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(224);
8910
- /* harmony import */ var _ChainLinkPriceTrigger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(225);
8911
- /* harmony import */ var _UniV3CurrentTickTrigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(226);
8912
- /* harmony import */ var _TimestampTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(227);
8913
- /* harmony import */ var _GasPriceTrigger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(228);
8914
- /* harmony import */ var _CompoundRatioTrigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(229);
8915
- /* harmony import */ var _ReflexerRatioTrigger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(230);
8916
- /* harmony import */ var _LiquityRatioTrigger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(231);
8917
- /* harmony import */ var _AaveV3RatioTrigger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(232);
8918
- /* harmony import */ var _CompV3RatioTrigger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(233);
8919
- /* harmony import */ var _TrailingStopTrigger__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(234);
8920
- /* harmony import */ var _CBRebondTrigger__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(235);
8921
- /* harmony import */ var _AaveV3QuotePriceTrigger__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(236);
9096
+ /* harmony import */ var _MakerRatioTrigger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(228);
9097
+ /* harmony import */ var _ChainLinkPriceTrigger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(229);
9098
+ /* harmony import */ var _UniV3CurrentTickTrigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(230);
9099
+ /* harmony import */ var _TimestampTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(231);
9100
+ /* harmony import */ var _GasPriceTrigger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(232);
9101
+ /* harmony import */ var _CompoundRatioTrigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(233);
9102
+ /* harmony import */ var _ReflexerRatioTrigger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(234);
9103
+ /* harmony import */ var _LiquityRatioTrigger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(235);
9104
+ /* harmony import */ var _AaveV3RatioTrigger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(236);
9105
+ /* harmony import */ var _CompV3RatioTrigger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(237);
9106
+ /* harmony import */ var _TrailingStopTrigger__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(238);
9107
+ /* harmony import */ var _CBRebondTrigger__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(239);
9108
+ /* harmony import */ var _AaveV3QuotePriceTrigger__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(240);
8922
9109
 
8923
9110
 
8924
9111
 
@@ -8934,7 +9121,7 @@ __webpack_require__.r(__webpack_exports__);
8934
9121
 
8935
9122
 
8936
9123
  /***/ }),
8937
- /* 224 */
9124
+ /* 228 */
8938
9125
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8939
9126
 
8940
9127
  __webpack_require__.r(__webpack_exports__);
@@ -8957,7 +9144,7 @@ class MakerRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
8957
9144
  }
8958
9145
 
8959
9146
  /***/ }),
8960
- /* 225 */
9147
+ /* 229 */
8961
9148
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8962
9149
 
8963
9150
  __webpack_require__.r(__webpack_exports__);
@@ -8980,7 +9167,7 @@ class ChainLinkPriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
8980
9167
  }
8981
9168
 
8982
9169
  /***/ }),
8983
- /* 226 */
9170
+ /* 230 */
8984
9171
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8985
9172
 
8986
9173
  __webpack_require__.r(__webpack_exports__);
@@ -9003,7 +9190,7 @@ class UniV3CurrentTickTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Actio
9003
9190
  }
9004
9191
 
9005
9192
  /***/ }),
9006
- /* 227 */
9193
+ /* 231 */
9007
9194
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9008
9195
 
9009
9196
  __webpack_require__.r(__webpack_exports__);
@@ -9026,7 +9213,7 @@ class TimestampTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
9026
9213
  }
9027
9214
 
9028
9215
  /***/ }),
9029
- /* 228 */
9216
+ /* 232 */
9030
9217
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9031
9218
 
9032
9219
  __webpack_require__.r(__webpack_exports__);
@@ -9049,7 +9236,7 @@ class GasPriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
9049
9236
  }
9050
9237
 
9051
9238
  /***/ }),
9052
- /* 229 */
9239
+ /* 233 */
9053
9240
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9054
9241
 
9055
9242
  __webpack_require__.r(__webpack_exports__);
@@ -9072,7 +9259,7 @@ class CompoundRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
9072
9259
  }
9073
9260
 
9074
9261
  /***/ }),
9075
- /* 230 */
9262
+ /* 234 */
9076
9263
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9077
9264
 
9078
9265
  __webpack_require__.r(__webpack_exports__);
@@ -9095,7 +9282,7 @@ class ReflexerRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
9095
9282
  }
9096
9283
 
9097
9284
  /***/ }),
9098
- /* 231 */
9285
+ /* 235 */
9099
9286
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9100
9287
 
9101
9288
  __webpack_require__.r(__webpack_exports__);
@@ -9118,7 +9305,7 @@ class LiquityRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
9118
9305
  }
9119
9306
 
9120
9307
  /***/ }),
9121
- /* 232 */
9308
+ /* 236 */
9122
9309
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9123
9310
 
9124
9311
  __webpack_require__.r(__webpack_exports__);
@@ -9141,7 +9328,7 @@ class AaveV3RatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
9141
9328
  }
9142
9329
 
9143
9330
  /***/ }),
9144
- /* 233 */
9331
+ /* 237 */
9145
9332
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9146
9333
 
9147
9334
  __webpack_require__.r(__webpack_exports__);
@@ -9164,7 +9351,7 @@ class CompV3RatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
9164
9351
  }
9165
9352
 
9166
9353
  /***/ }),
9167
- /* 234 */
9354
+ /* 238 */
9168
9355
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9169
9356
 
9170
9357
  __webpack_require__.r(__webpack_exports__);
@@ -9187,7 +9374,7 @@ class TrailingStopTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
9187
9374
  }
9188
9375
 
9189
9376
  /***/ }),
9190
- /* 235 */
9377
+ /* 239 */
9191
9378
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9192
9379
 
9193
9380
  __webpack_require__.r(__webpack_exports__);
@@ -9210,7 +9397,7 @@ class CBRebondTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
9210
9397
  }
9211
9398
 
9212
9399
  /***/ }),
9213
- /* 236 */
9400
+ /* 240 */
9214
9401
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9215
9402
 
9216
9403
  __webpack_require__.r(__webpack_exports__);
@@ -9233,7 +9420,7 @@ class AaveV3QuotePriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Actio
9233
9420
  }
9234
9421
 
9235
9422
  /***/ }),
9236
- /* 237 */
9423
+ /* 241 */
9237
9424
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9238
9425
 
9239
9426
  __webpack_require__.r(__webpack_exports__);
@@ -9245,9 +9432,9 @@ __webpack_require__.r(__webpack_exports__);
9245
9432
  /* harmony export */ "uniswapV3LP": () => (/* reexport module object */ _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__),
9246
9433
  /* harmony export */ "zeroExExchange": () => (/* reexport module object */ _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__)
9247
9434
  /* harmony export */ });
9248
- /* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(238);
9435
+ /* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(242);
9249
9436
  /* harmony import */ var _uniswapLP__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(104);
9250
- /* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(240);
9437
+ /* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(244);
9251
9438
  /* harmony import */ var _convex_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(194);
9252
9439
  /* harmony import */ var _mstableAssetPairs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(176);
9253
9440
  /* harmony import */ var _curve_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(162);
@@ -9260,7 +9447,7 @@ __webpack_require__.r(__webpack_exports__);
9260
9447
 
9261
9448
 
9262
9449
  /***/ }),
9263
- /* 238 */
9450
+ /* 242 */
9264
9451
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9265
9452
 
9266
9453
  __webpack_require__.r(__webpack_exports__);
@@ -9271,7 +9458,7 @@ __webpack_require__.r(__webpack_exports__);
9271
9458
  /* harmony export */ });
9272
9459
  /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
9273
9460
  /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(decimal_js__WEBPACK_IMPORTED_MODULE_0__);
9274
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(239);
9461
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(243);
9275
9462
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
9276
9463
  /* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
9277
9464
  /* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__);
@@ -9474,20 +9661,20 @@ var createSellAction = /*#__PURE__*/function () {
9474
9661
  }();
9475
9662
 
9476
9663
  /***/ }),
9477
- /* 239 */
9664
+ /* 243 */
9478
9665
  /***/ ((module) => {
9479
9666
 
9480
- module.exports = __WEBPACK_EXTERNAL_MODULE__239__;
9667
+ module.exports = __WEBPACK_EXTERNAL_MODULE__243__;
9481
9668
 
9482
9669
  /***/ }),
9483
- /* 240 */
9670
+ /* 244 */
9484
9671
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9485
9672
 
9486
9673
  __webpack_require__.r(__webpack_exports__);
9487
9674
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9488
9675
  /* harmony export */ "getAssetAddrByTokenId": () => (/* binding */ getAssetAddrByTokenId)
9489
9676
  /* harmony export */ });
9490
- /* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(241);
9677
+ /* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(245);
9491
9678
  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); } }
9492
9679
  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); }); }; }
9493
9680
  /**
@@ -9512,7 +9699,7 @@ var getAssetAddrByTokenId = /*#__PURE__*/function () {
9512
9699
  }();
9513
9700
 
9514
9701
  /***/ }),
9515
- /* 241 */
9702
+ /* 245 */
9516
9703
  /***/ ((module) => {
9517
9704
 
9518
9705
  module.exports = 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"}]');
@@ -9616,8 +9803,8 @@ __webpack_require__.r(__webpack_exports__);
9616
9803
  /* harmony import */ var _Strategy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29);
9617
9804
  /* harmony import */ var _DfsWeb3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30);
9618
9805
  /* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35);
9619
- /* harmony import */ var _triggers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(223);
9620
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(237);
9806
+ /* harmony import */ var _triggers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(227);
9807
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(241);
9621
9808
  /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4);
9622
9809
  /* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27);
9623
9810
  /* Export types here */