@defisaver/sdk 1.3.18-aave-v4-2-dev → 1.3.18-spark-on-price-v1-dev
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/Strategy.d.ts +0 -1
- package/esm/src/Strategy.js +0 -3
- package/esm/src/actions/checkers/SparkRatioCheckAction.js +1 -1
- package/esm/src/actions/checkers/SparkTargetRatioCheck.d.ts +14 -0
- package/esm/src/actions/checkers/SparkTargetRatioCheck.js +20 -0
- package/esm/src/actions/checkers/index.d.ts +1 -1
- package/esm/src/actions/checkers/index.js +1 -1
- package/esm/src/actions/index.d.ts +1 -2
- package/esm/src/actions/index.js +1 -2
- package/esm/src/addresses.d.ts +0 -54
- package/esm/src/addresses.js +0 -10
- package/esm/src/index.d.ts +0 -216
- package/esm/src/triggers/index.d.ts +0 -3
- package/esm/src/triggers/index.js +0 -3
- package/package.json +1 -1
- package/src/Strategy.ts +0 -4
- package/src/actions/checkers/SparkRatioCheckAction.ts +1 -1
- package/src/actions/checkers/SparkTargetRatioCheck.ts +23 -0
- package/src/actions/checkers/index.ts +1 -1
- package/src/actions/index.ts +0 -2
- package/src/addresses.ts +0 -11
- package/src/triggers/index.ts +1 -4
- package/umd/index.js +94 -572
- package/esm/src/actions/aavev4/AaveV4BorrowAction.d.ts +0 -17
- package/esm/src/actions/aavev4/AaveV4BorrowAction.js +0 -26
- package/esm/src/actions/aavev4/AaveV4CollateralSwitchAction.d.ts +0 -16
- package/esm/src/actions/aavev4/AaveV4CollateralSwitchAction.js +0 -24
- package/esm/src/actions/aavev4/AaveV4DelegateBorrowWithSigAction.d.ts +0 -14
- package/esm/src/actions/aavev4/AaveV4DelegateBorrowWithSigAction.js +0 -19
- package/esm/src/actions/aavev4/AaveV4DelegateWithdrawWithSigAction.d.ts +0 -14
- package/esm/src/actions/aavev4/AaveV4DelegateWithdrawWithSigAction.js +0 -19
- package/esm/src/actions/aavev4/AaveV4PaybackAction.d.ts +0 -23
- package/esm/src/actions/aavev4/AaveV4PaybackAction.js +0 -46
- package/esm/src/actions/aavev4/AaveV4RefreshPremiumAction.d.ts +0 -15
- package/esm/src/actions/aavev4/AaveV4RefreshPremiumAction.js +0 -22
- package/esm/src/actions/aavev4/AaveV4SetUserManagersWithSigAction.d.ts +0 -18
- package/esm/src/actions/aavev4/AaveV4SetUserManagersWithSigAction.js +0 -20
- package/esm/src/actions/aavev4/AaveV4StoreRatioAction.d.ts +0 -14
- package/esm/src/actions/aavev4/AaveV4StoreRatioAction.js +0 -20
- package/esm/src/actions/aavev4/AaveV4SupplyAction.d.ts +0 -25
- package/esm/src/actions/aavev4/AaveV4SupplyAction.js +0 -49
- package/esm/src/actions/aavev4/AaveV4WithdrawAction.d.ts +0 -17
- package/esm/src/actions/aavev4/AaveV4WithdrawAction.js +0 -26
- package/esm/src/actions/aavev4/index.d.ts +0 -10
- package/esm/src/actions/aavev4/index.js +0 -10
- package/esm/src/actions/checkers/AaveV4RatioCheckAction.d.ts +0 -16
- package/esm/src/actions/checkers/AaveV4RatioCheckAction.js +0 -24
- package/esm/src/triggers/AaveV4QuotePriceRangeTrigger.d.ts +0 -10
- package/esm/src/triggers/AaveV4QuotePriceRangeTrigger.js +0 -12
- package/esm/src/triggers/AaveV4QuotePriceTrigger.d.ts +0 -10
- package/esm/src/triggers/AaveV4QuotePriceTrigger.js +0 -12
- package/esm/src/triggers/AaveV4RatioTrigger.d.ts +0 -10
- package/esm/src/triggers/AaveV4RatioTrigger.js +0 -12
- package/src/actions/aavev4/AaveV4BorrowAction.ts +0 -39
- package/src/actions/aavev4/AaveV4CollateralSwitchAction.ts +0 -36
- package/src/actions/aavev4/AaveV4DelegateBorrowWithSigAction.ts +0 -29
- package/src/actions/aavev4/AaveV4DelegateWithdrawWithSigAction.ts +0 -29
- package/src/actions/aavev4/AaveV4PaybackAction.ts +0 -51
- package/src/actions/aavev4/AaveV4RefreshPremiumAction.ts +0 -33
- package/src/actions/aavev4/AaveV4SetUserManagersWithSigAction.ts +0 -34
- package/src/actions/aavev4/AaveV4StoreRatioAction.ts +0 -30
- package/src/actions/aavev4/AaveV4SupplyAction.ts +0 -55
- package/src/actions/aavev4/AaveV4WithdrawAction.ts +0 -39
- package/src/actions/aavev4/index.ts +0 -10
- package/src/actions/checkers/AaveV4RatioCheckAction.ts +0 -36
- package/src/triggers/AaveV4QuotePriceRangeTrigger.ts +0 -25
- package/src/triggers/AaveV4QuotePriceTrigger.ts +0 -25
- package/src/triggers/AaveV4RatioTrigger.ts +0 -24
package/esm/src/Strategy.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export declare class Strategy {
|
|
|
13
13
|
addSubSlot(name: string, type: string): void;
|
|
14
14
|
addTrigger(newTrigger: Action): void;
|
|
15
15
|
addAction(newAction: Action): void;
|
|
16
|
-
addActions(newActions: Array<Action>): void;
|
|
17
16
|
print(): void;
|
|
18
17
|
getSubSlots(): any;
|
|
19
18
|
encodeForDsProxyCall(): (string | string[] | number[][])[];
|
package/esm/src/Strategy.js
CHANGED
|
@@ -11,7 +11,7 @@ export class SparkRatioCheckAction extends Action {
|
|
|
11
11
|
* @param targetRatio The ratio user want to be at
|
|
12
12
|
*/
|
|
13
13
|
constructor(ratioState, targetRatio) {
|
|
14
|
-
super('SparkRatioCheck', getAddr('
|
|
14
|
+
super('SparkRatioCheck', getAddr('Empty'), ['uint8', 'uint256'], [ratioState, targetRatio]);
|
|
15
15
|
this.mappableArgs = [
|
|
16
16
|
this.args[0],
|
|
17
17
|
this.args[1],
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* SparkTargetRatioCheck - SparkRatioCheckAction - Checks spark ratio for users proxy position and reverts if faulty
|
|
5
|
+
*
|
|
6
|
+
* @category Checkers
|
|
7
|
+
*/
|
|
8
|
+
export declare class SparkTargetRatioCheck extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param targetRatio The ratio user want to be at
|
|
11
|
+
* @param market Address of the market
|
|
12
|
+
*/
|
|
13
|
+
constructor(targetRatio: uint256, market: EthAddress);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* SparkTargetRatioCheck - SparkRatioCheckAction - Checks spark ratio for users proxy position and reverts if faulty
|
|
5
|
+
*
|
|
6
|
+
* @category Checkers
|
|
7
|
+
*/
|
|
8
|
+
export class SparkTargetRatioCheck extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param targetRatio The ratio user want to be at
|
|
11
|
+
* @param market Address of the market
|
|
12
|
+
*/
|
|
13
|
+
constructor(targetRatio, market) {
|
|
14
|
+
super('SparkTargetRatioCheck', getAddr('Empty'), ['uint256', 'address'], [targetRatio, market]);
|
|
15
|
+
this.mappableArgs = [
|
|
16
|
+
this.args[0],
|
|
17
|
+
this.args[1],
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -15,4 +15,4 @@ export * from './LiquityV2RatioCheckAction';
|
|
|
15
15
|
export * from './LiquityV2TargetRatioCheckAction';
|
|
16
16
|
export * from './LiquityV2NewInterestRateCheckerAction';
|
|
17
17
|
export * from './FluidRatioCheckAction';
|
|
18
|
-
export * from './
|
|
18
|
+
export * from './SparkTargetRatioCheck';
|
|
@@ -15,4 +15,4 @@ export * from './LiquityV2RatioCheckAction';
|
|
|
15
15
|
export * from './LiquityV2TargetRatioCheckAction';
|
|
16
16
|
export * from './LiquityV2NewInterestRateCheckerAction';
|
|
17
17
|
export * from './FluidRatioCheckAction';
|
|
18
|
-
export * from './
|
|
18
|
+
export * from './SparkTargetRatioCheck';
|
|
@@ -39,5 +39,4 @@ import * as etherfi from './etherfi';
|
|
|
39
39
|
import * as fluid from './fluid';
|
|
40
40
|
import * as pendle from './pendle';
|
|
41
41
|
import * as umbrella from './umbrella';
|
|
42
|
-
|
|
43
|
-
export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, summerfi, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, umbrella, aaveV4, };
|
|
42
|
+
export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, summerfi, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, umbrella, };
|
package/esm/src/actions/index.js
CHANGED
|
@@ -39,5 +39,4 @@ import * as etherfi from './etherfi';
|
|
|
39
39
|
import * as fluid from './fluid';
|
|
40
40
|
import * as pendle from './pendle';
|
|
41
41
|
import * as umbrella from './umbrella';
|
|
42
|
-
|
|
43
|
-
export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, summerfi, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, umbrella, aaveV4, };
|
|
42
|
+
export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, summerfi, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, umbrella, };
|
package/esm/src/addresses.d.ts
CHANGED
|
@@ -277,15 +277,6 @@ export declare const actionAddresses: {
|
|
|
277
277
|
SFApproveTokens: string;
|
|
278
278
|
SummerfiUnsub: string;
|
|
279
279
|
SummerfiUnsubV2: string;
|
|
280
|
-
AaveV4Supply: string;
|
|
281
|
-
AaveV4Withdraw: string;
|
|
282
|
-
AaveV4Borrow: string;
|
|
283
|
-
AaveV4Payback: string;
|
|
284
|
-
AaveV4CollateralSwitch: string;
|
|
285
|
-
AaveV4RefreshPremium: string;
|
|
286
|
-
AaveV4SetUserManagersWithSig: string;
|
|
287
|
-
AaveV4DelegateWithdrawWithSig: string;
|
|
288
|
-
AaveV4DelegateBorrowWithSig: string;
|
|
289
280
|
AaveV3DelegateCredit?: undefined;
|
|
290
281
|
AaveV3RatioTrigger?: undefined;
|
|
291
282
|
GasFeeTakerL2?: undefined;
|
|
@@ -572,15 +563,6 @@ export declare const actionAddresses: {
|
|
|
572
563
|
UmbrellaClaimRewards?: undefined;
|
|
573
564
|
UmbrellaStake?: undefined;
|
|
574
565
|
UmbrellaUnstake?: undefined;
|
|
575
|
-
AaveV4Supply?: undefined;
|
|
576
|
-
AaveV4Withdraw?: undefined;
|
|
577
|
-
AaveV4Borrow?: undefined;
|
|
578
|
-
AaveV4Payback?: undefined;
|
|
579
|
-
AaveV4CollateralSwitch?: undefined;
|
|
580
|
-
AaveV4RefreshPremium?: undefined;
|
|
581
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
582
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
583
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
584
566
|
MorphoBlueView?: undefined;
|
|
585
567
|
} | {
|
|
586
568
|
DFSSell: string;
|
|
@@ -862,15 +844,6 @@ export declare const actionAddresses: {
|
|
|
862
844
|
UmbrellaClaimRewards?: undefined;
|
|
863
845
|
UmbrellaStake?: undefined;
|
|
864
846
|
UmbrellaUnstake?: undefined;
|
|
865
|
-
AaveV4Supply?: undefined;
|
|
866
|
-
AaveV4Withdraw?: undefined;
|
|
867
|
-
AaveV4Borrow?: undefined;
|
|
868
|
-
AaveV4Payback?: undefined;
|
|
869
|
-
AaveV4CollateralSwitch?: undefined;
|
|
870
|
-
AaveV4RefreshPremium?: undefined;
|
|
871
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
872
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
873
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
874
847
|
AaveV3DelegateCredit?: undefined;
|
|
875
848
|
AaveV3RatioTrigger?: undefined;
|
|
876
849
|
} | {
|
|
@@ -1152,15 +1125,6 @@ export declare const actionAddresses: {
|
|
|
1152
1125
|
UmbrellaClaimRewards?: undefined;
|
|
1153
1126
|
UmbrellaStake?: undefined;
|
|
1154
1127
|
UmbrellaUnstake?: undefined;
|
|
1155
|
-
AaveV4Supply?: undefined;
|
|
1156
|
-
AaveV4Withdraw?: undefined;
|
|
1157
|
-
AaveV4Borrow?: undefined;
|
|
1158
|
-
AaveV4Payback?: undefined;
|
|
1159
|
-
AaveV4CollateralSwitch?: undefined;
|
|
1160
|
-
AaveV4RefreshPremium?: undefined;
|
|
1161
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
1162
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1163
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1164
1128
|
AaveV3DelegateCredit?: undefined;
|
|
1165
1129
|
AaveV3RatioTrigger?: undefined;
|
|
1166
1130
|
AaveV3RatioCheck?: undefined;
|
|
@@ -1442,15 +1406,6 @@ export declare const actionAddresses: {
|
|
|
1442
1406
|
SFApproveTokens?: undefined;
|
|
1443
1407
|
SummerfiUnsub?: undefined;
|
|
1444
1408
|
SummerfiUnsubV2?: undefined;
|
|
1445
|
-
AaveV4Supply?: undefined;
|
|
1446
|
-
AaveV4Withdraw?: undefined;
|
|
1447
|
-
AaveV4Borrow?: undefined;
|
|
1448
|
-
AaveV4Payback?: undefined;
|
|
1449
|
-
AaveV4CollateralSwitch?: undefined;
|
|
1450
|
-
AaveV4RefreshPremium?: undefined;
|
|
1451
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
1452
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1453
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1454
1409
|
AaveV3RatioTrigger?: undefined;
|
|
1455
1410
|
GasFeeTakerL2?: undefined;
|
|
1456
1411
|
AaveV3RatioCheck?: undefined;
|
|
@@ -1733,15 +1688,6 @@ export declare const actionAddresses: {
|
|
|
1733
1688
|
SFApproveTokens?: undefined;
|
|
1734
1689
|
SummerfiUnsub?: undefined;
|
|
1735
1690
|
SummerfiUnsubV2?: undefined;
|
|
1736
|
-
AaveV4Supply?: undefined;
|
|
1737
|
-
AaveV4Withdraw?: undefined;
|
|
1738
|
-
AaveV4Borrow?: undefined;
|
|
1739
|
-
AaveV4Payback?: undefined;
|
|
1740
|
-
AaveV4CollateralSwitch?: undefined;
|
|
1741
|
-
AaveV4RefreshPremium?: undefined;
|
|
1742
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
1743
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1744
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1745
1691
|
AaveV3RatioTrigger?: undefined;
|
|
1746
1692
|
GasFeeTakerL2?: undefined;
|
|
1747
1693
|
AaveV3RatioCheck?: undefined;
|
package/esm/src/addresses.js
CHANGED
|
@@ -318,16 +318,6 @@ export const actionAddresses = {
|
|
|
318
318
|
SFApproveTokens: '0x0aC29D44eeC8e8f3b010c2e8FC960957db0c8298',
|
|
319
319
|
SummerfiUnsub: '0x926405D69b77A514ED974901095AcFf9e5131366',
|
|
320
320
|
SummerfiUnsubV2: '0x5E805eD9B7581a9f1398F75833f9663a459F5E30',
|
|
321
|
-
// AaveV4
|
|
322
|
-
AaveV4Supply: '0x270A0C7eBd1C0a98FdA613782b51419300AB6322',
|
|
323
|
-
AaveV4Withdraw: '0x561013c605A17f5dC5b738C8a3fF9c5F33DbC3d8',
|
|
324
|
-
AaveV4Borrow: '0xC6C627c63389D8bB7913b55CD62fa451703AD1E1',
|
|
325
|
-
AaveV4Payback: '0x6e31Dd331571209043c8CF997f86b4291F648537',
|
|
326
|
-
AaveV4CollateralSwitch: '0x26C39FE05466dBA72A98d095d019dC5e067F6b28',
|
|
327
|
-
AaveV4RefreshPremium: '0xb080DC160415Ffe1a4b80d75b0Be92EE38a0b426',
|
|
328
|
-
AaveV4SetUserManagersWithSig: '0xe3459a0fEBc8276c428951125A10f589ea195760',
|
|
329
|
-
AaveV4DelegateWithdrawWithSig: '0xDDCcE054Ea32dc857A2D7Cf87E55310Feb2DD86c',
|
|
330
|
-
AaveV4DelegateBorrowWithSig: '0xdDef60521E4cf82e971D1f1387ab0d5e226D0533',
|
|
331
321
|
},
|
|
332
322
|
[NETWORKS.optimism.chainId]: {
|
|
333
323
|
DFSSell: '0x9f234af5c10c136863a20865ba00b26951ab8269',
|
package/esm/src/index.d.ts
CHANGED
|
@@ -288,15 +288,6 @@ declare const actionAddressesAllChains: {
|
|
|
288
288
|
SFApproveTokens: string;
|
|
289
289
|
SummerfiUnsub: string;
|
|
290
290
|
SummerfiUnsubV2: string;
|
|
291
|
-
AaveV4Supply: string;
|
|
292
|
-
AaveV4Withdraw: string;
|
|
293
|
-
AaveV4Borrow: string;
|
|
294
|
-
AaveV4Payback: string;
|
|
295
|
-
AaveV4CollateralSwitch: string;
|
|
296
|
-
AaveV4RefreshPremium: string;
|
|
297
|
-
AaveV4SetUserManagersWithSig: string;
|
|
298
|
-
AaveV4DelegateWithdrawWithSig: string;
|
|
299
|
-
AaveV4DelegateBorrowWithSig: string;
|
|
300
291
|
AaveV3DelegateCredit?: undefined;
|
|
301
292
|
AaveV3RatioTrigger?: undefined;
|
|
302
293
|
GasFeeTakerL2?: undefined;
|
|
@@ -583,15 +574,6 @@ declare const actionAddressesAllChains: {
|
|
|
583
574
|
UmbrellaClaimRewards?: undefined;
|
|
584
575
|
UmbrellaStake?: undefined;
|
|
585
576
|
UmbrellaUnstake?: undefined;
|
|
586
|
-
AaveV4Supply?: undefined;
|
|
587
|
-
AaveV4Withdraw?: undefined;
|
|
588
|
-
AaveV4Borrow?: undefined;
|
|
589
|
-
AaveV4Payback?: undefined;
|
|
590
|
-
AaveV4CollateralSwitch?: undefined;
|
|
591
|
-
AaveV4RefreshPremium?: undefined;
|
|
592
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
593
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
594
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
595
577
|
MorphoBlueView?: undefined;
|
|
596
578
|
} | {
|
|
597
579
|
DFSSell: string;
|
|
@@ -873,15 +855,6 @@ declare const actionAddressesAllChains: {
|
|
|
873
855
|
UmbrellaClaimRewards?: undefined;
|
|
874
856
|
UmbrellaStake?: undefined;
|
|
875
857
|
UmbrellaUnstake?: undefined;
|
|
876
|
-
AaveV4Supply?: undefined;
|
|
877
|
-
AaveV4Withdraw?: undefined;
|
|
878
|
-
AaveV4Borrow?: undefined;
|
|
879
|
-
AaveV4Payback?: undefined;
|
|
880
|
-
AaveV4CollateralSwitch?: undefined;
|
|
881
|
-
AaveV4RefreshPremium?: undefined;
|
|
882
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
883
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
884
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
885
858
|
AaveV3DelegateCredit?: undefined;
|
|
886
859
|
AaveV3RatioTrigger?: undefined;
|
|
887
860
|
} | {
|
|
@@ -1163,15 +1136,6 @@ declare const actionAddressesAllChains: {
|
|
|
1163
1136
|
UmbrellaClaimRewards?: undefined;
|
|
1164
1137
|
UmbrellaStake?: undefined;
|
|
1165
1138
|
UmbrellaUnstake?: undefined;
|
|
1166
|
-
AaveV4Supply?: undefined;
|
|
1167
|
-
AaveV4Withdraw?: undefined;
|
|
1168
|
-
AaveV4Borrow?: undefined;
|
|
1169
|
-
AaveV4Payback?: undefined;
|
|
1170
|
-
AaveV4CollateralSwitch?: undefined;
|
|
1171
|
-
AaveV4RefreshPremium?: undefined;
|
|
1172
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
1173
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1174
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1175
1139
|
AaveV3DelegateCredit?: undefined;
|
|
1176
1140
|
AaveV3RatioTrigger?: undefined;
|
|
1177
1141
|
AaveV3RatioCheck?: undefined;
|
|
@@ -1453,15 +1417,6 @@ declare const actionAddressesAllChains: {
|
|
|
1453
1417
|
SFApproveTokens?: undefined;
|
|
1454
1418
|
SummerfiUnsub?: undefined;
|
|
1455
1419
|
SummerfiUnsubV2?: undefined;
|
|
1456
|
-
AaveV4Supply?: undefined;
|
|
1457
|
-
AaveV4Withdraw?: undefined;
|
|
1458
|
-
AaveV4Borrow?: undefined;
|
|
1459
|
-
AaveV4Payback?: undefined;
|
|
1460
|
-
AaveV4CollateralSwitch?: undefined;
|
|
1461
|
-
AaveV4RefreshPremium?: undefined;
|
|
1462
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
1463
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1464
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1465
1420
|
AaveV3RatioTrigger?: undefined;
|
|
1466
1421
|
GasFeeTakerL2?: undefined;
|
|
1467
1422
|
AaveV3RatioCheck?: undefined;
|
|
@@ -1744,15 +1699,6 @@ declare const actionAddressesAllChains: {
|
|
|
1744
1699
|
SFApproveTokens?: undefined;
|
|
1745
1700
|
SummerfiUnsub?: undefined;
|
|
1746
1701
|
SummerfiUnsubV2?: undefined;
|
|
1747
|
-
AaveV4Supply?: undefined;
|
|
1748
|
-
AaveV4Withdraw?: undefined;
|
|
1749
|
-
AaveV4Borrow?: undefined;
|
|
1750
|
-
AaveV4Payback?: undefined;
|
|
1751
|
-
AaveV4CollateralSwitch?: undefined;
|
|
1752
|
-
AaveV4RefreshPremium?: undefined;
|
|
1753
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
1754
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1755
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1756
1702
|
AaveV3RatioTrigger?: undefined;
|
|
1757
1703
|
GasFeeTakerL2?: undefined;
|
|
1758
1704
|
AaveV3RatioCheck?: undefined;
|
|
@@ -2036,15 +1982,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2036
1982
|
SFApproveTokens: string;
|
|
2037
1983
|
SummerfiUnsub: string;
|
|
2038
1984
|
SummerfiUnsubV2: string;
|
|
2039
|
-
AaveV4Supply: string;
|
|
2040
|
-
AaveV4Withdraw: string;
|
|
2041
|
-
AaveV4Borrow: string;
|
|
2042
|
-
AaveV4Payback: string;
|
|
2043
|
-
AaveV4CollateralSwitch: string;
|
|
2044
|
-
AaveV4RefreshPremium: string;
|
|
2045
|
-
AaveV4SetUserManagersWithSig: string;
|
|
2046
|
-
AaveV4DelegateWithdrawWithSig: string;
|
|
2047
|
-
AaveV4DelegateBorrowWithSig: string;
|
|
2048
1985
|
AaveV3DelegateCredit?: undefined;
|
|
2049
1986
|
AaveV3RatioTrigger?: undefined;
|
|
2050
1987
|
GasFeeTakerL2?: undefined;
|
|
@@ -2331,15 +2268,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2331
2268
|
UmbrellaClaimRewards?: undefined;
|
|
2332
2269
|
UmbrellaStake?: undefined;
|
|
2333
2270
|
UmbrellaUnstake?: undefined;
|
|
2334
|
-
AaveV4Supply?: undefined;
|
|
2335
|
-
AaveV4Withdraw?: undefined;
|
|
2336
|
-
AaveV4Borrow?: undefined;
|
|
2337
|
-
AaveV4Payback?: undefined;
|
|
2338
|
-
AaveV4CollateralSwitch?: undefined;
|
|
2339
|
-
AaveV4RefreshPremium?: undefined;
|
|
2340
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
2341
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
2342
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
2343
2271
|
MorphoBlueView?: undefined;
|
|
2344
2272
|
} | {
|
|
2345
2273
|
DFSSell: string;
|
|
@@ -2621,15 +2549,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2621
2549
|
UmbrellaClaimRewards?: undefined;
|
|
2622
2550
|
UmbrellaStake?: undefined;
|
|
2623
2551
|
UmbrellaUnstake?: undefined;
|
|
2624
|
-
AaveV4Supply?: undefined;
|
|
2625
|
-
AaveV4Withdraw?: undefined;
|
|
2626
|
-
AaveV4Borrow?: undefined;
|
|
2627
|
-
AaveV4Payback?: undefined;
|
|
2628
|
-
AaveV4CollateralSwitch?: undefined;
|
|
2629
|
-
AaveV4RefreshPremium?: undefined;
|
|
2630
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
2631
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
2632
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
2633
2552
|
AaveV3DelegateCredit?: undefined;
|
|
2634
2553
|
AaveV3RatioTrigger?: undefined;
|
|
2635
2554
|
} | {
|
|
@@ -2911,15 +2830,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2911
2830
|
UmbrellaClaimRewards?: undefined;
|
|
2912
2831
|
UmbrellaStake?: undefined;
|
|
2913
2832
|
UmbrellaUnstake?: undefined;
|
|
2914
|
-
AaveV4Supply?: undefined;
|
|
2915
|
-
AaveV4Withdraw?: undefined;
|
|
2916
|
-
AaveV4Borrow?: undefined;
|
|
2917
|
-
AaveV4Payback?: undefined;
|
|
2918
|
-
AaveV4CollateralSwitch?: undefined;
|
|
2919
|
-
AaveV4RefreshPremium?: undefined;
|
|
2920
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
2921
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
2922
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
2923
2833
|
AaveV3DelegateCredit?: undefined;
|
|
2924
2834
|
AaveV3RatioTrigger?: undefined;
|
|
2925
2835
|
AaveV3RatioCheck?: undefined;
|
|
@@ -3201,15 +3111,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3201
3111
|
SFApproveTokens?: undefined;
|
|
3202
3112
|
SummerfiUnsub?: undefined;
|
|
3203
3113
|
SummerfiUnsubV2?: undefined;
|
|
3204
|
-
AaveV4Supply?: undefined;
|
|
3205
|
-
AaveV4Withdraw?: undefined;
|
|
3206
|
-
AaveV4Borrow?: undefined;
|
|
3207
|
-
AaveV4Payback?: undefined;
|
|
3208
|
-
AaveV4CollateralSwitch?: undefined;
|
|
3209
|
-
AaveV4RefreshPremium?: undefined;
|
|
3210
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
3211
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
3212
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
3213
3114
|
AaveV3RatioTrigger?: undefined;
|
|
3214
3115
|
GasFeeTakerL2?: undefined;
|
|
3215
3116
|
AaveV3RatioCheck?: undefined;
|
|
@@ -3492,15 +3393,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3492
3393
|
SFApproveTokens?: undefined;
|
|
3493
3394
|
SummerfiUnsub?: undefined;
|
|
3494
3395
|
SummerfiUnsubV2?: undefined;
|
|
3495
|
-
AaveV4Supply?: undefined;
|
|
3496
|
-
AaveV4Withdraw?: undefined;
|
|
3497
|
-
AaveV4Borrow?: undefined;
|
|
3498
|
-
AaveV4Payback?: undefined;
|
|
3499
|
-
AaveV4CollateralSwitch?: undefined;
|
|
3500
|
-
AaveV4RefreshPremium?: undefined;
|
|
3501
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
3502
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
3503
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
3504
3396
|
AaveV3RatioTrigger?: undefined;
|
|
3505
3397
|
GasFeeTakerL2?: undefined;
|
|
3506
3398
|
AaveV3RatioCheck?: undefined;
|
|
@@ -4021,15 +3913,6 @@ declare const _default: {
|
|
|
4021
3913
|
SFApproveTokens: string;
|
|
4022
3914
|
SummerfiUnsub: string;
|
|
4023
3915
|
SummerfiUnsubV2: string;
|
|
4024
|
-
AaveV4Supply: string;
|
|
4025
|
-
AaveV4Withdraw: string;
|
|
4026
|
-
AaveV4Borrow: string;
|
|
4027
|
-
AaveV4Payback: string;
|
|
4028
|
-
AaveV4CollateralSwitch: string;
|
|
4029
|
-
AaveV4RefreshPremium: string;
|
|
4030
|
-
AaveV4SetUserManagersWithSig: string;
|
|
4031
|
-
AaveV4DelegateWithdrawWithSig: string;
|
|
4032
|
-
AaveV4DelegateBorrowWithSig: string;
|
|
4033
3916
|
AaveV3DelegateCredit?: undefined;
|
|
4034
3917
|
AaveV3RatioTrigger?: undefined;
|
|
4035
3918
|
GasFeeTakerL2?: undefined;
|
|
@@ -4316,15 +4199,6 @@ declare const _default: {
|
|
|
4316
4199
|
UmbrellaClaimRewards?: undefined;
|
|
4317
4200
|
UmbrellaStake?: undefined;
|
|
4318
4201
|
UmbrellaUnstake?: undefined;
|
|
4319
|
-
AaveV4Supply?: undefined;
|
|
4320
|
-
AaveV4Withdraw?: undefined;
|
|
4321
|
-
AaveV4Borrow?: undefined;
|
|
4322
|
-
AaveV4Payback?: undefined;
|
|
4323
|
-
AaveV4CollateralSwitch?: undefined;
|
|
4324
|
-
AaveV4RefreshPremium?: undefined;
|
|
4325
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
4326
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
4327
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
4328
4202
|
MorphoBlueView?: undefined;
|
|
4329
4203
|
} | {
|
|
4330
4204
|
DFSSell: string;
|
|
@@ -4606,15 +4480,6 @@ declare const _default: {
|
|
|
4606
4480
|
UmbrellaClaimRewards?: undefined;
|
|
4607
4481
|
UmbrellaStake?: undefined;
|
|
4608
4482
|
UmbrellaUnstake?: undefined;
|
|
4609
|
-
AaveV4Supply?: undefined;
|
|
4610
|
-
AaveV4Withdraw?: undefined;
|
|
4611
|
-
AaveV4Borrow?: undefined;
|
|
4612
|
-
AaveV4Payback?: undefined;
|
|
4613
|
-
AaveV4CollateralSwitch?: undefined;
|
|
4614
|
-
AaveV4RefreshPremium?: undefined;
|
|
4615
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
4616
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
4617
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
4618
4483
|
AaveV3DelegateCredit?: undefined;
|
|
4619
4484
|
AaveV3RatioTrigger?: undefined;
|
|
4620
4485
|
} | {
|
|
@@ -4896,15 +4761,6 @@ declare const _default: {
|
|
|
4896
4761
|
UmbrellaClaimRewards?: undefined;
|
|
4897
4762
|
UmbrellaStake?: undefined;
|
|
4898
4763
|
UmbrellaUnstake?: undefined;
|
|
4899
|
-
AaveV4Supply?: undefined;
|
|
4900
|
-
AaveV4Withdraw?: undefined;
|
|
4901
|
-
AaveV4Borrow?: undefined;
|
|
4902
|
-
AaveV4Payback?: undefined;
|
|
4903
|
-
AaveV4CollateralSwitch?: undefined;
|
|
4904
|
-
AaveV4RefreshPremium?: undefined;
|
|
4905
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
4906
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
4907
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
4908
4764
|
AaveV3DelegateCredit?: undefined;
|
|
4909
4765
|
AaveV3RatioTrigger?: undefined;
|
|
4910
4766
|
AaveV3RatioCheck?: undefined;
|
|
@@ -5186,15 +5042,6 @@ declare const _default: {
|
|
|
5186
5042
|
SFApproveTokens?: undefined;
|
|
5187
5043
|
SummerfiUnsub?: undefined;
|
|
5188
5044
|
SummerfiUnsubV2?: undefined;
|
|
5189
|
-
AaveV4Supply?: undefined;
|
|
5190
|
-
AaveV4Withdraw?: undefined;
|
|
5191
|
-
AaveV4Borrow?: undefined;
|
|
5192
|
-
AaveV4Payback?: undefined;
|
|
5193
|
-
AaveV4CollateralSwitch?: undefined;
|
|
5194
|
-
AaveV4RefreshPremium?: undefined;
|
|
5195
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
5196
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
5197
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
5198
5045
|
AaveV3RatioTrigger?: undefined;
|
|
5199
5046
|
GasFeeTakerL2?: undefined;
|
|
5200
5047
|
AaveV3RatioCheck?: undefined;
|
|
@@ -5477,15 +5324,6 @@ declare const _default: {
|
|
|
5477
5324
|
SFApproveTokens?: undefined;
|
|
5478
5325
|
SummerfiUnsub?: undefined;
|
|
5479
5326
|
SummerfiUnsubV2?: undefined;
|
|
5480
|
-
AaveV4Supply?: undefined;
|
|
5481
|
-
AaveV4Withdraw?: undefined;
|
|
5482
|
-
AaveV4Borrow?: undefined;
|
|
5483
|
-
AaveV4Payback?: undefined;
|
|
5484
|
-
AaveV4CollateralSwitch?: undefined;
|
|
5485
|
-
AaveV4RefreshPremium?: undefined;
|
|
5486
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
5487
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
5488
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
5489
5327
|
AaveV3RatioTrigger?: undefined;
|
|
5490
5328
|
GasFeeTakerL2?: undefined;
|
|
5491
5329
|
AaveV3RatioCheck?: undefined;
|
|
@@ -5769,15 +5607,6 @@ declare const _default: {
|
|
|
5769
5607
|
SFApproveTokens: string;
|
|
5770
5608
|
SummerfiUnsub: string;
|
|
5771
5609
|
SummerfiUnsubV2: string;
|
|
5772
|
-
AaveV4Supply: string;
|
|
5773
|
-
AaveV4Withdraw: string;
|
|
5774
|
-
AaveV4Borrow: string;
|
|
5775
|
-
AaveV4Payback: string;
|
|
5776
|
-
AaveV4CollateralSwitch: string;
|
|
5777
|
-
AaveV4RefreshPremium: string;
|
|
5778
|
-
AaveV4SetUserManagersWithSig: string;
|
|
5779
|
-
AaveV4DelegateWithdrawWithSig: string;
|
|
5780
|
-
AaveV4DelegateBorrowWithSig: string;
|
|
5781
5610
|
AaveV3DelegateCredit?: undefined;
|
|
5782
5611
|
AaveV3RatioTrigger?: undefined;
|
|
5783
5612
|
GasFeeTakerL2?: undefined;
|
|
@@ -6064,15 +5893,6 @@ declare const _default: {
|
|
|
6064
5893
|
UmbrellaClaimRewards?: undefined;
|
|
6065
5894
|
UmbrellaStake?: undefined;
|
|
6066
5895
|
UmbrellaUnstake?: undefined;
|
|
6067
|
-
AaveV4Supply?: undefined;
|
|
6068
|
-
AaveV4Withdraw?: undefined;
|
|
6069
|
-
AaveV4Borrow?: undefined;
|
|
6070
|
-
AaveV4Payback?: undefined;
|
|
6071
|
-
AaveV4CollateralSwitch?: undefined;
|
|
6072
|
-
AaveV4RefreshPremium?: undefined;
|
|
6073
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
6074
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6075
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6076
5896
|
MorphoBlueView?: undefined;
|
|
6077
5897
|
} | {
|
|
6078
5898
|
DFSSell: string;
|
|
@@ -6354,15 +6174,6 @@ declare const _default: {
|
|
|
6354
6174
|
UmbrellaClaimRewards?: undefined;
|
|
6355
6175
|
UmbrellaStake?: undefined;
|
|
6356
6176
|
UmbrellaUnstake?: undefined;
|
|
6357
|
-
AaveV4Supply?: undefined;
|
|
6358
|
-
AaveV4Withdraw?: undefined;
|
|
6359
|
-
AaveV4Borrow?: undefined;
|
|
6360
|
-
AaveV4Payback?: undefined;
|
|
6361
|
-
AaveV4CollateralSwitch?: undefined;
|
|
6362
|
-
AaveV4RefreshPremium?: undefined;
|
|
6363
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
6364
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6365
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6366
6177
|
AaveV3DelegateCredit?: undefined;
|
|
6367
6178
|
AaveV3RatioTrigger?: undefined;
|
|
6368
6179
|
} | {
|
|
@@ -6644,15 +6455,6 @@ declare const _default: {
|
|
|
6644
6455
|
UmbrellaClaimRewards?: undefined;
|
|
6645
6456
|
UmbrellaStake?: undefined;
|
|
6646
6457
|
UmbrellaUnstake?: undefined;
|
|
6647
|
-
AaveV4Supply?: undefined;
|
|
6648
|
-
AaveV4Withdraw?: undefined;
|
|
6649
|
-
AaveV4Borrow?: undefined;
|
|
6650
|
-
AaveV4Payback?: undefined;
|
|
6651
|
-
AaveV4CollateralSwitch?: undefined;
|
|
6652
|
-
AaveV4RefreshPremium?: undefined;
|
|
6653
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
6654
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6655
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6656
6458
|
AaveV3DelegateCredit?: undefined;
|
|
6657
6459
|
AaveV3RatioTrigger?: undefined;
|
|
6658
6460
|
AaveV3RatioCheck?: undefined;
|
|
@@ -6934,15 +6736,6 @@ declare const _default: {
|
|
|
6934
6736
|
SFApproveTokens?: undefined;
|
|
6935
6737
|
SummerfiUnsub?: undefined;
|
|
6936
6738
|
SummerfiUnsubV2?: undefined;
|
|
6937
|
-
AaveV4Supply?: undefined;
|
|
6938
|
-
AaveV4Withdraw?: undefined;
|
|
6939
|
-
AaveV4Borrow?: undefined;
|
|
6940
|
-
AaveV4Payback?: undefined;
|
|
6941
|
-
AaveV4CollateralSwitch?: undefined;
|
|
6942
|
-
AaveV4RefreshPremium?: undefined;
|
|
6943
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
6944
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6945
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6946
6739
|
AaveV3RatioTrigger?: undefined;
|
|
6947
6740
|
GasFeeTakerL2?: undefined;
|
|
6948
6741
|
AaveV3RatioCheck?: undefined;
|
|
@@ -7225,15 +7018,6 @@ declare const _default: {
|
|
|
7225
7018
|
SFApproveTokens?: undefined;
|
|
7226
7019
|
SummerfiUnsub?: undefined;
|
|
7227
7020
|
SummerfiUnsubV2?: undefined;
|
|
7228
|
-
AaveV4Supply?: undefined;
|
|
7229
|
-
AaveV4Withdraw?: undefined;
|
|
7230
|
-
AaveV4Borrow?: undefined;
|
|
7231
|
-
AaveV4Payback?: undefined;
|
|
7232
|
-
AaveV4CollateralSwitch?: undefined;
|
|
7233
|
-
AaveV4RefreshPremium?: undefined;
|
|
7234
|
-
AaveV4SetUserManagersWithSig?: undefined;
|
|
7235
|
-
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
7236
|
-
AaveV4DelegateBorrowWithSig?: undefined;
|
|
7237
7021
|
AaveV3RatioTrigger?: undefined;
|
|
7238
7022
|
GasFeeTakerL2?: undefined;
|
|
7239
7023
|
AaveV3RatioCheck?: undefined;
|
|
@@ -31,6 +31,3 @@ export * from './LiquityV2AdjustRateDebtInFrontTrigger';
|
|
|
31
31
|
export * from './AaveV3QuotePriceRangeTrigger';
|
|
32
32
|
export * from './SparkQuotePriceRangeTrigger';
|
|
33
33
|
export * from './MorphoBluePriceRangeTrigger';
|
|
34
|
-
export * from './AaveV4QuotePriceTrigger';
|
|
35
|
-
export * from './AaveV4QuotePriceRangeTrigger';
|
|
36
|
-
export * from './AaveV4RatioTrigger';
|
|
@@ -31,6 +31,3 @@ export * from './LiquityV2AdjustRateDebtInFrontTrigger';
|
|
|
31
31
|
export * from './AaveV3QuotePriceRangeTrigger';
|
|
32
32
|
export * from './SparkQuotePriceRangeTrigger';
|
|
33
33
|
export * from './MorphoBluePriceRangeTrigger';
|
|
34
|
-
export * from './AaveV4QuotePriceTrigger';
|
|
35
|
-
export * from './AaveV4QuotePriceRangeTrigger';
|
|
36
|
-
export * from './AaveV4RatioTrigger';
|
package/package.json
CHANGED
package/src/Strategy.ts
CHANGED
|
@@ -13,7 +13,7 @@ export class SparkRatioCheckAction extends Action {
|
|
|
13
13
|
* @param targetRatio The ratio user want to be at
|
|
14
14
|
*/
|
|
15
15
|
constructor(ratioState:uint8, targetRatio:uint256) {
|
|
16
|
-
super('SparkRatioCheck', getAddr('
|
|
16
|
+
super('SparkRatioCheck', getAddr('Empty'), ['uint8', 'uint256'], [ratioState, targetRatio]);
|
|
17
17
|
|
|
18
18
|
this.mappableArgs = [
|
|
19
19
|
this.args[0],
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
import { EthAddress, uint256 } from '../../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* SparkTargetRatioCheck - SparkRatioCheckAction - Checks spark ratio for users proxy position and reverts if faulty
|
|
7
|
+
*
|
|
8
|
+
* @category Checkers
|
|
9
|
+
*/
|
|
10
|
+
export class SparkTargetRatioCheck extends Action {
|
|
11
|
+
/**
|
|
12
|
+
* @param targetRatio The ratio user want to be at
|
|
13
|
+
* @param market Address of the market
|
|
14
|
+
*/
|
|
15
|
+
constructor(targetRatio: uint256, market: EthAddress) {
|
|
16
|
+
super('SparkTargetRatioCheck', getAddr('Empty'), ['uint256', 'address'], [targetRatio, market]);
|
|
17
|
+
|
|
18
|
+
this.mappableArgs = [
|
|
19
|
+
this.args[0],
|
|
20
|
+
this.args[1],
|
|
21
|
+
];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -15,4 +15,4 @@ export * from './LiquityV2RatioCheckAction';
|
|
|
15
15
|
export * from './LiquityV2TargetRatioCheckAction';
|
|
16
16
|
export * from './LiquityV2NewInterestRateCheckerAction';
|
|
17
17
|
export * from './FluidRatioCheckAction';
|
|
18
|
-
export * from './
|
|
18
|
+
export * from './SparkTargetRatioCheck';
|