@defisaver/sdk 1.0.66-dev-4 → 1.0.67-dev-1
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/actions/index.d.ts +2 -1
- package/esm/src/actions/index.js +2 -1
- package/esm/src/actions/llamalend/LlamaLendBorrowAction.d.ts +15 -0
- package/esm/src/actions/llamalend/LlamaLendBorrowAction.js +22 -0
- package/esm/src/actions/llamalend/LlamaLendCreateAction.d.ts +22 -0
- package/esm/src/actions/llamalend/LlamaLendCreateAction.js +44 -0
- package/esm/src/actions/llamalend/LlamaLendPaybackAction.d.ts +22 -0
- package/esm/src/actions/llamalend/LlamaLendPaybackAction.js +43 -0
- package/esm/src/actions/llamalend/LlamaLendSelfLiquidateAction.d.ts +19 -0
- package/esm/src/actions/llamalend/LlamaLendSelfLiquidateAction.js +38 -0
- package/esm/src/actions/llamalend/LlamaLendSupplyAction.d.ts +20 -0
- package/esm/src/actions/llamalend/LlamaLendSupplyAction.js +40 -0
- package/esm/src/actions/llamalend/LlamaLendWithdrawAction.d.ts +15 -0
- package/esm/src/actions/llamalend/LlamaLendWithdrawAction.js +22 -0
- package/esm/src/actions/llamalend/index.d.ts +6 -0
- package/esm/src/actions/llamalend/index.js +6 -0
- package/esm/src/addresses.d.ts +24 -0
- package/esm/src/addresses.js +7 -0
- package/esm/src/index.d.ts +96 -0
- package/esm/src/utils/index.d.ts +2 -1
- package/esm/src/utils/index.js +2 -1
- package/esm/src/utils/llamalend-utils.d.ts +10 -0
- package/esm/src/utils/llamalend-utils.js +10 -0
- package/package.json +1 -1
- package/src/actions/index.ts +2 -0
- package/src/actions/llamalend/LlamaLendBorrowAction.ts +34 -0
- package/src/actions/llamalend/LlamaLendCreateAction.ts +49 -0
- package/src/actions/llamalend/LlamaLendPaybackAction.ts +48 -0
- package/src/actions/llamalend/LlamaLendSelfLiquidateAction.ts +41 -0
- package/src/actions/llamalend/LlamaLendSupplyAction.ts +44 -0
- package/src/actions/llamalend/LlamaLendWithdrawAction.ts +34 -0
- package/src/actions/llamalend/index.ts +6 -0
- package/src/addresses.ts +8 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/llamalend-utils.ts +11 -0
- package/umd/index.js +363 -56
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__129__, __WEBPACK_EXTERNAL_MODULE__130__,
|
|
10
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__5__, __WEBPACK_EXTERNAL_MODULE__6__, __WEBPACK_EXTERNAL_MODULE__129__, __WEBPACK_EXTERNAL_MODULE__130__, __WEBPACK_EXTERNAL_MODULE__330__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ([
|
|
@@ -1473,7 +1473,14 @@ var actionAddresses = {
|
|
|
1473
1473
|
MorphoBlueBorrow: '0xcc05A3e06DA9Bd2827C7e86a96C63EAda3935AA0',
|
|
1474
1474
|
MorphoBluePayback: '0x9f437E5F705E02d77adC2e72C34926978776b085',
|
|
1475
1475
|
MorphoBlueSetAuth: '0xf30935e20c6357c7bcecd5e58ad6de26d54b9f64',
|
|
1476
|
-
MorphoBlueSetAuthWithSig: '0xE2d5fCDBf73BAd24A0FCAf6B2733933A98021808'
|
|
1476
|
+
MorphoBlueSetAuthWithSig: '0xE2d5fCDBf73BAd24A0FCAf6B2733933A98021808',
|
|
1477
|
+
// llamalend
|
|
1478
|
+
LlamaLendCreate: '0x4349be191ea63173eD98b7fC1b0DeC1ef9Bc6c11',
|
|
1479
|
+
LlamaLendSupply: '0x1900eF943bD1b038c58d9F35C3825F119F9BB730',
|
|
1480
|
+
LlamaLendBorrow: '0xCF693585C47049F3eACc2285E7Fe4e80123b2520',
|
|
1481
|
+
LlamaLendWithdraw: '0x2593Da3c4110C531541424e9e847cd7905894C52',
|
|
1482
|
+
LlamaLendPayback: '0x5b506b7a0117dbcd086632575da599bb603eb602',
|
|
1483
|
+
LlamaLendSelfLiquidate: '0xe4944e0e46177300fa4c351ef72b95b9655e8394'
|
|
1477
1484
|
},
|
|
1478
1485
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.optimism.chainId]: {
|
|
1479
1486
|
DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
|
|
@@ -1928,6 +1935,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1928
1935
|
/* harmony export */ "insta": () => (/* reexport module object */ _insta__WEBPACK_IMPORTED_MODULE_13__),
|
|
1929
1936
|
/* harmony export */ "lido": () => (/* reexport module object */ _lido__WEBPACK_IMPORTED_MODULE_12__),
|
|
1930
1937
|
/* harmony export */ "liquity": () => (/* reexport module object */ _liquity__WEBPACK_IMPORTED_MODULE_10__),
|
|
1938
|
+
/* harmony export */ "llamalend": () => (/* reexport module object */ _llamalend__WEBPACK_IMPORTED_MODULE_29__),
|
|
1931
1939
|
/* harmony export */ "lsv": () => (/* reexport module object */ _lsv__WEBPACK_IMPORTED_MODULE_25__),
|
|
1932
1940
|
/* harmony export */ "maker": () => (/* reexport module object */ _maker__WEBPACK_IMPORTED_MODULE_0__),
|
|
1933
1941
|
/* harmony export */ "morpho": () => (/* reexport module object */ _morpho__WEBPACK_IMPORTED_MODULE_23__),
|
|
@@ -1969,6 +1977,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1969
1977
|
/* harmony import */ var _curveusd__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(265);
|
|
1970
1978
|
/* harmony import */ var _spark__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(278);
|
|
1971
1979
|
/* harmony import */ var _morpho_blue__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(289);
|
|
1980
|
+
/* harmony import */ var _llamalend__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(298);
|
|
1981
|
+
|
|
1972
1982
|
|
|
1973
1983
|
|
|
1974
1984
|
|
|
@@ -12064,6 +12074,300 @@ class MorphoBlueSetAuthWithSigAction extends _Action__WEBPACK_IMPORTED_MODULE_0_
|
|
|
12064
12074
|
/* 298 */
|
|
12065
12075
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12066
12076
|
|
|
12077
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12078
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12079
|
+
/* harmony export */ "LlamaLendBorrowAction": () => (/* reexport safe */ _LlamaLendBorrowAction__WEBPACK_IMPORTED_MODULE_0__.LlamaLendBorrowAction),
|
|
12080
|
+
/* harmony export */ "LlamaLendCreateAction": () => (/* reexport safe */ _LlamaLendCreateAction__WEBPACK_IMPORTED_MODULE_3__.LlamaLendCreateAction),
|
|
12081
|
+
/* harmony export */ "LlamaLendPaybackAction": () => (/* reexport safe */ _LlamaLendPaybackAction__WEBPACK_IMPORTED_MODULE_4__.LlamaLendPaybackAction),
|
|
12082
|
+
/* harmony export */ "LlamaLendSelfLiquidateAction": () => (/* reexport safe */ _LlamaLendSelfLiquidateAction__WEBPACK_IMPORTED_MODULE_5__.LlamaLendSelfLiquidateAction),
|
|
12083
|
+
/* harmony export */ "LlamaLendSupplyAction": () => (/* reexport safe */ _LlamaLendSupplyAction__WEBPACK_IMPORTED_MODULE_2__.LlamaLendSupplyAction),
|
|
12084
|
+
/* harmony export */ "LlamaLendWithdrawAction": () => (/* reexport safe */ _LlamaLendWithdrawAction__WEBPACK_IMPORTED_MODULE_1__.LlamaLendWithdrawAction)
|
|
12085
|
+
/* harmony export */ });
|
|
12086
|
+
/* harmony import */ var _LlamaLendBorrowAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(299);
|
|
12087
|
+
/* harmony import */ var _LlamaLendWithdrawAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(300);
|
|
12088
|
+
/* harmony import */ var _LlamaLendSupplyAction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(301);
|
|
12089
|
+
/* harmony import */ var _LlamaLendCreateAction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(303);
|
|
12090
|
+
/* harmony import */ var _LlamaLendPaybackAction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(304);
|
|
12091
|
+
/* harmony import */ var _LlamaLendSelfLiquidateAction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(305);
|
|
12092
|
+
|
|
12093
|
+
|
|
12094
|
+
|
|
12095
|
+
|
|
12096
|
+
|
|
12097
|
+
|
|
12098
|
+
|
|
12099
|
+
/***/ }),
|
|
12100
|
+
/* 299 */
|
|
12101
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12102
|
+
|
|
12103
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12104
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12105
|
+
/* harmony export */ "LlamaLendBorrowAction": () => (/* binding */ LlamaLendBorrowAction)
|
|
12106
|
+
/* harmony export */ });
|
|
12107
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
12108
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
12109
|
+
|
|
12110
|
+
|
|
12111
|
+
/**
|
|
12112
|
+
* LlamaLendBorrowAction - Action that borrows debt asset from proxy llamalend position
|
|
12113
|
+
*
|
|
12114
|
+
* @category LlamaLend
|
|
12115
|
+
*/
|
|
12116
|
+
class LlamaLendBorrowAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
12117
|
+
/**
|
|
12118
|
+
* address controllerAddress - Address of the llamalend market controller
|
|
12119
|
+
* address to - Address that will receive the borrowed debt asset, will default to proxy
|
|
12120
|
+
* uint256 debtAmount - Amount of debt asset to borrow
|
|
12121
|
+
*/
|
|
12122
|
+
/// @dev debtAmount must be non-zero
|
|
12123
|
+
/// @dev if debtAmount == uintMax will borrow as much as the collateral will support
|
|
12124
|
+
constructor(controllerAddress, to, debtAmount) {
|
|
12125
|
+
super('LlamaLendBorrow', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('LlamaLendBorrow'), ['address', 'address', 'uint256'], [controllerAddress, to, debtAmount]);
|
|
12126
|
+
this.mappableArgs = [...this.args];
|
|
12127
|
+
}
|
|
12128
|
+
}
|
|
12129
|
+
|
|
12130
|
+
/***/ }),
|
|
12131
|
+
/* 300 */
|
|
12132
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12133
|
+
|
|
12134
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12135
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12136
|
+
/* harmony export */ "LlamaLendWithdrawAction": () => (/* binding */ LlamaLendWithdrawAction)
|
|
12137
|
+
/* harmony export */ });
|
|
12138
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
12139
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
12140
|
+
|
|
12141
|
+
|
|
12142
|
+
/**
|
|
12143
|
+
* LlamaLendWithdrawAction - Action that withdraws collateral from proxy llamalend position
|
|
12144
|
+
*
|
|
12145
|
+
* @category LlamaLend
|
|
12146
|
+
*/
|
|
12147
|
+
class LlamaLendWithdrawAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
12148
|
+
/**
|
|
12149
|
+
* address controllerAddress - Address of the llamalend market controller
|
|
12150
|
+
* address to - Address that will receive the withdrawn collateral, will default to proxy
|
|
12151
|
+
* uint256 collateralAmount - Amount of collateral to withdraw
|
|
12152
|
+
*/
|
|
12153
|
+
/// @dev collateralAmount must be non-zero
|
|
12154
|
+
/// @dev if collateralAmount == uintMax will withdraw as much as the debt will allow
|
|
12155
|
+
constructor(controllerAddress, to, collateralAmount) {
|
|
12156
|
+
super('LlamaLendWithdraw', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('LlamaLendWithdraw'), ['address', 'address', 'uint256'], [controllerAddress, to, collateralAmount]);
|
|
12157
|
+
this.mappableArgs = [...this.args];
|
|
12158
|
+
}
|
|
12159
|
+
}
|
|
12160
|
+
|
|
12161
|
+
/***/ }),
|
|
12162
|
+
/* 301 */
|
|
12163
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12164
|
+
|
|
12165
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12166
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12167
|
+
/* harmony export */ "LlamaLendSupplyAction": () => (/* binding */ LlamaLendSupplyAction)
|
|
12168
|
+
/* harmony export */ });
|
|
12169
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
12170
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
12171
|
+
/* harmony import */ var _utils_llamalend_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(302);
|
|
12172
|
+
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); } }
|
|
12173
|
+
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); }); }; }
|
|
12174
|
+
|
|
12175
|
+
|
|
12176
|
+
|
|
12177
|
+
|
|
12178
|
+
/**
|
|
12179
|
+
* LlamaLendSupplyAction - Action that supplies collateral to a llamalend position
|
|
12180
|
+
*
|
|
12181
|
+
* @category LlamaLend
|
|
12182
|
+
*/
|
|
12183
|
+
class LlamaLendSupplyAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
12184
|
+
/**
|
|
12185
|
+
* address controllerAddress - Address of the llamalend market controller
|
|
12186
|
+
* address from - Address from which to pull collateral asset, will default to proxy
|
|
12187
|
+
* address onBehalfOf - Address for which we are supplying, will default to proxy
|
|
12188
|
+
* uint256 collateralAmount - Amount of collateral asset to supply
|
|
12189
|
+
*/
|
|
12190
|
+
/// @dev collateralAmount must be non-zero, can be maxUint
|
|
12191
|
+
constructor(controllerAddress, from, onBehalfOf, collateralAmount) {
|
|
12192
|
+
super('LlamaLendSupply', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('LlamaLendSupply'), ['address', 'address', 'address', 'uint256'], [controllerAddress, from, onBehalfOf, collateralAmount]);
|
|
12193
|
+
this.mappableArgs = [...this.args];
|
|
12194
|
+
}
|
|
12195
|
+
getAssetsToApprove() {
|
|
12196
|
+
var _this = this;
|
|
12197
|
+
return _asyncToGenerator(function* () {
|
|
12198
|
+
return [{
|
|
12199
|
+
owner: _this.args[1],
|
|
12200
|
+
asset: _utils_llamalend_utils__WEBPACK_IMPORTED_MODULE_2__.controllerToCollateralAssetMap[_this.args[0]]
|
|
12201
|
+
}];
|
|
12202
|
+
})();
|
|
12203
|
+
}
|
|
12204
|
+
}
|
|
12205
|
+
|
|
12206
|
+
/***/ }),
|
|
12207
|
+
/* 302 */
|
|
12208
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12209
|
+
|
|
12210
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12211
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12212
|
+
/* harmony export */ "controllerToCollateralAssetMap": () => (/* binding */ controllerToCollateralAssetMap),
|
|
12213
|
+
/* harmony export */ "controllerToDebtAssetMap": () => (/* binding */ controllerToDebtAssetMap)
|
|
12214
|
+
/* harmony export */ });
|
|
12215
|
+
var controllerToCollateralAssetMap = {
|
|
12216
|
+
'0x5E657c5227A596a860621C5551c9735d8f4A8BE3': '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',
|
|
12217
|
+
'0x7443944962D04720f8c220C0D25f56F869d6EfD4': '0xD533a949740bb3306d119CC777fa900bA034cd52',
|
|
12218
|
+
'0x43fc0f246F952ff12B757341A91cF4040711dDE9': '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E'
|
|
12219
|
+
};
|
|
12220
|
+
var controllerToDebtAssetMap = {
|
|
12221
|
+
'0x5E657c5227A596a860621C5551c9735d8f4A8BE3': '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
|
|
12222
|
+
'0x7443944962D04720f8c220C0D25f56F869d6EfD4': '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E',
|
|
12223
|
+
'0x43fc0f246F952ff12B757341A91cF4040711dDE9': '0xD533a949740bb3306d119CC777fa900bA034cd52'
|
|
12224
|
+
};
|
|
12225
|
+
|
|
12226
|
+
/***/ }),
|
|
12227
|
+
/* 303 */
|
|
12228
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12229
|
+
|
|
12230
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12231
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12232
|
+
/* harmony export */ "LlamaLendCreateAction": () => (/* binding */ LlamaLendCreateAction)
|
|
12233
|
+
/* harmony export */ });
|
|
12234
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
12235
|
+
/* harmony import */ var _utils_general__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39);
|
|
12236
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27);
|
|
12237
|
+
/* harmony import */ var _utils_llamalend_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(302);
|
|
12238
|
+
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); } }
|
|
12239
|
+
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); }); }; }
|
|
12240
|
+
|
|
12241
|
+
|
|
12242
|
+
|
|
12243
|
+
|
|
12244
|
+
|
|
12245
|
+
/**
|
|
12246
|
+
* LlamaLendCreateAction - Action that creates a llamalend position on behalf of proxy
|
|
12247
|
+
*
|
|
12248
|
+
* @category LlamaLend
|
|
12249
|
+
*/
|
|
12250
|
+
class LlamaLendCreateAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
12251
|
+
/**
|
|
12252
|
+
* address controllerAddress - Address of the llamalend market controller
|
|
12253
|
+
* address from - Address from which to pull collateral asset, will default to proxy
|
|
12254
|
+
* address to - Address that will receive the borrowed debt asset, will default to proxy
|
|
12255
|
+
* uint256 collateralAmount - Amount of collateral asset to supply
|
|
12256
|
+
* uint256 debtAmount - Amount of debt asset to borrow
|
|
12257
|
+
* uint256 nBands - Number of bands in which the collateral will be supplied
|
|
12258
|
+
*/
|
|
12259
|
+
/// @dev both collateralAmount and debtAmount must be non-zero and can be maxUint
|
|
12260
|
+
constructor(controllerAddress, from, to, collateralAmount, debtAmount, nBands) {
|
|
12261
|
+
(0,_utils_general__WEBPACK_IMPORTED_MODULE_1__.requireAddress)(to);
|
|
12262
|
+
super('LlamaLendCreate', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('LlamaLendCreate'), ['address', 'address', 'address', 'uint256', 'uint256', 'uint256'], [controllerAddress, from, to, collateralAmount, debtAmount, nBands]);
|
|
12263
|
+
this.mappableArgs = [...this.args];
|
|
12264
|
+
}
|
|
12265
|
+
getAssetsToApprove() {
|
|
12266
|
+
var _this = this;
|
|
12267
|
+
return _asyncToGenerator(function* () {
|
|
12268
|
+
return [{
|
|
12269
|
+
owner: _this.args[1],
|
|
12270
|
+
asset: _utils_llamalend_utils__WEBPACK_IMPORTED_MODULE_3__.controllerToCollateralAssetMap[_this.args[0]]
|
|
12271
|
+
}];
|
|
12272
|
+
})();
|
|
12273
|
+
}
|
|
12274
|
+
}
|
|
12275
|
+
|
|
12276
|
+
/***/ }),
|
|
12277
|
+
/* 304 */
|
|
12278
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12279
|
+
|
|
12280
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12281
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12282
|
+
/* harmony export */ "LlamaLendPaybackAction": () => (/* binding */ LlamaLendPaybackAction)
|
|
12283
|
+
/* harmony export */ });
|
|
12284
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
12285
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
12286
|
+
/* harmony import */ var _utils_llamalend_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(302);
|
|
12287
|
+
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); } }
|
|
12288
|
+
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); }); }; }
|
|
12289
|
+
|
|
12290
|
+
|
|
12291
|
+
|
|
12292
|
+
|
|
12293
|
+
/**
|
|
12294
|
+
* LlamaLendPaybackAction - Action that pays back debt asset to a llamalend position
|
|
12295
|
+
*
|
|
12296
|
+
* @category LlamaLend
|
|
12297
|
+
*/
|
|
12298
|
+
class LlamaLendPaybackAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
12299
|
+
/**
|
|
12300
|
+
* address controllerAddress - Address of the llamalend market controller
|
|
12301
|
+
* address from - Address from which to pull debt asset, will default to proxy
|
|
12302
|
+
* address onBehalfOf - Address for which we are paying back debt, will default to proxy
|
|
12303
|
+
* address to - Address that will receive the debt asset and collateral asset if close, will default to proxy
|
|
12304
|
+
* uint256 debtAmount - Amount of debt asset to payback
|
|
12305
|
+
* int256 maxActiveBand - Don't allow active band to be higher than this (to prevent front-running the repay)
|
|
12306
|
+
*/
|
|
12307
|
+
/// @dev debtAmount must be non-zero
|
|
12308
|
+
/// @dev if debtAmount >= debt will repay whole debt and close the position, transfering collateral
|
|
12309
|
+
constructor(controllerAddress, from, onBehalfOf, to, debtAmount, maxActiveBand) {
|
|
12310
|
+
super('LlamaLendPayback', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('LlamaLendPayback'), ['address', 'address', 'address', 'address', 'uint256', 'int256'], [controllerAddress, from, onBehalfOf, to, debtAmount, maxActiveBand]);
|
|
12311
|
+
this.mappableArgs = [...this.args];
|
|
12312
|
+
}
|
|
12313
|
+
getAssetsToApprove() {
|
|
12314
|
+
var _this = this;
|
|
12315
|
+
return _asyncToGenerator(function* () {
|
|
12316
|
+
return [{
|
|
12317
|
+
owner: _this.args[1],
|
|
12318
|
+
asset: _utils_llamalend_utils__WEBPACK_IMPORTED_MODULE_2__.controllerToDebtAssetMap[_this.args[0]]
|
|
12319
|
+
}];
|
|
12320
|
+
})();
|
|
12321
|
+
}
|
|
12322
|
+
}
|
|
12323
|
+
|
|
12324
|
+
/***/ }),
|
|
12325
|
+
/* 305 */
|
|
12326
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12327
|
+
|
|
12328
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12329
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12330
|
+
/* harmony export */ "LlamaLendSelfLiquidateAction": () => (/* binding */ LlamaLendSelfLiquidateAction)
|
|
12331
|
+
/* harmony export */ });
|
|
12332
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
12333
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
12334
|
+
/* harmony import */ var _utils_llamalend_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(302);
|
|
12335
|
+
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); } }
|
|
12336
|
+
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); }); }; }
|
|
12337
|
+
|
|
12338
|
+
|
|
12339
|
+
|
|
12340
|
+
|
|
12341
|
+
/**
|
|
12342
|
+
*
|
|
12343
|
+
* @category LlamaLend
|
|
12344
|
+
*/
|
|
12345
|
+
class LlamaLendSelfLiquidateAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
12346
|
+
/**
|
|
12347
|
+
@param controllerAddress Address of the llamalend market controller
|
|
12348
|
+
@param minDebtAssetExpected Minimum amount of debt asset as collateral for the user to have
|
|
12349
|
+
@param from Address from which to pull debt asset if needed
|
|
12350
|
+
@param to Address that will receive the debt asset and collateral asset
|
|
12351
|
+
*/
|
|
12352
|
+
constructor(controllerAddress, minDebtAssetExpected, from, to) {
|
|
12353
|
+
super('LlamaLendSelfLiquidate', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('LlamaLendSelfLiquidate'), ['address', 'uint256', 'address', 'address'], [controllerAddress, minDebtAssetExpected, from, to]);
|
|
12354
|
+
this.mappableArgs = [...this.args];
|
|
12355
|
+
}
|
|
12356
|
+
getAssetsToApprove() {
|
|
12357
|
+
var _this = this;
|
|
12358
|
+
return _asyncToGenerator(function* () {
|
|
12359
|
+
return [{
|
|
12360
|
+
owner: _this.args[2],
|
|
12361
|
+
asset: _utils_llamalend_utils__WEBPACK_IMPORTED_MODULE_2__.controllerToDebtAssetMap[_this.args[0]]
|
|
12362
|
+
}];
|
|
12363
|
+
})();
|
|
12364
|
+
}
|
|
12365
|
+
}
|
|
12366
|
+
|
|
12367
|
+
/***/ }),
|
|
12368
|
+
/* 306 */
|
|
12369
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12370
|
+
|
|
12067
12371
|
__webpack_require__.r(__webpack_exports__);
|
|
12068
12372
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12069
12373
|
/* harmony export */ "AaveV2RatioTrigger": () => (/* reexport safe */ _AaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_13__.AaveV2RatioTrigger),
|
|
@@ -12088,27 +12392,27 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12088
12392
|
/* harmony export */ "TrailingStopTrigger": () => (/* reexport safe */ _TrailingStopTrigger__WEBPACK_IMPORTED_MODULE_10__.TrailingStopTrigger),
|
|
12089
12393
|
/* harmony export */ "UniV3CurrentTickTrigger": () => (/* reexport safe */ _UniV3CurrentTickTrigger__WEBPACK_IMPORTED_MODULE_2__.UniV3CurrentTickTrigger)
|
|
12090
12394
|
/* harmony export */ });
|
|
12091
|
-
/* harmony import */ var _MakerRatioTrigger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
12092
|
-
/* harmony import */ var _ChainLinkPriceTrigger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
12093
|
-
/* harmony import */ var _UniV3CurrentTickTrigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
12094
|
-
/* harmony import */ var _TimestampTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
12095
|
-
/* harmony import */ var _GasPriceTrigger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
12096
|
-
/* harmony import */ var _CompoundRatioTrigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
12097
|
-
/* harmony import */ var _ReflexerRatioTrigger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
12098
|
-
/* harmony import */ var _LiquityRatioTrigger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
12099
|
-
/* harmony import */ var _AaveV3RatioTrigger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
|
|
12100
|
-
/* harmony import */ var _CompV3RatioTrigger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
|
12101
|
-
/* harmony import */ var _TrailingStopTrigger__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
|
|
12102
|
-
/* harmony import */ var _CBRebondTrigger__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
|
|
12103
|
-
/* harmony import */ var _AaveV3QuotePriceTrigger__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
|
|
12104
|
-
/* harmony import */ var _AaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
|
|
12105
|
-
/* harmony import */ var _MorphoAaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
|
|
12106
|
-
/* harmony import */ var _SparkRatioTrigger__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
|
|
12107
|
-
/* harmony import */ var _SparkQuotePriceTrigger__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
|
|
12108
|
-
/* harmony import */ var _LiquityDebtInFrontWithLimitTrigger__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
|
|
12109
|
-
/* harmony import */ var _CurveUsdCollRatioTrigger__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
|
|
12110
|
-
/* harmony import */ var _MorphoBlueRatioTrigger__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
|
|
12111
|
-
/* harmony import */ var _OffchainPriceTrigger__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
|
|
12395
|
+
/* harmony import */ var _MakerRatioTrigger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(307);
|
|
12396
|
+
/* harmony import */ var _ChainLinkPriceTrigger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(308);
|
|
12397
|
+
/* harmony import */ var _UniV3CurrentTickTrigger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(309);
|
|
12398
|
+
/* harmony import */ var _TimestampTrigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(310);
|
|
12399
|
+
/* harmony import */ var _GasPriceTrigger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(311);
|
|
12400
|
+
/* harmony import */ var _CompoundRatioTrigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(312);
|
|
12401
|
+
/* harmony import */ var _ReflexerRatioTrigger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(313);
|
|
12402
|
+
/* harmony import */ var _LiquityRatioTrigger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(314);
|
|
12403
|
+
/* harmony import */ var _AaveV3RatioTrigger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(315);
|
|
12404
|
+
/* harmony import */ var _CompV3RatioTrigger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(316);
|
|
12405
|
+
/* harmony import */ var _TrailingStopTrigger__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(317);
|
|
12406
|
+
/* harmony import */ var _CBRebondTrigger__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(318);
|
|
12407
|
+
/* harmony import */ var _AaveV3QuotePriceTrigger__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(319);
|
|
12408
|
+
/* harmony import */ var _AaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(320);
|
|
12409
|
+
/* harmony import */ var _MorphoAaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(321);
|
|
12410
|
+
/* harmony import */ var _SparkRatioTrigger__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(322);
|
|
12411
|
+
/* harmony import */ var _SparkQuotePriceTrigger__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(323);
|
|
12412
|
+
/* harmony import */ var _LiquityDebtInFrontWithLimitTrigger__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(324);
|
|
12413
|
+
/* harmony import */ var _CurveUsdCollRatioTrigger__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(325);
|
|
12414
|
+
/* harmony import */ var _MorphoBlueRatioTrigger__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(326);
|
|
12415
|
+
/* harmony import */ var _OffchainPriceTrigger__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(327);
|
|
12112
12416
|
|
|
12113
12417
|
|
|
12114
12418
|
|
|
@@ -12132,7 +12436,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12132
12436
|
|
|
12133
12437
|
|
|
12134
12438
|
/***/ }),
|
|
12135
|
-
/*
|
|
12439
|
+
/* 307 */
|
|
12136
12440
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12137
12441
|
|
|
12138
12442
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12155,7 +12459,7 @@ class MakerRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
12155
12459
|
}
|
|
12156
12460
|
|
|
12157
12461
|
/***/ }),
|
|
12158
|
-
/*
|
|
12462
|
+
/* 308 */
|
|
12159
12463
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12160
12464
|
|
|
12161
12465
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12178,7 +12482,7 @@ class ChainLinkPriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
12178
12482
|
}
|
|
12179
12483
|
|
|
12180
12484
|
/***/ }),
|
|
12181
|
-
/*
|
|
12485
|
+
/* 309 */
|
|
12182
12486
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12183
12487
|
|
|
12184
12488
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12201,7 +12505,7 @@ class UniV3CurrentTickTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Actio
|
|
|
12201
12505
|
}
|
|
12202
12506
|
|
|
12203
12507
|
/***/ }),
|
|
12204
|
-
/*
|
|
12508
|
+
/* 310 */
|
|
12205
12509
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12206
12510
|
|
|
12207
12511
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12224,7 +12528,7 @@ class TimestampTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
12224
12528
|
}
|
|
12225
12529
|
|
|
12226
12530
|
/***/ }),
|
|
12227
|
-
/*
|
|
12531
|
+
/* 311 */
|
|
12228
12532
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12229
12533
|
|
|
12230
12534
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12247,7 +12551,7 @@ class GasPriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
12247
12551
|
}
|
|
12248
12552
|
|
|
12249
12553
|
/***/ }),
|
|
12250
|
-
/*
|
|
12554
|
+
/* 312 */
|
|
12251
12555
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12252
12556
|
|
|
12253
12557
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12270,7 +12574,7 @@ class CompoundRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
12270
12574
|
}
|
|
12271
12575
|
|
|
12272
12576
|
/***/ }),
|
|
12273
|
-
/*
|
|
12577
|
+
/* 313 */
|
|
12274
12578
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12275
12579
|
|
|
12276
12580
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12293,7 +12597,7 @@ class ReflexerRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
12293
12597
|
}
|
|
12294
12598
|
|
|
12295
12599
|
/***/ }),
|
|
12296
|
-
/*
|
|
12600
|
+
/* 314 */
|
|
12297
12601
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12298
12602
|
|
|
12299
12603
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12316,7 +12620,7 @@ class LiquityRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
12316
12620
|
}
|
|
12317
12621
|
|
|
12318
12622
|
/***/ }),
|
|
12319
|
-
/*
|
|
12623
|
+
/* 315 */
|
|
12320
12624
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12321
12625
|
|
|
12322
12626
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12339,7 +12643,7 @@ class AaveV3RatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
12339
12643
|
}
|
|
12340
12644
|
|
|
12341
12645
|
/***/ }),
|
|
12342
|
-
/*
|
|
12646
|
+
/* 316 */
|
|
12343
12647
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12344
12648
|
|
|
12345
12649
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12362,7 +12666,7 @@ class CompV3RatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
12362
12666
|
}
|
|
12363
12667
|
|
|
12364
12668
|
/***/ }),
|
|
12365
|
-
/*
|
|
12669
|
+
/* 317 */
|
|
12366
12670
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12367
12671
|
|
|
12368
12672
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12385,7 +12689,7 @@ class TrailingStopTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
12385
12689
|
}
|
|
12386
12690
|
|
|
12387
12691
|
/***/ }),
|
|
12388
|
-
/*
|
|
12692
|
+
/* 318 */
|
|
12389
12693
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12390
12694
|
|
|
12391
12695
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12408,7 +12712,7 @@ class CBRebondTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
12408
12712
|
}
|
|
12409
12713
|
|
|
12410
12714
|
/***/ }),
|
|
12411
|
-
/*
|
|
12715
|
+
/* 319 */
|
|
12412
12716
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12413
12717
|
|
|
12414
12718
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12431,7 +12735,7 @@ class AaveV3QuotePriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Actio
|
|
|
12431
12735
|
}
|
|
12432
12736
|
|
|
12433
12737
|
/***/ }),
|
|
12434
|
-
/*
|
|
12738
|
+
/* 320 */
|
|
12435
12739
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12436
12740
|
|
|
12437
12741
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12454,7 +12758,7 @@ class AaveV2RatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
12454
12758
|
}
|
|
12455
12759
|
|
|
12456
12760
|
/***/ }),
|
|
12457
|
-
/*
|
|
12761
|
+
/* 321 */
|
|
12458
12762
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12459
12763
|
|
|
12460
12764
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12477,7 +12781,7 @@ class MorphoAaveV2RatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Acti
|
|
|
12477
12781
|
}
|
|
12478
12782
|
|
|
12479
12783
|
/***/ }),
|
|
12480
|
-
/*
|
|
12784
|
+
/* 322 */
|
|
12481
12785
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12482
12786
|
|
|
12483
12787
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12500,7 +12804,7 @@ class SparkRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
12500
12804
|
}
|
|
12501
12805
|
|
|
12502
12806
|
/***/ }),
|
|
12503
|
-
/*
|
|
12807
|
+
/* 323 */
|
|
12504
12808
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12505
12809
|
|
|
12506
12810
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12523,7 +12827,7 @@ class SparkQuotePriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
12523
12827
|
}
|
|
12524
12828
|
|
|
12525
12829
|
/***/ }),
|
|
12526
|
-
/*
|
|
12830
|
+
/* 324 */
|
|
12527
12831
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12528
12832
|
|
|
12529
12833
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12546,7 +12850,7 @@ class LiquityDebtInFrontWithLimitTrigger extends _Action__WEBPACK_IMPORTED_MODUL
|
|
|
12546
12850
|
}
|
|
12547
12851
|
|
|
12548
12852
|
/***/ }),
|
|
12549
|
-
/*
|
|
12853
|
+
/* 325 */
|
|
12550
12854
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12551
12855
|
|
|
12552
12856
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12569,7 +12873,7 @@ class CurveUsdCollRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Acti
|
|
|
12569
12873
|
}
|
|
12570
12874
|
|
|
12571
12875
|
/***/ }),
|
|
12572
|
-
/*
|
|
12876
|
+
/* 326 */
|
|
12573
12877
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12574
12878
|
|
|
12575
12879
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12592,7 +12896,7 @@ class MorphoBlueRatioTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
12592
12896
|
}
|
|
12593
12897
|
|
|
12594
12898
|
/***/ }),
|
|
12595
|
-
/*
|
|
12899
|
+
/* 327 */
|
|
12596
12900
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12597
12901
|
|
|
12598
12902
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12615,7 +12919,7 @@ class OffchainPriceTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
12615
12919
|
}
|
|
12616
12920
|
|
|
12617
12921
|
/***/ }),
|
|
12618
|
-
/*
|
|
12922
|
+
/* 328 */
|
|
12619
12923
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12620
12924
|
|
|
12621
12925
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12624,19 +12928,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12624
12928
|
/* harmony export */ "convexUtils": () => (/* reexport module object */ _convex_utils__WEBPACK_IMPORTED_MODULE_3__),
|
|
12625
12929
|
/* harmony export */ "curveUtils": () => (/* reexport module object */ _curve_utils__WEBPACK_IMPORTED_MODULE_5__),
|
|
12626
12930
|
/* harmony export */ "curveusdUtils": () => (/* reexport module object */ _curveusd_utils__WEBPACK_IMPORTED_MODULE_6__),
|
|
12931
|
+
/* harmony export */ "llamaLenUtils": () => (/* reexport module object */ _llamalend_utils__WEBPACK_IMPORTED_MODULE_8__),
|
|
12627
12932
|
/* harmony export */ "mstableAssetPairs": () => (/* reexport safe */ _mstableAssetPairs__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
12628
12933
|
/* harmony export */ "uniswapLP": () => (/* reexport module object */ _uniswapLP__WEBPACK_IMPORTED_MODULE_1__),
|
|
12629
12934
|
/* harmony export */ "uniswapV3LP": () => (/* reexport module object */ _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__),
|
|
12630
12935
|
/* harmony export */ "zeroExExchange": () => (/* reexport module object */ _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__)
|
|
12631
12936
|
/* harmony export */ });
|
|
12632
|
-
/* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
12937
|
+
/* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(329);
|
|
12633
12938
|
/* harmony import */ var _uniswapLP__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(128);
|
|
12634
|
-
/* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
12939
|
+
/* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(331);
|
|
12635
12940
|
/* harmony import */ var _convex_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(226);
|
|
12636
12941
|
/* harmony import */ var _mstableAssetPairs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(207);
|
|
12637
12942
|
/* harmony import */ var _curve_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(193);
|
|
12638
12943
|
/* harmony import */ var _curveusd_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(267);
|
|
12639
12944
|
/* harmony import */ var _basic_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(93);
|
|
12945
|
+
/* harmony import */ var _llamalend_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(302);
|
|
12946
|
+
|
|
12640
12947
|
|
|
12641
12948
|
|
|
12642
12949
|
|
|
@@ -12648,7 +12955,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12648
12955
|
|
|
12649
12956
|
|
|
12650
12957
|
/***/ }),
|
|
12651
|
-
/*
|
|
12958
|
+
/* 329 */
|
|
12652
12959
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12653
12960
|
|
|
12654
12961
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -12659,7 +12966,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12659
12966
|
/* harmony export */ });
|
|
12660
12967
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
|
12661
12968
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(decimal_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
12662
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
12969
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(330);
|
|
12663
12970
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
12664
12971
|
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
|
12665
12972
|
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__);
|
|
@@ -12862,20 +13169,20 @@ var createSellAction = /*#__PURE__*/function () {
|
|
|
12862
13169
|
}();
|
|
12863
13170
|
|
|
12864
13171
|
/***/ }),
|
|
12865
|
-
/*
|
|
13172
|
+
/* 330 */
|
|
12866
13173
|
/***/ ((module) => {
|
|
12867
13174
|
|
|
12868
|
-
module.exports =
|
|
13175
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__330__;
|
|
12869
13176
|
|
|
12870
13177
|
/***/ }),
|
|
12871
|
-
/*
|
|
13178
|
+
/* 331 */
|
|
12872
13179
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
12873
13180
|
|
|
12874
13181
|
__webpack_require__.r(__webpack_exports__);
|
|
12875
13182
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12876
13183
|
/* harmony export */ "getAssetAddrByTokenId": () => (/* binding */ getAssetAddrByTokenId)
|
|
12877
13184
|
/* harmony export */ });
|
|
12878
|
-
/* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
13185
|
+
/* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(332);
|
|
12879
13186
|
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); } }
|
|
12880
13187
|
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); }); }; }
|
|
12881
13188
|
/**
|
|
@@ -12900,7 +13207,7 @@ var getAssetAddrByTokenId = /*#__PURE__*/function () {
|
|
|
12900
13207
|
}();
|
|
12901
13208
|
|
|
12902
13209
|
/***/ }),
|
|
12903
|
-
/*
|
|
13210
|
+
/* 332 */
|
|
12904
13211
|
/***/ ((module) => {
|
|
12905
13212
|
|
|
12906
13213
|
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"}]');
|
|
@@ -13004,8 +13311,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13004
13311
|
/* harmony import */ var _Strategy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29);
|
|
13005
13312
|
/* harmony import */ var _DfsWeb3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30);
|
|
13006
13313
|
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35);
|
|
13007
|
-
/* harmony import */ var _triggers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
13008
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
13314
|
+
/* harmony import */ var _triggers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(306);
|
|
13315
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(328);
|
|
13009
13316
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4);
|
|
13010
13317
|
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27);
|
|
13011
13318
|
/* Export types here */
|