@defisaver/sdk 1.3.4 → 1.3.5-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/src/actions/checkers/AaveV3OpenRatioCheckAction.d.ts +3 -2
- package/esm/src/actions/checkers/AaveV3OpenRatioCheckAction.js +5 -7
- package/esm/src/actions/checkers/AaveV3RatioCheckAction.d.ts +4 -2
- package/esm/src/actions/checkers/AaveV3RatioCheckAction.js +6 -2
- package/esm/src/triggers/AaveV3QuotePriceRangeTrigger.d.ts +13 -0
- package/esm/src/triggers/AaveV3QuotePriceRangeTrigger.js +15 -0
- package/esm/src/triggers/index.d.ts +1 -0
- package/esm/src/triggers/index.js +1 -0
- package/package.json +1 -1
- package/src/actions/checkers/AaveV3OpenRatioCheckAction.ts +10 -8
- package/src/actions/checkers/AaveV3RatioCheckAction.ts +18 -4
- package/src/triggers/AaveV3QuotePriceRangeTrigger.ts +27 -0
- package/src/triggers/index.ts +1 -0
- package/umd/index.js +51 -16
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
2
|
import { EthAddress, uint256 } from '../../types';
|
|
3
3
|
/**
|
|
4
|
-
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for
|
|
4
|
+
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for position of `user` and reverts if faulty.
|
|
5
5
|
*
|
|
6
6
|
* @dev This checker action is different from AaveV3RatioCheckAction in that it checks current ratio without checking previous ratio.
|
|
7
7
|
*
|
|
@@ -11,6 +11,7 @@ export declare class AaveV3OpenRatioCheckAction extends Action {
|
|
|
11
11
|
/**
|
|
12
12
|
* @param targetRatio The ratio user want to be at
|
|
13
13
|
* @param market Address provider for specific market
|
|
14
|
+
* @param user Address of the user (EOA/SW). This param was added later
|
|
14
15
|
*/
|
|
15
|
-
constructor(targetRatio: uint256, market: EthAddress);
|
|
16
|
+
constructor(targetRatio: uint256, market: EthAddress, user?: EthAddress);
|
|
16
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
2
|
import { getAddr } from '../../addresses';
|
|
3
3
|
/**
|
|
4
|
-
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for
|
|
4
|
+
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for position of `user` and reverts if faulty.
|
|
5
5
|
*
|
|
6
6
|
* @dev This checker action is different from AaveV3RatioCheckAction in that it checks current ratio without checking previous ratio.
|
|
7
7
|
*
|
|
@@ -11,12 +11,10 @@ export class AaveV3OpenRatioCheckAction extends Action {
|
|
|
11
11
|
/**
|
|
12
12
|
* @param targetRatio The ratio user want to be at
|
|
13
13
|
* @param market Address provider for specific market
|
|
14
|
+
* @param user Address of the user (EOA/SW). This param was added later
|
|
14
15
|
*/
|
|
15
|
-
constructor(targetRatio, market) {
|
|
16
|
-
super('AaveV3OpenRatioCheck', getAddr('Empty'), ['uint256', 'address'], [targetRatio, market]);
|
|
17
|
-
this.mappableArgs = [
|
|
18
|
-
this.args[0],
|
|
19
|
-
this.args[1],
|
|
20
|
-
];
|
|
16
|
+
constructor(targetRatio, market, user = getAddr('Empty')) {
|
|
17
|
+
super('AaveV3OpenRatioCheck', getAddr('Empty'), ['uint256', 'address', 'address'], [targetRatio, market, user]);
|
|
18
|
+
this.mappableArgs = [this.args[0], this.args[1], this.args[2]];
|
|
21
19
|
}
|
|
22
20
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
|
-
import { uint8, uint256 } from '../../types';
|
|
2
|
+
import { uint8, uint256, EthAddress } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* AaveV3RatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty
|
|
5
5
|
*
|
|
@@ -9,6 +9,8 @@ export declare class AaveV3RatioCheckAction extends Action {
|
|
|
9
9
|
/**
|
|
10
10
|
* @param ratioState If it should lower/higher
|
|
11
11
|
* @param targetRatio The ratio user want to be at
|
|
12
|
+
* @param market Address provider for specific market. This param was added later
|
|
13
|
+
* @param user Address of the user (EOA/SW). This param was added later
|
|
12
14
|
*/
|
|
13
|
-
constructor(ratioState: uint8, targetRatio: uint256);
|
|
15
|
+
constructor(ratioState: uint8, targetRatio: uint256, market?: EthAddress, user?: EthAddress);
|
|
14
16
|
}
|
|
@@ -9,12 +9,16 @@ export class AaveV3RatioCheckAction extends Action {
|
|
|
9
9
|
/**
|
|
10
10
|
* @param ratioState If it should lower/higher
|
|
11
11
|
* @param targetRatio The ratio user want to be at
|
|
12
|
+
* @param market Address provider for specific market. This param was added later
|
|
13
|
+
* @param user Address of the user (EOA/SW). This param was added later
|
|
12
14
|
*/
|
|
13
|
-
constructor(ratioState, targetRatio) {
|
|
14
|
-
super('AaveV3RatioCheck', getAddr('
|
|
15
|
+
constructor(ratioState, targetRatio, market = getAddr('Empty'), user = getAddr('Empty')) {
|
|
16
|
+
super('AaveV3RatioCheck', getAddr('Empty'), ['uint8', 'uint256', 'address', 'address'], [ratioState, targetRatio, market, user]);
|
|
15
17
|
this.mappableArgs = [
|
|
16
18
|
this.args[0],
|
|
17
19
|
this.args[1],
|
|
20
|
+
this.args[2],
|
|
21
|
+
this.args[3],
|
|
18
22
|
];
|
|
19
23
|
}
|
|
20
24
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { EthAddress, uint256 } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* AaveV3QuotePriceRangeTrigger
|
|
5
|
+
* @param baseTokenAddr - The address of the base token
|
|
6
|
+
* @param quoteTokenAddr - The address of the quote token
|
|
7
|
+
* @param lowerPrice - The lower price of the range
|
|
8
|
+
* @param upperPrice - The upper price of the range
|
|
9
|
+
* @category Triggers
|
|
10
|
+
*/
|
|
11
|
+
export declare class AaveV3QuotePriceRangeTrigger extends Action {
|
|
12
|
+
constructor(baseTokenAddr: EthAddress, quoteTokenAddr: EthAddress, lowerPrice: uint256, upperPrice: uint256);
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { getAddr } from '../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* AaveV3QuotePriceRangeTrigger
|
|
5
|
+
* @param baseTokenAddr - The address of the base token
|
|
6
|
+
* @param quoteTokenAddr - The address of the quote token
|
|
7
|
+
* @param lowerPrice - The lower price of the range
|
|
8
|
+
* @param upperPrice - The upper price of the range
|
|
9
|
+
* @category Triggers
|
|
10
|
+
*/
|
|
11
|
+
export class AaveV3QuotePriceRangeTrigger extends Action {
|
|
12
|
+
constructor(baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice) {
|
|
13
|
+
super('AaveV3QuotePriceRangeTrigger', getAddr('Empty'), [['address', 'address', 'uint256', 'uint256']], [[baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice]]);
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { getAddr } from '../../addresses';
|
|
|
3
3
|
import { EthAddress, uint256 } from '../../types';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for
|
|
6
|
+
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for position of `user` and reverts if faulty.
|
|
7
7
|
*
|
|
8
8
|
* @dev This checker action is different from AaveV3RatioCheckAction in that it checks current ratio without checking previous ratio.
|
|
9
9
|
*
|
|
@@ -13,18 +13,20 @@ export class AaveV3OpenRatioCheckAction extends Action {
|
|
|
13
13
|
/**
|
|
14
14
|
* @param targetRatio The ratio user want to be at
|
|
15
15
|
* @param market Address provider for specific market
|
|
16
|
+
* @param user Address of the user (EOA/SW). This param was added later
|
|
16
17
|
*/
|
|
17
|
-
constructor(
|
|
18
|
+
constructor(
|
|
19
|
+
targetRatio: uint256,
|
|
20
|
+
market: EthAddress,
|
|
21
|
+
user: EthAddress = getAddr('Empty'),
|
|
22
|
+
) {
|
|
18
23
|
super(
|
|
19
24
|
'AaveV3OpenRatioCheck',
|
|
20
25
|
getAddr('Empty'),
|
|
21
|
-
['uint256', 'address'],
|
|
22
|
-
[targetRatio, market],
|
|
26
|
+
['uint256', 'address', 'address'],
|
|
27
|
+
[targetRatio, market, user],
|
|
23
28
|
);
|
|
24
29
|
|
|
25
|
-
this.mappableArgs = [
|
|
26
|
-
this.args[0],
|
|
27
|
-
this.args[1],
|
|
28
|
-
];
|
|
30
|
+
this.mappableArgs = [this.args[0], this.args[1], this.args[2]];
|
|
29
31
|
}
|
|
30
32
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
2
|
import { getAddr } from '../../addresses';
|
|
3
|
-
import { uint8, uint256 } from '../../types';
|
|
3
|
+
import { uint8, uint256, EthAddress } from '../../types';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* AaveV3RatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty
|
|
@@ -11,13 +11,27 @@ export class AaveV3RatioCheckAction extends Action {
|
|
|
11
11
|
/**
|
|
12
12
|
* @param ratioState If it should lower/higher
|
|
13
13
|
* @param targetRatio The ratio user want to be at
|
|
14
|
+
* @param market Address provider for specific market. This param was added later
|
|
15
|
+
* @param user Address of the user (EOA/SW). This param was added later
|
|
14
16
|
*/
|
|
15
|
-
constructor(
|
|
16
|
-
|
|
17
|
+
constructor(
|
|
18
|
+
ratioState: uint8,
|
|
19
|
+
targetRatio: uint256,
|
|
20
|
+
market: EthAddress = getAddr('Empty'),
|
|
21
|
+
user: EthAddress = getAddr('Empty'),
|
|
22
|
+
) {
|
|
23
|
+
super(
|
|
24
|
+
'AaveV3RatioCheck',
|
|
25
|
+
getAddr('Empty'),
|
|
26
|
+
['uint8', 'uint256', 'address', 'address'],
|
|
27
|
+
[ratioState, targetRatio, market, user],
|
|
28
|
+
);
|
|
17
29
|
|
|
18
30
|
this.mappableArgs = [
|
|
19
31
|
this.args[0],
|
|
20
32
|
this.args[1],
|
|
33
|
+
this.args[2],
|
|
34
|
+
this.args[3],
|
|
21
35
|
];
|
|
22
36
|
}
|
|
23
|
-
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { getAddr } from '../addresses';
|
|
3
|
+
import { EthAddress, uint256 } from '../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* AaveV3QuotePriceRangeTrigger
|
|
7
|
+
* @param baseTokenAddr - The address of the base token
|
|
8
|
+
* @param quoteTokenAddr - The address of the quote token
|
|
9
|
+
* @param lowerPrice - The lower price of the range
|
|
10
|
+
* @param upperPrice - The upper price of the range
|
|
11
|
+
* @category Triggers
|
|
12
|
+
*/
|
|
13
|
+
export class AaveV3QuotePriceRangeTrigger extends Action {
|
|
14
|
+
constructor(
|
|
15
|
+
baseTokenAddr: EthAddress,
|
|
16
|
+
quoteTokenAddr: EthAddress,
|
|
17
|
+
lowerPrice: uint256,
|
|
18
|
+
upperPrice: uint256,
|
|
19
|
+
) {
|
|
20
|
+
super(
|
|
21
|
+
'AaveV3QuotePriceRangeTrigger',
|
|
22
|
+
getAddr('Empty'),
|
|
23
|
+
[['address', 'address', 'uint256', 'uint256']],
|
|
24
|
+
[[baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice]],
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}
|
package/src/triggers/index.ts
CHANGED
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__,
|
|
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__442__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ([
|
|
@@ -6975,10 +6975,14 @@ class AaveV3RatioCheckAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action
|
|
|
6975
6975
|
/**
|
|
6976
6976
|
* @param ratioState If it should lower/higher
|
|
6977
6977
|
* @param targetRatio The ratio user want to be at
|
|
6978
|
+
* @param market Address provider for specific market. This param was added later
|
|
6979
|
+
* @param user Address of the user (EOA/SW). This param was added later
|
|
6978
6980
|
*/
|
|
6979
6981
|
constructor(ratioState, targetRatio) {
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
+
var market = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty');
|
|
6983
|
+
var user = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty');
|
|
6984
|
+
super('AaveV3RatioCheck', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), ['uint8', 'uint256', 'address', 'address'], [ratioState, targetRatio, market, user]);
|
|
6985
|
+
this.mappableArgs = [this.args[0], this.args[1], this.args[2], this.args[3]];
|
|
6982
6986
|
}
|
|
6983
6987
|
}
|
|
6984
6988
|
|
|
@@ -7256,7 +7260,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7256
7260
|
|
|
7257
7261
|
|
|
7258
7262
|
/**
|
|
7259
|
-
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for
|
|
7263
|
+
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for position of `user` and reverts if faulty.
|
|
7260
7264
|
*
|
|
7261
7265
|
* @dev This checker action is different from AaveV3RatioCheckAction in that it checks current ratio without checking previous ratio.
|
|
7262
7266
|
*
|
|
@@ -7266,10 +7270,12 @@ class AaveV3OpenRatioCheckAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Ac
|
|
|
7266
7270
|
/**
|
|
7267
7271
|
* @param targetRatio The ratio user want to be at
|
|
7268
7272
|
* @param market Address provider for specific market
|
|
7273
|
+
* @param user Address of the user (EOA/SW). This param was added later
|
|
7269
7274
|
*/
|
|
7270
7275
|
constructor(targetRatio, market) {
|
|
7271
|
-
|
|
7272
|
-
|
|
7276
|
+
var user = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty');
|
|
7277
|
+
super('AaveV3OpenRatioCheck', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), ['uint256', 'address', 'address'], [targetRatio, market, user]);
|
|
7278
|
+
this.mappableArgs = [this.args[0], this.args[1], this.args[2]];
|
|
7273
7279
|
}
|
|
7274
7280
|
}
|
|
7275
7281
|
|
|
@@ -16279,6 +16285,7 @@ class UmbrellaClaimRewardsAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Ac
|
|
|
16279
16285
|
__webpack_require__.r(__webpack_exports__);
|
|
16280
16286
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16281
16287
|
/* harmony export */ AaveV2RatioTrigger: () => (/* reexport safe */ _AaveV2RatioTrigger__WEBPACK_IMPORTED_MODULE_13__.AaveV2RatioTrigger),
|
|
16288
|
+
/* harmony export */ AaveV3QuotePriceRangeTrigger: () => (/* reexport safe */ _AaveV3QuotePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_30__.AaveV3QuotePriceRangeTrigger),
|
|
16282
16289
|
/* harmony export */ AaveV3QuotePriceTrigger: () => (/* reexport safe */ _AaveV3QuotePriceTrigger__WEBPACK_IMPORTED_MODULE_12__.AaveV3QuotePriceTrigger),
|
|
16283
16290
|
/* harmony export */ AaveV3RatioTrigger: () => (/* reexport safe */ _AaveV3RatioTrigger__WEBPACK_IMPORTED_MODULE_8__.AaveV3RatioTrigger),
|
|
16284
16291
|
/* harmony export */ CBRebondTrigger: () => (/* reexport safe */ _CBRebondTrigger__WEBPACK_IMPORTED_MODULE_11__.CBRebondTrigger),
|
|
@@ -16339,6 +16346,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16339
16346
|
/* harmony import */ var _CompV3PriceTrigger__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(436);
|
|
16340
16347
|
/* harmony import */ var _CompV3PriceRangeTrigger__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(437);
|
|
16341
16348
|
/* harmony import */ var _LiquityV2AdjustRateDebtInFrontTrigger__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(438);
|
|
16349
|
+
/* harmony import */ var _AaveV3QuotePriceRangeTrigger__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(439);
|
|
16350
|
+
|
|
16342
16351
|
|
|
16343
16352
|
|
|
16344
16353
|
|
|
@@ -17064,6 +17073,32 @@ class LiquityV2AdjustRateDebtInFrontTrigger extends _Action__WEBPACK_IMPORTED_MO
|
|
|
17064
17073
|
/* 439 */
|
|
17065
17074
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17066
17075
|
|
|
17076
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17077
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17078
|
+
/* harmony export */ AaveV3QuotePriceRangeTrigger: () => (/* binding */ AaveV3QuotePriceRangeTrigger)
|
|
17079
|
+
/* harmony export */ });
|
|
17080
|
+
/* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
|
|
17081
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
|
|
17082
|
+
|
|
17083
|
+
|
|
17084
|
+
/**
|
|
17085
|
+
* AaveV3QuotePriceRangeTrigger
|
|
17086
|
+
* @param baseTokenAddr - The address of the base token
|
|
17087
|
+
* @param quoteTokenAddr - The address of the quote token
|
|
17088
|
+
* @param lowerPrice - The lower price of the range
|
|
17089
|
+
* @param upperPrice - The upper price of the range
|
|
17090
|
+
* @category Triggers
|
|
17091
|
+
*/
|
|
17092
|
+
class AaveV3QuotePriceRangeTrigger extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
17093
|
+
constructor(baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice) {
|
|
17094
|
+
super('AaveV3QuotePriceRangeTrigger', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), [['address', 'address', 'uint256', 'uint256']], [[baseTokenAddr, quoteTokenAddr, lowerPrice, upperPrice]]);
|
|
17095
|
+
}
|
|
17096
|
+
}
|
|
17097
|
+
|
|
17098
|
+
/***/ }),
|
|
17099
|
+
/* 440 */
|
|
17100
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17101
|
+
|
|
17067
17102
|
__webpack_require__.r(__webpack_exports__);
|
|
17068
17103
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17069
17104
|
/* harmony export */ basicUtils: () => (/* reexport module object */ _basic_utils__WEBPACK_IMPORTED_MODULE_7__),
|
|
@@ -17075,9 +17110,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17075
17110
|
/* harmony export */ uniswapV3LP: () => (/* reexport module object */ _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__),
|
|
17076
17111
|
/* harmony export */ zeroExExchange: () => (/* reexport module object */ _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__)
|
|
17077
17112
|
/* harmony export */ });
|
|
17078
|
-
/* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
17113
|
+
/* harmony import */ var _zeroExExchange__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(441);
|
|
17079
17114
|
/* harmony import */ var _uniswapLP__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(137);
|
|
17080
|
-
/* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
17115
|
+
/* harmony import */ var _uniswapV3LP__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(443);
|
|
17081
17116
|
/* harmony import */ var _convex_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(243);
|
|
17082
17117
|
/* harmony import */ var _mstableAssetPairs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(223);
|
|
17083
17118
|
/* harmony import */ var _curve_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(209);
|
|
@@ -17094,7 +17129,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17094
17129
|
|
|
17095
17130
|
|
|
17096
17131
|
/***/ }),
|
|
17097
|
-
/*
|
|
17132
|
+
/* 441 */
|
|
17098
17133
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17099
17134
|
|
|
17100
17135
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -17105,7 +17140,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17105
17140
|
/* harmony export */ });
|
|
17106
17141
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
|
17107
17142
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(decimal_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
17108
|
-
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
17143
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(442);
|
|
17109
17144
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
|
|
17110
17145
|
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
|
|
17111
17146
|
/* harmony import */ var _defisaver_tokens__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_defisaver_tokens__WEBPACK_IMPORTED_MODULE_2__);
|
|
@@ -17307,20 +17342,20 @@ var createSellAction = /*#__PURE__*/function () {
|
|
|
17307
17342
|
}();
|
|
17308
17343
|
|
|
17309
17344
|
/***/ }),
|
|
17310
|
-
/*
|
|
17345
|
+
/* 442 */
|
|
17311
17346
|
/***/ ((module) => {
|
|
17312
17347
|
|
|
17313
|
-
module.exports =
|
|
17348
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__442__;
|
|
17314
17349
|
|
|
17315
17350
|
/***/ }),
|
|
17316
|
-
/*
|
|
17351
|
+
/* 443 */
|
|
17317
17352
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17318
17353
|
|
|
17319
17354
|
__webpack_require__.r(__webpack_exports__);
|
|
17320
17355
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17321
17356
|
/* harmony export */ getAssetAddrByTokenId: () => (/* binding */ getAssetAddrByTokenId)
|
|
17322
17357
|
/* harmony export */ });
|
|
17323
|
-
/* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
17358
|
+
/* harmony import */ var _abis_UniV3PositionManager_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(444);
|
|
17324
17359
|
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); } }
|
|
17325
17360
|
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); }); }; }
|
|
17326
17361
|
/**
|
|
@@ -17345,7 +17380,7 @@ var getAssetAddrByTokenId = /*#__PURE__*/function () {
|
|
|
17345
17380
|
}();
|
|
17346
17381
|
|
|
17347
17382
|
/***/ }),
|
|
17348
|
-
/*
|
|
17383
|
+
/* 444 */
|
|
17349
17384
|
/***/ ((module) => {
|
|
17350
17385
|
|
|
17351
17386
|
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"}]');
|
|
@@ -17450,7 +17485,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17450
17485
|
/* harmony import */ var _DfsWeb3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30);
|
|
17451
17486
|
/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35);
|
|
17452
17487
|
/* harmony import */ var _triggers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(408);
|
|
17453
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
17488
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(440);
|
|
17454
17489
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4);
|
|
17455
17490
|
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27);
|
|
17456
17491
|
/* Export types here */
|