@defisaver/sdk 1.3.24 → 1.3.25
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/aaveV3/AaveV3DelegateCredit.d.ts +1 -1
- package/esm/src/actions/aaveV3/AaveV3DelegateCredit.js +1 -1
- package/esm/src/actions/flashloan/AaveV3FlashLoanAction.d.ts +1 -1
- package/esm/src/actions/flashloan/AaveV3FlashLoanAction.js +1 -1
- package/esm/src/actions/flashloan/AaveV3FlashLoanCarryDebtAction.d.ts +2 -4
- package/esm/src/actions/flashloan/AaveV3FlashLoanCarryDebtAction.js +6 -12
- package/esm/src/actions/flashloan/AaveV3FlashLoanNoFeeAction.d.ts +1 -1
- package/esm/src/actions/flashloan/AaveV3FlashLoanNoFeeAction.js +1 -1
- package/esm/src/addresses.d.ts +8 -8
- package/esm/src/addresses.js +12 -4
- package/esm/src/index.d.ts +32 -32
- package/package.json +1 -1
- package/src/actions/aaveV3/AaveV3DelegateCredit.ts +1 -1
- package/src/actions/flashloan/AaveV3FlashLoanAction.ts +1 -1
- package/src/actions/flashloan/AaveV3FlashLoanCarryDebtAction.ts +7 -13
- package/src/actions/flashloan/AaveV3FlashLoanNoFeeAction.ts +1 -1
- package/src/addresses.ts +12 -4
- package/umd/index.js +23 -21
|
@@ -12,7 +12,7 @@ export declare class AaveV3DelegateCredit extends ActionWithL2 {
|
|
|
12
12
|
* @param amount Amount of tokens to be payed back
|
|
13
13
|
* @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
|
|
14
14
|
* @param assetId The id of the token to be borrowed
|
|
15
|
-
* @param delegatee The
|
|
15
|
+
* @param delegatee The address of the delegatee to be credited
|
|
16
16
|
*/
|
|
17
17
|
constructor(useOnDefaultMarket: boolean, market: EthAddress, amount: uint256, rateMode: uint8, assetId: uint16, delegatee: EthAddress);
|
|
18
18
|
encodeInputs(): string;
|
|
@@ -12,7 +12,7 @@ export class AaveV3DelegateCredit extends ActionWithL2 {
|
|
|
12
12
|
* @param amount Amount of tokens to be payed back
|
|
13
13
|
* @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
|
|
14
14
|
* @param assetId The id of the token to be borrowed
|
|
15
|
-
* @param delegatee The
|
|
15
|
+
* @param delegatee The address of the delegatee to be credited
|
|
16
16
|
*/
|
|
17
17
|
constructor(useOnDefaultMarket, market, amount, rateMode, assetId, delegatee) {
|
|
18
18
|
super('AaveV3DelegateCredit', getAddr('Empty'), ['uint256', 'address', 'uint16', 'uint8', 'bool', 'address'], [amount, delegatee, assetId, rateMode, useOnDefaultMarket, market]);
|
|
@@ -9,8 +9,8 @@ import { FlashLoanId } from './FlashLoanId';
|
|
|
9
9
|
export declare class AaveV3FlashLoanAction extends ActionWithL2 implements FlashLoanId {
|
|
10
10
|
flashLoanId: number;
|
|
11
11
|
/**
|
|
12
|
-
* @param loanAmounts
|
|
13
12
|
* @param tokens
|
|
13
|
+
* @param loanAmounts
|
|
14
14
|
* @param modes
|
|
15
15
|
* @param loanPayer
|
|
16
16
|
* @param flParamGetterAddr
|
|
@@ -7,12 +7,10 @@ import { EthAddress, uint256, bytes } from '../../types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class AaveV3FlashLoanCarryDebtAction extends ActionWithL2 {
|
|
9
9
|
/**
|
|
10
|
-
* @param loanAmounts
|
|
11
10
|
* @param tokens
|
|
12
|
-
* @param
|
|
13
|
-
* @param loanPayer
|
|
11
|
+
* @param loanAmounts
|
|
14
12
|
* @param flParamGetterAddr
|
|
15
13
|
* @param flParamGetterData
|
|
16
14
|
*/
|
|
17
|
-
constructor(tokens: Array<EthAddress>, loanAmounts: Array<uint256>,
|
|
15
|
+
constructor(tokens: Array<EthAddress>, loanAmounts: Array<uint256>, flParamGetterAddr?: EthAddress, flParamGetterData?: bytes);
|
|
18
16
|
}
|
|
@@ -7,22 +7,16 @@ import { getAddr } from '../../addresses';
|
|
|
7
7
|
*/
|
|
8
8
|
export class AaveV3FlashLoanCarryDebtAction extends ActionWithL2 {
|
|
9
9
|
/**
|
|
10
|
-
* @param loanAmounts
|
|
11
10
|
* @param tokens
|
|
12
|
-
* @param
|
|
13
|
-
* @param loanPayer
|
|
11
|
+
* @param loanAmounts
|
|
14
12
|
* @param flParamGetterAddr
|
|
15
13
|
* @param flParamGetterData
|
|
16
14
|
*/
|
|
17
|
-
constructor(tokens, loanAmounts,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
throw new Error('Arrays must be of the same length');
|
|
15
|
+
constructor(tokens, loanAmounts, flParamGetterAddr = getAddr('Empty'), flParamGetterData = []) {
|
|
16
|
+
if (tokens.length !== loanAmounts.length) {
|
|
17
|
+
throw new Error('Tokens and loan amounts must be of the same length');
|
|
21
18
|
}
|
|
22
|
-
modes.
|
|
23
|
-
|
|
24
|
-
throw new Error('Invalid borrow mode set');
|
|
25
|
-
}
|
|
26
|
-
});
|
|
19
|
+
const modes = Array(tokens.length).fill(2); // always use variable borrow rate
|
|
20
|
+
super('FLAaveV3CarryDebt', getAddr('FLAaveV3CarryDebt'), ['address[]', 'uint256[]', 'uint256[]', 'address', 'address', 'bytes', 'bytes'], [tokens, loanAmounts, modes, getAddr('Empty'), flParamGetterAddr, flParamGetterData, []]);
|
|
27
21
|
}
|
|
28
22
|
}
|
|
@@ -7,8 +7,8 @@ import { EthAddress, uint256, bytes } from '../../types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class AaveV3FlashLoanNoFeeAction extends ActionWithL2 {
|
|
9
9
|
/**
|
|
10
|
-
* @param loanAmounts
|
|
11
10
|
* @param tokens
|
|
11
|
+
* @param loanAmounts
|
|
12
12
|
* @param modes
|
|
13
13
|
* @param loanPayer
|
|
14
14
|
* @param flParamGetterAddr
|
package/esm/src/addresses.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export declare const actionAddresses: {
|
|
|
72
72
|
AaveV3ATokenPayback: string;
|
|
73
73
|
AaveV3View: string;
|
|
74
74
|
AaveV3DelegateWithSig: string;
|
|
75
|
+
AaveV3DelegateCredit: string;
|
|
75
76
|
GhoClaimAAVE: string;
|
|
76
77
|
GhoUnstake: string;
|
|
77
78
|
GhoStake: string;
|
|
@@ -287,7 +288,6 @@ export declare const actionAddresses: {
|
|
|
287
288
|
AaveV4DelegateWithdrawWithSig: string;
|
|
288
289
|
AaveV4DelegateBorrowWithSig: string;
|
|
289
290
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
290
|
-
AaveV3DelegateCredit?: undefined;
|
|
291
291
|
AaveV3RatioTrigger?: undefined;
|
|
292
292
|
GasFeeTakerL2?: undefined;
|
|
293
293
|
AaveV3RatioCheck?: undefined;
|
|
@@ -328,6 +328,7 @@ export declare const actionAddresses: {
|
|
|
328
328
|
FLAaveV3: string;
|
|
329
329
|
FLBalancer: string;
|
|
330
330
|
FLAction: string;
|
|
331
|
+
FLAaveV3CarryDebt: string;
|
|
331
332
|
AaveV3RatioTrigger: string;
|
|
332
333
|
GasFeeTakerL2: string;
|
|
333
334
|
AaveV3RatioCheck: string;
|
|
@@ -426,7 +427,6 @@ export declare const actionAddresses: {
|
|
|
426
427
|
CompGetDebt?: undefined;
|
|
427
428
|
CompCollateralSwitch?: undefined;
|
|
428
429
|
FLAaveV2?: undefined;
|
|
429
|
-
FLAaveV3CarryDebt?: undefined;
|
|
430
430
|
FLDyDx?: undefined;
|
|
431
431
|
FLMaker?: undefined;
|
|
432
432
|
FLSpark?: undefined;
|
|
@@ -616,6 +616,7 @@ export declare const actionAddresses: {
|
|
|
616
616
|
AaveV3Withdraw: string;
|
|
617
617
|
AaveV3ClaimRewards: string;
|
|
618
618
|
AaveV3DelegateWithSig: string;
|
|
619
|
+
AaveV3DelegateCredit: string;
|
|
619
620
|
CompV3Allow: string;
|
|
620
621
|
CompV3Borrow: string;
|
|
621
622
|
CompV3Claim: string;
|
|
@@ -629,6 +630,7 @@ export declare const actionAddresses: {
|
|
|
629
630
|
FLUniV3: string;
|
|
630
631
|
FLAction: string;
|
|
631
632
|
FLMorphoBlue: string;
|
|
633
|
+
FLAaveV3CarryDebt: string;
|
|
632
634
|
GasFeeTakerL2: string;
|
|
633
635
|
AaveV3RatioCheck: string;
|
|
634
636
|
UniCollectV3: string;
|
|
@@ -752,7 +754,6 @@ export declare const actionAddresses: {
|
|
|
752
754
|
CompGetDebt?: undefined;
|
|
753
755
|
CompCollateralSwitch?: undefined;
|
|
754
756
|
FLAaveV2?: undefined;
|
|
755
|
-
FLAaveV3CarryDebt?: undefined;
|
|
756
757
|
FLDyDx?: undefined;
|
|
757
758
|
FLMaker?: undefined;
|
|
758
759
|
FLSpark?: undefined;
|
|
@@ -874,7 +875,6 @@ export declare const actionAddresses: {
|
|
|
874
875
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
875
876
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
876
877
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
877
|
-
AaveV3DelegateCredit?: undefined;
|
|
878
878
|
AaveV3RatioTrigger?: undefined;
|
|
879
879
|
} | {
|
|
880
880
|
DFSSell: string;
|
|
@@ -902,6 +902,7 @@ export declare const actionAddresses: {
|
|
|
902
902
|
FLUniV3: string;
|
|
903
903
|
FLAction: string;
|
|
904
904
|
FLMorphoBlue: string;
|
|
905
|
+
FLAaveV3CarryDebt: string;
|
|
905
906
|
AaveV3Withdraw: string;
|
|
906
907
|
AaveV3SwapBorrowRateMode: string;
|
|
907
908
|
AaveV3Supply: string;
|
|
@@ -913,6 +914,7 @@ export declare const actionAddresses: {
|
|
|
913
914
|
AaveV3ATokenPayback: string;
|
|
914
915
|
AaveV3View: string;
|
|
915
916
|
AaveV3DelegateWithSig: string;
|
|
917
|
+
AaveV3DelegateCredit: string;
|
|
916
918
|
CompV3Allow: string;
|
|
917
919
|
CompV3Borrow: string;
|
|
918
920
|
CompV3Claim: string;
|
|
@@ -1027,7 +1029,6 @@ export declare const actionAddresses: {
|
|
|
1027
1029
|
CompCollateralSwitch?: undefined;
|
|
1028
1030
|
FLAaveV2?: undefined;
|
|
1029
1031
|
FLAaveV3NoFee?: undefined;
|
|
1030
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1031
1032
|
FLDyDx?: undefined;
|
|
1032
1033
|
FLMaker?: undefined;
|
|
1033
1034
|
FLSpark?: undefined;
|
|
@@ -1165,7 +1166,6 @@ export declare const actionAddresses: {
|
|
|
1165
1166
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1166
1167
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1167
1168
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1168
|
-
AaveV3DelegateCredit?: undefined;
|
|
1169
1169
|
AaveV3RatioTrigger?: undefined;
|
|
1170
1170
|
AaveV3RatioCheck?: undefined;
|
|
1171
1171
|
} | {
|
|
@@ -1187,6 +1187,7 @@ export declare const actionAddresses: {
|
|
|
1187
1187
|
TokenizedVaultAdapter: string;
|
|
1188
1188
|
FLAction: string;
|
|
1189
1189
|
FLAaveV3: string;
|
|
1190
|
+
FLAaveV3CarryDebt: string;
|
|
1190
1191
|
AaveV3Withdraw: string;
|
|
1191
1192
|
AaveV3Supply: string;
|
|
1192
1193
|
AaveV3SetEMode: string;
|
|
@@ -1283,7 +1284,6 @@ export declare const actionAddresses: {
|
|
|
1283
1284
|
CompCollateralSwitch?: undefined;
|
|
1284
1285
|
FLAaveV2?: undefined;
|
|
1285
1286
|
FLAaveV3NoFee?: undefined;
|
|
1286
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1287
1287
|
FLDyDx?: undefined;
|
|
1288
1288
|
FLMaker?: undefined;
|
|
1289
1289
|
FLBalancer?: undefined;
|
|
@@ -1479,6 +1479,7 @@ export declare const actionAddresses: {
|
|
|
1479
1479
|
TokenizedVaultAdapter: string;
|
|
1480
1480
|
FLAction: string;
|
|
1481
1481
|
FLAaveV3: string;
|
|
1482
|
+
FLAaveV3CarryDebt: string;
|
|
1482
1483
|
AaveV3Withdraw: string;
|
|
1483
1484
|
AaveV3Supply: string;
|
|
1484
1485
|
AaveV3SetEMode: string;
|
|
@@ -1588,7 +1589,6 @@ export declare const actionAddresses: {
|
|
|
1588
1589
|
CompCollateralSwitch?: undefined;
|
|
1589
1590
|
FLAaveV2?: undefined;
|
|
1590
1591
|
FLAaveV3NoFee?: undefined;
|
|
1591
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1592
1592
|
FLDyDx?: undefined;
|
|
1593
1593
|
FLMaker?: undefined;
|
|
1594
1594
|
FLBalancer?: undefined;
|
package/esm/src/addresses.js
CHANGED
|
@@ -80,6 +80,7 @@ export const actionAddresses = {
|
|
|
80
80
|
AaveV3ATokenPayback: '0xDe5c012cd1878D86E91309593764895a3adb380E',
|
|
81
81
|
AaveV3View: '0x0CB0170F3413e54405F64d3C23BA3A1D8Bb96D99',
|
|
82
82
|
AaveV3DelegateWithSig: '0x9253E22Ce4f0AeE541301CF8cC29843f9083a1F4',
|
|
83
|
+
AaveV3DelegateCredit: '0xa7ab39edCb0a1b742DCd908EC6CFe178d8322580',
|
|
83
84
|
GhoClaimAAVE: '0xA53060d822cB31AFd5B26D899130a14E8Efc5917',
|
|
84
85
|
GhoUnstake: '0x3fD02e65B4fb12381946D03815Ff3FF8Ebe2fC63',
|
|
85
86
|
GhoStake: '0x6cfBFd04702f3b7d4fc52D457eDf91D6E4A081bb',
|
|
@@ -125,7 +126,7 @@ export const actionAddresses = {
|
|
|
125
126
|
// flashloan
|
|
126
127
|
FLAaveV2: '0xEA55576383C96A69B3E8beD51Ce0d0294001bc5F',
|
|
127
128
|
FLAaveV3NoFee: '0xd9D8e68717Ce24CCbf162868aaad7E38d81b05d1',
|
|
128
|
-
FLAaveV3CarryDebt: '
|
|
129
|
+
FLAaveV3CarryDebt: '0x8225D3833D88BD1420E7d25e69A00F1A27aB9143',
|
|
129
130
|
FLAaveV3: '0x5021d70aB7D757D61E0230c472ff89b8B2B8705e',
|
|
130
131
|
FLDyDx: '0x08AC78B418fCB0DDF1096533856A757C28d430d7',
|
|
131
132
|
FLMaker: '0x0f8C3368cADF78167F5355D746Ed7b2A826A6e3b',
|
|
@@ -363,12 +364,13 @@ export const actionAddresses = {
|
|
|
363
364
|
AaveV3Withdraw: '0xf19d045f6cFc04A5Ee5E0e8837b565b9f276e3F7',
|
|
364
365
|
AaveV3ClaimRewards: '0xBE8e8cea67085F869C1C0040fD52F9F3115E962e',
|
|
365
366
|
AaveV3DelegateWithSig: '0x8dd05d32fB05E8c3e8F37294e6f2d13e5823a712',
|
|
366
|
-
AaveV3DelegateCredit: '
|
|
367
|
+
AaveV3DelegateCredit: '0x11E7B19195a76D2E5A4863cf6cbE8030443c729A',
|
|
367
368
|
// flashloan
|
|
368
369
|
FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
|
|
369
370
|
FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
|
|
370
371
|
FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
|
|
371
372
|
FLAction: '0xB57b666dAB46229e2b80113b5187F6DCD91AB159',
|
|
373
|
+
FLAaveV3CarryDebt: '0x4ab7a392aF23215A9049A64F3B2d44726aD2D6fe',
|
|
372
374
|
AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
|
|
373
375
|
GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
|
|
374
376
|
AaveV3RatioCheck: '0x7A36779a7b5F1128B28932604057d5b63361297c',
|
|
@@ -425,6 +427,7 @@ export const actionAddresses = {
|
|
|
425
427
|
AaveV3Withdraw: '0xbf492F869DdB1A18BB4F41b6c3059D9f882Fe7ff',
|
|
426
428
|
AaveV3ClaimRewards: '0x3a4d72Ed2a47a409a82ba61f0fca1C749Ea8aB66',
|
|
427
429
|
AaveV3DelegateWithSig: '0xFF2CE05250d1880f0f45ea8fB453292CABA42F12',
|
|
430
|
+
AaveV3DelegateCredit: '0x8C13353e3DA67d3171D6F73751E3caa791a3AACD',
|
|
428
431
|
// CompV3
|
|
429
432
|
CompV3Allow: '0x0380E8e13CdE0499c720999930CaA07A5744887c',
|
|
430
433
|
CompV3Borrow: '0x1C0eCc794fDA7c29aBd19E0b2F7dA166C237d616',
|
|
@@ -440,6 +443,7 @@ export const actionAddresses = {
|
|
|
440
443
|
FLUniV3: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
441
444
|
FLAction: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
442
445
|
FLMorphoBlue: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
446
|
+
FLAaveV3CarryDebt: '0xEc6Db90d9EFa7cD75d5b716896A497e9d9103D5b',
|
|
443
447
|
GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
|
|
444
448
|
AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
|
|
445
449
|
// uniswap V3
|
|
@@ -518,6 +522,7 @@ export const actionAddresses = {
|
|
|
518
522
|
FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
519
523
|
FLAction: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
520
524
|
FLMorphoBlue: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
525
|
+
FLAaveV3CarryDebt: '0x760e97862DD8652e5BB8b4D8ad9C99a74BBe7E7A',
|
|
521
526
|
// AaveV3
|
|
522
527
|
AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
|
|
523
528
|
AaveV3SwapBorrowRateMode: '0x9d1D7A0dD5e82cCe9CC131eC0C807B0F543be70e',
|
|
@@ -530,6 +535,7 @@ export const actionAddresses = {
|
|
|
530
535
|
AaveV3ATokenPayback: '0x3D57875885e3cEe9E56Cb65D21789893B6e67815',
|
|
531
536
|
AaveV3View: '0xf140B2904beb743C2f17e0b5f766074212a7e243',
|
|
532
537
|
AaveV3DelegateWithSig: '0x9e295AFaC75E7843b88a563D119FD953EDf441c2',
|
|
538
|
+
AaveV3DelegateCredit: '0xF85aD63c513A76a1dc05B2AddC4777F17336c7e9',
|
|
533
539
|
// CompV3
|
|
534
540
|
CompV3Allow: '0x3Fe56B85BBcD759459408Bd8434c37bac93e26bF',
|
|
535
541
|
CompV3Borrow: '0x74346bf868Dc9201922A7F7DD26917F7BF5F0f3b',
|
|
@@ -590,6 +596,7 @@ export const actionAddresses = {
|
|
|
590
596
|
// Flashloan
|
|
591
597
|
FLAction: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
592
598
|
FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
599
|
+
FLAaveV3CarryDebt: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
593
600
|
// AaveV3
|
|
594
601
|
AaveV3Withdraw: '0xae56474aBe3C271579b513b6668864e39f65Ae15',
|
|
595
602
|
AaveV3Supply: '0x7dFF34190d0307fC234fc7E8C152C9715083eB02',
|
|
@@ -601,7 +608,7 @@ export const actionAddresses = {
|
|
|
601
608
|
AaveV3ATokenPayback: '0xedfc68e2874b0afc0963e18ae4d68522aec7f97d',
|
|
602
609
|
AaveV3View: '0xc9d6efa6e08b66a5cdc516bcd5807c2fa69e0f2a',
|
|
603
610
|
AaveV3DelegateWithSig: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
|
|
604
|
-
AaveV3DelegateCredit: '
|
|
611
|
+
AaveV3DelegateCredit: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
605
612
|
},
|
|
606
613
|
[NETWORKS.plasma.chainId]: {
|
|
607
614
|
// Basic
|
|
@@ -624,6 +631,7 @@ export const actionAddresses = {
|
|
|
624
631
|
// Flashloan
|
|
625
632
|
FLAction: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7',
|
|
626
633
|
FLAaveV3: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7',
|
|
634
|
+
FLAaveV3CarryDebt: '0x6Dc6C0e38fBd066b89Ba7E6f711B4288246891b3',
|
|
627
635
|
// AaveV3
|
|
628
636
|
AaveV3Withdraw: '0x4839d021A24820e57C31D386d430e2e82694F73B',
|
|
629
637
|
AaveV3Supply: '0x9D95de57631DD8Ac071892843DA67FEe52EA3962',
|
|
@@ -635,7 +643,7 @@ export const actionAddresses = {
|
|
|
635
643
|
AaveV3ATokenPayback: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
|
|
636
644
|
AaveV3View: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
|
|
637
645
|
AaveV3DelegateWithSig: '0x49658E0CF3883c338397C7257619B280dF581057',
|
|
638
|
-
AaveV3DelegateCredit: '
|
|
646
|
+
AaveV3DelegateCredit: '0x6F53fa9e7d1323d24515a51AB72Da3cf1E9883Bc',
|
|
639
647
|
// Fluid
|
|
640
648
|
FluidVaultT1Open: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
|
641
649
|
FluidVaultT1Adjust: '0xD37d4DB98E67305ef92f34886B25500500E04Aed',
|
package/esm/src/index.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ declare const actionAddressesAllChains: {
|
|
|
83
83
|
AaveV3ATokenPayback: string;
|
|
84
84
|
AaveV3View: string;
|
|
85
85
|
AaveV3DelegateWithSig: string;
|
|
86
|
+
AaveV3DelegateCredit: string;
|
|
86
87
|
GhoClaimAAVE: string;
|
|
87
88
|
GhoUnstake: string;
|
|
88
89
|
GhoStake: string;
|
|
@@ -298,7 +299,6 @@ declare const actionAddressesAllChains: {
|
|
|
298
299
|
AaveV4DelegateWithdrawWithSig: string;
|
|
299
300
|
AaveV4DelegateBorrowWithSig: string;
|
|
300
301
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
301
|
-
AaveV3DelegateCredit?: undefined;
|
|
302
302
|
AaveV3RatioTrigger?: undefined;
|
|
303
303
|
GasFeeTakerL2?: undefined;
|
|
304
304
|
AaveV3RatioCheck?: undefined;
|
|
@@ -339,6 +339,7 @@ declare const actionAddressesAllChains: {
|
|
|
339
339
|
FLAaveV3: string;
|
|
340
340
|
FLBalancer: string;
|
|
341
341
|
FLAction: string;
|
|
342
|
+
FLAaveV3CarryDebt: string;
|
|
342
343
|
AaveV3RatioTrigger: string;
|
|
343
344
|
GasFeeTakerL2: string;
|
|
344
345
|
AaveV3RatioCheck: string;
|
|
@@ -437,7 +438,6 @@ declare const actionAddressesAllChains: {
|
|
|
437
438
|
CompGetDebt?: undefined;
|
|
438
439
|
CompCollateralSwitch?: undefined;
|
|
439
440
|
FLAaveV2?: undefined;
|
|
440
|
-
FLAaveV3CarryDebt?: undefined;
|
|
441
441
|
FLDyDx?: undefined;
|
|
442
442
|
FLMaker?: undefined;
|
|
443
443
|
FLSpark?: undefined;
|
|
@@ -627,6 +627,7 @@ declare const actionAddressesAllChains: {
|
|
|
627
627
|
AaveV3Withdraw: string;
|
|
628
628
|
AaveV3ClaimRewards: string;
|
|
629
629
|
AaveV3DelegateWithSig: string;
|
|
630
|
+
AaveV3DelegateCredit: string;
|
|
630
631
|
CompV3Allow: string;
|
|
631
632
|
CompV3Borrow: string;
|
|
632
633
|
CompV3Claim: string;
|
|
@@ -640,6 +641,7 @@ declare const actionAddressesAllChains: {
|
|
|
640
641
|
FLUniV3: string;
|
|
641
642
|
FLAction: string;
|
|
642
643
|
FLMorphoBlue: string;
|
|
644
|
+
FLAaveV3CarryDebt: string;
|
|
643
645
|
GasFeeTakerL2: string;
|
|
644
646
|
AaveV3RatioCheck: string;
|
|
645
647
|
UniCollectV3: string;
|
|
@@ -763,7 +765,6 @@ declare const actionAddressesAllChains: {
|
|
|
763
765
|
CompGetDebt?: undefined;
|
|
764
766
|
CompCollateralSwitch?: undefined;
|
|
765
767
|
FLAaveV2?: undefined;
|
|
766
|
-
FLAaveV3CarryDebt?: undefined;
|
|
767
768
|
FLDyDx?: undefined;
|
|
768
769
|
FLMaker?: undefined;
|
|
769
770
|
FLSpark?: undefined;
|
|
@@ -885,7 +886,6 @@ declare const actionAddressesAllChains: {
|
|
|
885
886
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
886
887
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
887
888
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
888
|
-
AaveV3DelegateCredit?: undefined;
|
|
889
889
|
AaveV3RatioTrigger?: undefined;
|
|
890
890
|
} | {
|
|
891
891
|
DFSSell: string;
|
|
@@ -913,6 +913,7 @@ declare const actionAddressesAllChains: {
|
|
|
913
913
|
FLUniV3: string;
|
|
914
914
|
FLAction: string;
|
|
915
915
|
FLMorphoBlue: string;
|
|
916
|
+
FLAaveV3CarryDebt: string;
|
|
916
917
|
AaveV3Withdraw: string;
|
|
917
918
|
AaveV3SwapBorrowRateMode: string;
|
|
918
919
|
AaveV3Supply: string;
|
|
@@ -924,6 +925,7 @@ declare const actionAddressesAllChains: {
|
|
|
924
925
|
AaveV3ATokenPayback: string;
|
|
925
926
|
AaveV3View: string;
|
|
926
927
|
AaveV3DelegateWithSig: string;
|
|
928
|
+
AaveV3DelegateCredit: string;
|
|
927
929
|
CompV3Allow: string;
|
|
928
930
|
CompV3Borrow: string;
|
|
929
931
|
CompV3Claim: string;
|
|
@@ -1038,7 +1040,6 @@ declare const actionAddressesAllChains: {
|
|
|
1038
1040
|
CompCollateralSwitch?: undefined;
|
|
1039
1041
|
FLAaveV2?: undefined;
|
|
1040
1042
|
FLAaveV3NoFee?: undefined;
|
|
1041
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1042
1043
|
FLDyDx?: undefined;
|
|
1043
1044
|
FLMaker?: undefined;
|
|
1044
1045
|
FLSpark?: undefined;
|
|
@@ -1176,7 +1177,6 @@ declare const actionAddressesAllChains: {
|
|
|
1176
1177
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1177
1178
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1178
1179
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1179
|
-
AaveV3DelegateCredit?: undefined;
|
|
1180
1180
|
AaveV3RatioTrigger?: undefined;
|
|
1181
1181
|
AaveV3RatioCheck?: undefined;
|
|
1182
1182
|
} | {
|
|
@@ -1198,6 +1198,7 @@ declare const actionAddressesAllChains: {
|
|
|
1198
1198
|
TokenizedVaultAdapter: string;
|
|
1199
1199
|
FLAction: string;
|
|
1200
1200
|
FLAaveV3: string;
|
|
1201
|
+
FLAaveV3CarryDebt: string;
|
|
1201
1202
|
AaveV3Withdraw: string;
|
|
1202
1203
|
AaveV3Supply: string;
|
|
1203
1204
|
AaveV3SetEMode: string;
|
|
@@ -1294,7 +1295,6 @@ declare const actionAddressesAllChains: {
|
|
|
1294
1295
|
CompCollateralSwitch?: undefined;
|
|
1295
1296
|
FLAaveV2?: undefined;
|
|
1296
1297
|
FLAaveV3NoFee?: undefined;
|
|
1297
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1298
1298
|
FLDyDx?: undefined;
|
|
1299
1299
|
FLMaker?: undefined;
|
|
1300
1300
|
FLBalancer?: undefined;
|
|
@@ -1490,6 +1490,7 @@ declare const actionAddressesAllChains: {
|
|
|
1490
1490
|
TokenizedVaultAdapter: string;
|
|
1491
1491
|
FLAction: string;
|
|
1492
1492
|
FLAaveV3: string;
|
|
1493
|
+
FLAaveV3CarryDebt: string;
|
|
1493
1494
|
AaveV3Withdraw: string;
|
|
1494
1495
|
AaveV3Supply: string;
|
|
1495
1496
|
AaveV3SetEMode: string;
|
|
@@ -1599,7 +1600,6 @@ declare const actionAddressesAllChains: {
|
|
|
1599
1600
|
CompCollateralSwitch?: undefined;
|
|
1600
1601
|
FLAaveV2?: undefined;
|
|
1601
1602
|
FLAaveV3NoFee?: undefined;
|
|
1602
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1603
1603
|
FLDyDx?: undefined;
|
|
1604
1604
|
FLMaker?: undefined;
|
|
1605
1605
|
FLBalancer?: undefined;
|
|
@@ -1837,6 +1837,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1837
1837
|
AaveV3ATokenPayback: string;
|
|
1838
1838
|
AaveV3View: string;
|
|
1839
1839
|
AaveV3DelegateWithSig: string;
|
|
1840
|
+
AaveV3DelegateCredit: string;
|
|
1840
1841
|
GhoClaimAAVE: string;
|
|
1841
1842
|
GhoUnstake: string;
|
|
1842
1843
|
GhoStake: string;
|
|
@@ -2052,7 +2053,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2052
2053
|
AaveV4DelegateWithdrawWithSig: string;
|
|
2053
2054
|
AaveV4DelegateBorrowWithSig: string;
|
|
2054
2055
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
2055
|
-
AaveV3DelegateCredit?: undefined;
|
|
2056
2056
|
AaveV3RatioTrigger?: undefined;
|
|
2057
2057
|
GasFeeTakerL2?: undefined;
|
|
2058
2058
|
AaveV3RatioCheck?: undefined;
|
|
@@ -2093,6 +2093,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2093
2093
|
FLAaveV3: string;
|
|
2094
2094
|
FLBalancer: string;
|
|
2095
2095
|
FLAction: string;
|
|
2096
|
+
FLAaveV3CarryDebt: string;
|
|
2096
2097
|
AaveV3RatioTrigger: string;
|
|
2097
2098
|
GasFeeTakerL2: string;
|
|
2098
2099
|
AaveV3RatioCheck: string;
|
|
@@ -2191,7 +2192,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2191
2192
|
CompGetDebt?: undefined;
|
|
2192
2193
|
CompCollateralSwitch?: undefined;
|
|
2193
2194
|
FLAaveV2?: undefined;
|
|
2194
|
-
FLAaveV3CarryDebt?: undefined;
|
|
2195
2195
|
FLDyDx?: undefined;
|
|
2196
2196
|
FLMaker?: undefined;
|
|
2197
2197
|
FLSpark?: undefined;
|
|
@@ -2381,6 +2381,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2381
2381
|
AaveV3Withdraw: string;
|
|
2382
2382
|
AaveV3ClaimRewards: string;
|
|
2383
2383
|
AaveV3DelegateWithSig: string;
|
|
2384
|
+
AaveV3DelegateCredit: string;
|
|
2384
2385
|
CompV3Allow: string;
|
|
2385
2386
|
CompV3Borrow: string;
|
|
2386
2387
|
CompV3Claim: string;
|
|
@@ -2394,6 +2395,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2394
2395
|
FLUniV3: string;
|
|
2395
2396
|
FLAction: string;
|
|
2396
2397
|
FLMorphoBlue: string;
|
|
2398
|
+
FLAaveV3CarryDebt: string;
|
|
2397
2399
|
GasFeeTakerL2: string;
|
|
2398
2400
|
AaveV3RatioCheck: string;
|
|
2399
2401
|
UniCollectV3: string;
|
|
@@ -2517,7 +2519,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2517
2519
|
CompGetDebt?: undefined;
|
|
2518
2520
|
CompCollateralSwitch?: undefined;
|
|
2519
2521
|
FLAaveV2?: undefined;
|
|
2520
|
-
FLAaveV3CarryDebt?: undefined;
|
|
2521
2522
|
FLDyDx?: undefined;
|
|
2522
2523
|
FLMaker?: undefined;
|
|
2523
2524
|
FLSpark?: undefined;
|
|
@@ -2639,7 +2640,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2639
2640
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
2640
2641
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
2641
2642
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
2642
|
-
AaveV3DelegateCredit?: undefined;
|
|
2643
2643
|
AaveV3RatioTrigger?: undefined;
|
|
2644
2644
|
} | {
|
|
2645
2645
|
DFSSell: string;
|
|
@@ -2667,6 +2667,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2667
2667
|
FLUniV3: string;
|
|
2668
2668
|
FLAction: string;
|
|
2669
2669
|
FLMorphoBlue: string;
|
|
2670
|
+
FLAaveV3CarryDebt: string;
|
|
2670
2671
|
AaveV3Withdraw: string;
|
|
2671
2672
|
AaveV3SwapBorrowRateMode: string;
|
|
2672
2673
|
AaveV3Supply: string;
|
|
@@ -2678,6 +2679,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2678
2679
|
AaveV3ATokenPayback: string;
|
|
2679
2680
|
AaveV3View: string;
|
|
2680
2681
|
AaveV3DelegateWithSig: string;
|
|
2682
|
+
AaveV3DelegateCredit: string;
|
|
2681
2683
|
CompV3Allow: string;
|
|
2682
2684
|
CompV3Borrow: string;
|
|
2683
2685
|
CompV3Claim: string;
|
|
@@ -2792,7 +2794,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2792
2794
|
CompCollateralSwitch?: undefined;
|
|
2793
2795
|
FLAaveV2?: undefined;
|
|
2794
2796
|
FLAaveV3NoFee?: undefined;
|
|
2795
|
-
FLAaveV3CarryDebt?: undefined;
|
|
2796
2797
|
FLDyDx?: undefined;
|
|
2797
2798
|
FLMaker?: undefined;
|
|
2798
2799
|
FLSpark?: undefined;
|
|
@@ -2930,7 +2931,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2930
2931
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
2931
2932
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
2932
2933
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
2933
|
-
AaveV3DelegateCredit?: undefined;
|
|
2934
2934
|
AaveV3RatioTrigger?: undefined;
|
|
2935
2935
|
AaveV3RatioCheck?: undefined;
|
|
2936
2936
|
} | {
|
|
@@ -2952,6 +2952,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2952
2952
|
TokenizedVaultAdapter: string;
|
|
2953
2953
|
FLAction: string;
|
|
2954
2954
|
FLAaveV3: string;
|
|
2955
|
+
FLAaveV3CarryDebt: string;
|
|
2955
2956
|
AaveV3Withdraw: string;
|
|
2956
2957
|
AaveV3Supply: string;
|
|
2957
2958
|
AaveV3SetEMode: string;
|
|
@@ -3048,7 +3049,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3048
3049
|
CompCollateralSwitch?: undefined;
|
|
3049
3050
|
FLAaveV2?: undefined;
|
|
3050
3051
|
FLAaveV3NoFee?: undefined;
|
|
3051
|
-
FLAaveV3CarryDebt?: undefined;
|
|
3052
3052
|
FLDyDx?: undefined;
|
|
3053
3053
|
FLMaker?: undefined;
|
|
3054
3054
|
FLBalancer?: undefined;
|
|
@@ -3244,6 +3244,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3244
3244
|
TokenizedVaultAdapter: string;
|
|
3245
3245
|
FLAction: string;
|
|
3246
3246
|
FLAaveV3: string;
|
|
3247
|
+
FLAaveV3CarryDebt: string;
|
|
3247
3248
|
AaveV3Withdraw: string;
|
|
3248
3249
|
AaveV3Supply: string;
|
|
3249
3250
|
AaveV3SetEMode: string;
|
|
@@ -3353,7 +3354,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3353
3354
|
CompCollateralSwitch?: undefined;
|
|
3354
3355
|
FLAaveV2?: undefined;
|
|
3355
3356
|
FLAaveV3NoFee?: undefined;
|
|
3356
|
-
FLAaveV3CarryDebt?: undefined;
|
|
3357
3357
|
FLDyDx?: undefined;
|
|
3358
3358
|
FLMaker?: undefined;
|
|
3359
3359
|
FLBalancer?: undefined;
|
|
@@ -3828,6 +3828,7 @@ declare const _default: {
|
|
|
3828
3828
|
AaveV3ATokenPayback: string;
|
|
3829
3829
|
AaveV3View: string;
|
|
3830
3830
|
AaveV3DelegateWithSig: string;
|
|
3831
|
+
AaveV3DelegateCredit: string;
|
|
3831
3832
|
GhoClaimAAVE: string;
|
|
3832
3833
|
GhoUnstake: string;
|
|
3833
3834
|
GhoStake: string;
|
|
@@ -4043,7 +4044,6 @@ declare const _default: {
|
|
|
4043
4044
|
AaveV4DelegateWithdrawWithSig: string;
|
|
4044
4045
|
AaveV4DelegateBorrowWithSig: string;
|
|
4045
4046
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
4046
|
-
AaveV3DelegateCredit?: undefined;
|
|
4047
4047
|
AaveV3RatioTrigger?: undefined;
|
|
4048
4048
|
GasFeeTakerL2?: undefined;
|
|
4049
4049
|
AaveV3RatioCheck?: undefined;
|
|
@@ -4084,6 +4084,7 @@ declare const _default: {
|
|
|
4084
4084
|
FLAaveV3: string;
|
|
4085
4085
|
FLBalancer: string;
|
|
4086
4086
|
FLAction: string;
|
|
4087
|
+
FLAaveV3CarryDebt: string;
|
|
4087
4088
|
AaveV3RatioTrigger: string;
|
|
4088
4089
|
GasFeeTakerL2: string;
|
|
4089
4090
|
AaveV3RatioCheck: string;
|
|
@@ -4182,7 +4183,6 @@ declare const _default: {
|
|
|
4182
4183
|
CompGetDebt?: undefined;
|
|
4183
4184
|
CompCollateralSwitch?: undefined;
|
|
4184
4185
|
FLAaveV2?: undefined;
|
|
4185
|
-
FLAaveV3CarryDebt?: undefined;
|
|
4186
4186
|
FLDyDx?: undefined;
|
|
4187
4187
|
FLMaker?: undefined;
|
|
4188
4188
|
FLSpark?: undefined;
|
|
@@ -4372,6 +4372,7 @@ declare const _default: {
|
|
|
4372
4372
|
AaveV3Withdraw: string;
|
|
4373
4373
|
AaveV3ClaimRewards: string;
|
|
4374
4374
|
AaveV3DelegateWithSig: string;
|
|
4375
|
+
AaveV3DelegateCredit: string;
|
|
4375
4376
|
CompV3Allow: string;
|
|
4376
4377
|
CompV3Borrow: string;
|
|
4377
4378
|
CompV3Claim: string;
|
|
@@ -4385,6 +4386,7 @@ declare const _default: {
|
|
|
4385
4386
|
FLUniV3: string;
|
|
4386
4387
|
FLAction: string;
|
|
4387
4388
|
FLMorphoBlue: string;
|
|
4389
|
+
FLAaveV3CarryDebt: string;
|
|
4388
4390
|
GasFeeTakerL2: string;
|
|
4389
4391
|
AaveV3RatioCheck: string;
|
|
4390
4392
|
UniCollectV3: string;
|
|
@@ -4508,7 +4510,6 @@ declare const _default: {
|
|
|
4508
4510
|
CompGetDebt?: undefined;
|
|
4509
4511
|
CompCollateralSwitch?: undefined;
|
|
4510
4512
|
FLAaveV2?: undefined;
|
|
4511
|
-
FLAaveV3CarryDebt?: undefined;
|
|
4512
4513
|
FLDyDx?: undefined;
|
|
4513
4514
|
FLMaker?: undefined;
|
|
4514
4515
|
FLSpark?: undefined;
|
|
@@ -4630,7 +4631,6 @@ declare const _default: {
|
|
|
4630
4631
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
4631
4632
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
4632
4633
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
4633
|
-
AaveV3DelegateCredit?: undefined;
|
|
4634
4634
|
AaveV3RatioTrigger?: undefined;
|
|
4635
4635
|
} | {
|
|
4636
4636
|
DFSSell: string;
|
|
@@ -4658,6 +4658,7 @@ declare const _default: {
|
|
|
4658
4658
|
FLUniV3: string;
|
|
4659
4659
|
FLAction: string;
|
|
4660
4660
|
FLMorphoBlue: string;
|
|
4661
|
+
FLAaveV3CarryDebt: string;
|
|
4661
4662
|
AaveV3Withdraw: string;
|
|
4662
4663
|
AaveV3SwapBorrowRateMode: string;
|
|
4663
4664
|
AaveV3Supply: string;
|
|
@@ -4669,6 +4670,7 @@ declare const _default: {
|
|
|
4669
4670
|
AaveV3ATokenPayback: string;
|
|
4670
4671
|
AaveV3View: string;
|
|
4671
4672
|
AaveV3DelegateWithSig: string;
|
|
4673
|
+
AaveV3DelegateCredit: string;
|
|
4672
4674
|
CompV3Allow: string;
|
|
4673
4675
|
CompV3Borrow: string;
|
|
4674
4676
|
CompV3Claim: string;
|
|
@@ -4783,7 +4785,6 @@ declare const _default: {
|
|
|
4783
4785
|
CompCollateralSwitch?: undefined;
|
|
4784
4786
|
FLAaveV2?: undefined;
|
|
4785
4787
|
FLAaveV3NoFee?: undefined;
|
|
4786
|
-
FLAaveV3CarryDebt?: undefined;
|
|
4787
4788
|
FLDyDx?: undefined;
|
|
4788
4789
|
FLMaker?: undefined;
|
|
4789
4790
|
FLSpark?: undefined;
|
|
@@ -4921,7 +4922,6 @@ declare const _default: {
|
|
|
4921
4922
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
4922
4923
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
4923
4924
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
4924
|
-
AaveV3DelegateCredit?: undefined;
|
|
4925
4925
|
AaveV3RatioTrigger?: undefined;
|
|
4926
4926
|
AaveV3RatioCheck?: undefined;
|
|
4927
4927
|
} | {
|
|
@@ -4943,6 +4943,7 @@ declare const _default: {
|
|
|
4943
4943
|
TokenizedVaultAdapter: string;
|
|
4944
4944
|
FLAction: string;
|
|
4945
4945
|
FLAaveV3: string;
|
|
4946
|
+
FLAaveV3CarryDebt: string;
|
|
4946
4947
|
AaveV3Withdraw: string;
|
|
4947
4948
|
AaveV3Supply: string;
|
|
4948
4949
|
AaveV3SetEMode: string;
|
|
@@ -5039,7 +5040,6 @@ declare const _default: {
|
|
|
5039
5040
|
CompCollateralSwitch?: undefined;
|
|
5040
5041
|
FLAaveV2?: undefined;
|
|
5041
5042
|
FLAaveV3NoFee?: undefined;
|
|
5042
|
-
FLAaveV3CarryDebt?: undefined;
|
|
5043
5043
|
FLDyDx?: undefined;
|
|
5044
5044
|
FLMaker?: undefined;
|
|
5045
5045
|
FLBalancer?: undefined;
|
|
@@ -5235,6 +5235,7 @@ declare const _default: {
|
|
|
5235
5235
|
TokenizedVaultAdapter: string;
|
|
5236
5236
|
FLAction: string;
|
|
5237
5237
|
FLAaveV3: string;
|
|
5238
|
+
FLAaveV3CarryDebt: string;
|
|
5238
5239
|
AaveV3Withdraw: string;
|
|
5239
5240
|
AaveV3Supply: string;
|
|
5240
5241
|
AaveV3SetEMode: string;
|
|
@@ -5344,7 +5345,6 @@ declare const _default: {
|
|
|
5344
5345
|
CompCollateralSwitch?: undefined;
|
|
5345
5346
|
FLAaveV2?: undefined;
|
|
5346
5347
|
FLAaveV3NoFee?: undefined;
|
|
5347
|
-
FLAaveV3CarryDebt?: undefined;
|
|
5348
5348
|
FLDyDx?: undefined;
|
|
5349
5349
|
FLMaker?: undefined;
|
|
5350
5350
|
FLBalancer?: undefined;
|
|
@@ -5582,6 +5582,7 @@ declare const _default: {
|
|
|
5582
5582
|
AaveV3ATokenPayback: string;
|
|
5583
5583
|
AaveV3View: string;
|
|
5584
5584
|
AaveV3DelegateWithSig: string;
|
|
5585
|
+
AaveV3DelegateCredit: string;
|
|
5585
5586
|
GhoClaimAAVE: string;
|
|
5586
5587
|
GhoUnstake: string;
|
|
5587
5588
|
GhoStake: string;
|
|
@@ -5797,7 +5798,6 @@ declare const _default: {
|
|
|
5797
5798
|
AaveV4DelegateWithdrawWithSig: string;
|
|
5798
5799
|
AaveV4DelegateBorrowWithSig: string;
|
|
5799
5800
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
5800
|
-
AaveV3DelegateCredit?: undefined;
|
|
5801
5801
|
AaveV3RatioTrigger?: undefined;
|
|
5802
5802
|
GasFeeTakerL2?: undefined;
|
|
5803
5803
|
AaveV3RatioCheck?: undefined;
|
|
@@ -5838,6 +5838,7 @@ declare const _default: {
|
|
|
5838
5838
|
FLAaveV3: string;
|
|
5839
5839
|
FLBalancer: string;
|
|
5840
5840
|
FLAction: string;
|
|
5841
|
+
FLAaveV3CarryDebt: string;
|
|
5841
5842
|
AaveV3RatioTrigger: string;
|
|
5842
5843
|
GasFeeTakerL2: string;
|
|
5843
5844
|
AaveV3RatioCheck: string;
|
|
@@ -5936,7 +5937,6 @@ declare const _default: {
|
|
|
5936
5937
|
CompGetDebt?: undefined;
|
|
5937
5938
|
CompCollateralSwitch?: undefined;
|
|
5938
5939
|
FLAaveV2?: undefined;
|
|
5939
|
-
FLAaveV3CarryDebt?: undefined;
|
|
5940
5940
|
FLDyDx?: undefined;
|
|
5941
5941
|
FLMaker?: undefined;
|
|
5942
5942
|
FLSpark?: undefined;
|
|
@@ -6126,6 +6126,7 @@ declare const _default: {
|
|
|
6126
6126
|
AaveV3Withdraw: string;
|
|
6127
6127
|
AaveV3ClaimRewards: string;
|
|
6128
6128
|
AaveV3DelegateWithSig: string;
|
|
6129
|
+
AaveV3DelegateCredit: string;
|
|
6129
6130
|
CompV3Allow: string;
|
|
6130
6131
|
CompV3Borrow: string;
|
|
6131
6132
|
CompV3Claim: string;
|
|
@@ -6139,6 +6140,7 @@ declare const _default: {
|
|
|
6139
6140
|
FLUniV3: string;
|
|
6140
6141
|
FLAction: string;
|
|
6141
6142
|
FLMorphoBlue: string;
|
|
6143
|
+
FLAaveV3CarryDebt: string;
|
|
6142
6144
|
GasFeeTakerL2: string;
|
|
6143
6145
|
AaveV3RatioCheck: string;
|
|
6144
6146
|
UniCollectV3: string;
|
|
@@ -6262,7 +6264,6 @@ declare const _default: {
|
|
|
6262
6264
|
CompGetDebt?: undefined;
|
|
6263
6265
|
CompCollateralSwitch?: undefined;
|
|
6264
6266
|
FLAaveV2?: undefined;
|
|
6265
|
-
FLAaveV3CarryDebt?: undefined;
|
|
6266
6267
|
FLDyDx?: undefined;
|
|
6267
6268
|
FLMaker?: undefined;
|
|
6268
6269
|
FLSpark?: undefined;
|
|
@@ -6384,7 +6385,6 @@ declare const _default: {
|
|
|
6384
6385
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6385
6386
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6386
6387
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
6387
|
-
AaveV3DelegateCredit?: undefined;
|
|
6388
6388
|
AaveV3RatioTrigger?: undefined;
|
|
6389
6389
|
} | {
|
|
6390
6390
|
DFSSell: string;
|
|
@@ -6412,6 +6412,7 @@ declare const _default: {
|
|
|
6412
6412
|
FLUniV3: string;
|
|
6413
6413
|
FLAction: string;
|
|
6414
6414
|
FLMorphoBlue: string;
|
|
6415
|
+
FLAaveV3CarryDebt: string;
|
|
6415
6416
|
AaveV3Withdraw: string;
|
|
6416
6417
|
AaveV3SwapBorrowRateMode: string;
|
|
6417
6418
|
AaveV3Supply: string;
|
|
@@ -6423,6 +6424,7 @@ declare const _default: {
|
|
|
6423
6424
|
AaveV3ATokenPayback: string;
|
|
6424
6425
|
AaveV3View: string;
|
|
6425
6426
|
AaveV3DelegateWithSig: string;
|
|
6427
|
+
AaveV3DelegateCredit: string;
|
|
6426
6428
|
CompV3Allow: string;
|
|
6427
6429
|
CompV3Borrow: string;
|
|
6428
6430
|
CompV3Claim: string;
|
|
@@ -6537,7 +6539,6 @@ declare const _default: {
|
|
|
6537
6539
|
CompCollateralSwitch?: undefined;
|
|
6538
6540
|
FLAaveV2?: undefined;
|
|
6539
6541
|
FLAaveV3NoFee?: undefined;
|
|
6540
|
-
FLAaveV3CarryDebt?: undefined;
|
|
6541
6542
|
FLDyDx?: undefined;
|
|
6542
6543
|
FLMaker?: undefined;
|
|
6543
6544
|
FLSpark?: undefined;
|
|
@@ -6675,7 +6676,6 @@ declare const _default: {
|
|
|
6675
6676
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6676
6677
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6677
6678
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
6678
|
-
AaveV3DelegateCredit?: undefined;
|
|
6679
6679
|
AaveV3RatioTrigger?: undefined;
|
|
6680
6680
|
AaveV3RatioCheck?: undefined;
|
|
6681
6681
|
} | {
|
|
@@ -6697,6 +6697,7 @@ declare const _default: {
|
|
|
6697
6697
|
TokenizedVaultAdapter: string;
|
|
6698
6698
|
FLAction: string;
|
|
6699
6699
|
FLAaveV3: string;
|
|
6700
|
+
FLAaveV3CarryDebt: string;
|
|
6700
6701
|
AaveV3Withdraw: string;
|
|
6701
6702
|
AaveV3Supply: string;
|
|
6702
6703
|
AaveV3SetEMode: string;
|
|
@@ -6793,7 +6794,6 @@ declare const _default: {
|
|
|
6793
6794
|
CompCollateralSwitch?: undefined;
|
|
6794
6795
|
FLAaveV2?: undefined;
|
|
6795
6796
|
FLAaveV3NoFee?: undefined;
|
|
6796
|
-
FLAaveV3CarryDebt?: undefined;
|
|
6797
6797
|
FLDyDx?: undefined;
|
|
6798
6798
|
FLMaker?: undefined;
|
|
6799
6799
|
FLBalancer?: undefined;
|
|
@@ -6989,6 +6989,7 @@ declare const _default: {
|
|
|
6989
6989
|
TokenizedVaultAdapter: string;
|
|
6990
6990
|
FLAction: string;
|
|
6991
6991
|
FLAaveV3: string;
|
|
6992
|
+
FLAaveV3CarryDebt: string;
|
|
6992
6993
|
AaveV3Withdraw: string;
|
|
6993
6994
|
AaveV3Supply: string;
|
|
6994
6995
|
AaveV3SetEMode: string;
|
|
@@ -7098,7 +7099,6 @@ declare const _default: {
|
|
|
7098
7099
|
CompCollateralSwitch?: undefined;
|
|
7099
7100
|
FLAaveV2?: undefined;
|
|
7100
7101
|
FLAaveV3NoFee?: undefined;
|
|
7101
|
-
FLAaveV3CarryDebt?: undefined;
|
|
7102
7102
|
FLDyDx?: undefined;
|
|
7103
7103
|
FLMaker?: undefined;
|
|
7104
7104
|
FLBalancer?: undefined;
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ export class AaveV3DelegateCredit extends ActionWithL2 {
|
|
|
16
16
|
* @param amount Amount of tokens to be payed back
|
|
17
17
|
* @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
|
|
18
18
|
* @param assetId The id of the token to be borrowed
|
|
19
|
-
* @param delegatee The
|
|
19
|
+
* @param delegatee The address of the delegatee to be credited
|
|
20
20
|
*/
|
|
21
21
|
constructor(useOnDefaultMarket: boolean, market:EthAddress, amount:uint256, rateMode:uint8, assetId:uint16, delegatee:EthAddress) {
|
|
22
22
|
super('AaveV3DelegateCredit', getAddr('Empty'),
|
|
@@ -9,27 +9,21 @@ import { EthAddress, uint256, bytes } from '../../types';
|
|
|
9
9
|
*/
|
|
10
10
|
export class AaveV3FlashLoanCarryDebtAction extends ActionWithL2 {
|
|
11
11
|
/**
|
|
12
|
-
* @param loanAmounts
|
|
13
12
|
* @param tokens
|
|
14
|
-
* @param
|
|
15
|
-
* @param loanPayer
|
|
13
|
+
* @param loanAmounts
|
|
16
14
|
* @param flParamGetterAddr
|
|
17
15
|
* @param flParamGetterData
|
|
18
16
|
*/
|
|
19
|
-
constructor(tokens:Array<EthAddress>, loanAmounts:Array<uint256>,
|
|
17
|
+
constructor(tokens:Array<EthAddress>, loanAmounts:Array<uint256>, flParamGetterAddr:EthAddress = getAddr('Empty'), flParamGetterData:bytes = []) {
|
|
18
|
+
if (tokens.length !== loanAmounts.length) {
|
|
19
|
+
throw new Error('Tokens and loan amounts must be of the same length');
|
|
20
|
+
}
|
|
21
|
+
const modes: Array<uint256> = Array(tokens.length).fill(2); // always use variable borrow rate
|
|
20
22
|
super(
|
|
21
23
|
'FLAaveV3CarryDebt',
|
|
22
24
|
getAddr('FLAaveV3CarryDebt'),
|
|
23
25
|
['address[]', 'uint256[]', 'uint256[]', 'address', 'address', 'bytes', 'bytes'],
|
|
24
|
-
[tokens, loanAmounts, modes,
|
|
26
|
+
[tokens, loanAmounts, modes, getAddr('Empty'), flParamGetterAddr, flParamGetterData, []],
|
|
25
27
|
);
|
|
26
|
-
if (tokens.length !== modes.length || tokens.length !== loanAmounts.length) {
|
|
27
|
-
throw new Error('Arrays must be of the same length');
|
|
28
|
-
}
|
|
29
|
-
modes.forEach((mode) => {
|
|
30
|
-
if (mode.toString() !== '1' && mode.toString() !== '2') {
|
|
31
|
-
throw new Error('Invalid borrow mode set');
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
28
|
}
|
|
35
29
|
}
|
|
@@ -9,8 +9,8 @@ import { EthAddress, uint256, bytes } from '../../types';
|
|
|
9
9
|
*/
|
|
10
10
|
export class AaveV3FlashLoanNoFeeAction extends ActionWithL2 {
|
|
11
11
|
/**
|
|
12
|
-
* @param loanAmounts
|
|
13
12
|
* @param tokens
|
|
13
|
+
* @param loanAmounts
|
|
14
14
|
* @param modes
|
|
15
15
|
* @param loanPayer
|
|
16
16
|
* @param flParamGetterAddr
|
package/src/addresses.ts
CHANGED
|
@@ -95,6 +95,7 @@ export const actionAddresses = {
|
|
|
95
95
|
AaveV3ATokenPayback: '0xDe5c012cd1878D86E91309593764895a3adb380E',
|
|
96
96
|
AaveV3View: '0x0CB0170F3413e54405F64d3C23BA3A1D8Bb96D99',
|
|
97
97
|
AaveV3DelegateWithSig: '0x9253E22Ce4f0AeE541301CF8cC29843f9083a1F4',
|
|
98
|
+
AaveV3DelegateCredit: '0xa7ab39edCb0a1b742DCd908EC6CFe178d8322580',
|
|
98
99
|
GhoClaimAAVE: '0xA53060d822cB31AFd5B26D899130a14E8Efc5917',
|
|
99
100
|
GhoUnstake: '0x3fD02e65B4fb12381946D03815Ff3FF8Ebe2fC63',
|
|
100
101
|
GhoStake: '0x6cfBFd04702f3b7d4fc52D457eDf91D6E4A081bb',
|
|
@@ -147,7 +148,7 @@ export const actionAddresses = {
|
|
|
147
148
|
// flashloan
|
|
148
149
|
FLAaveV2: '0xEA55576383C96A69B3E8beD51Ce0d0294001bc5F',
|
|
149
150
|
FLAaveV3NoFee: '0xd9D8e68717Ce24CCbf162868aaad7E38d81b05d1',
|
|
150
|
-
FLAaveV3CarryDebt: '
|
|
151
|
+
FLAaveV3CarryDebt: '0x8225D3833D88BD1420E7d25e69A00F1A27aB9143',
|
|
151
152
|
FLAaveV3: '0x5021d70aB7D757D61E0230c472ff89b8B2B8705e',
|
|
152
153
|
FLDyDx: '0x08AC78B418fCB0DDF1096533856A757C28d430d7',
|
|
153
154
|
FLMaker: '0x0f8C3368cADF78167F5355D746Ed7b2A826A6e3b',
|
|
@@ -438,13 +439,14 @@ export const actionAddresses = {
|
|
|
438
439
|
AaveV3Withdraw: '0xf19d045f6cFc04A5Ee5E0e8837b565b9f276e3F7',
|
|
439
440
|
AaveV3ClaimRewards: '0xBE8e8cea67085F869C1C0040fD52F9F3115E962e',
|
|
440
441
|
AaveV3DelegateWithSig: '0x8dd05d32fB05E8c3e8F37294e6f2d13e5823a712',
|
|
441
|
-
AaveV3DelegateCredit: '
|
|
442
|
+
AaveV3DelegateCredit: '0x11E7B19195a76D2E5A4863cf6cbE8030443c729A',
|
|
442
443
|
|
|
443
444
|
// flashloan
|
|
444
445
|
FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
|
|
445
446
|
FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
|
|
446
447
|
FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
|
|
447
448
|
FLAction: '0xB57b666dAB46229e2b80113b5187F6DCD91AB159',
|
|
449
|
+
FLAaveV3CarryDebt: '0x4ab7a392aF23215A9049A64F3B2d44726aD2D6fe',
|
|
448
450
|
|
|
449
451
|
AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
|
|
450
452
|
GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
|
|
@@ -508,6 +510,7 @@ export const actionAddresses = {
|
|
|
508
510
|
AaveV3Withdraw: '0xbf492F869DdB1A18BB4F41b6c3059D9f882Fe7ff',
|
|
509
511
|
AaveV3ClaimRewards: '0x3a4d72Ed2a47a409a82ba61f0fca1C749Ea8aB66',
|
|
510
512
|
AaveV3DelegateWithSig: '0xFF2CE05250d1880f0f45ea8fB453292CABA42F12',
|
|
513
|
+
AaveV3DelegateCredit: '0x8C13353e3DA67d3171D6F73751E3caa791a3AACD',
|
|
511
514
|
|
|
512
515
|
// CompV3
|
|
513
516
|
CompV3Allow: '0x0380E8e13CdE0499c720999930CaA07A5744887c',
|
|
@@ -525,6 +528,7 @@ export const actionAddresses = {
|
|
|
525
528
|
FLUniV3: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3', // @DEV - incorrect, same as FLAction
|
|
526
529
|
FLAction: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
527
530
|
FLMorphoBlue: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
531
|
+
FLAaveV3CarryDebt: '0xEc6Db90d9EFa7cD75d5b716896A497e9d9103D5b',
|
|
528
532
|
|
|
529
533
|
GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
|
|
530
534
|
AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
|
|
@@ -616,6 +620,7 @@ export const actionAddresses = {
|
|
|
616
620
|
FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
617
621
|
FLAction: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52', // fix temp
|
|
618
622
|
FLMorphoBlue: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
623
|
+
FLAaveV3CarryDebt: '0x760e97862DD8652e5BB8b4D8ad9C99a74BBe7E7A',
|
|
619
624
|
|
|
620
625
|
// AaveV3
|
|
621
626
|
AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
|
|
@@ -630,6 +635,7 @@ export const actionAddresses = {
|
|
|
630
635
|
AaveV3ATokenPayback: '0x3D57875885e3cEe9E56Cb65D21789893B6e67815',
|
|
631
636
|
AaveV3View: '0xf140B2904beb743C2f17e0b5f766074212a7e243',
|
|
632
637
|
AaveV3DelegateWithSig: '0x9e295AFaC75E7843b88a563D119FD953EDf441c2',
|
|
638
|
+
AaveV3DelegateCredit: '0xF85aD63c513A76a1dc05B2AddC4777F17336c7e9',
|
|
633
639
|
|
|
634
640
|
// CompV3
|
|
635
641
|
CompV3Allow: '0x3Fe56B85BBcD759459408Bd8434c37bac93e26bF',
|
|
@@ -700,6 +706,7 @@ export const actionAddresses = {
|
|
|
700
706
|
// Flashloan
|
|
701
707
|
FLAction: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD', // fix temp
|
|
702
708
|
FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
709
|
+
FLAaveV3CarryDebt: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
703
710
|
|
|
704
711
|
// AaveV3
|
|
705
712
|
AaveV3Withdraw: '0xae56474aBe3C271579b513b6668864e39f65Ae15',
|
|
@@ -712,7 +719,7 @@ export const actionAddresses = {
|
|
|
712
719
|
AaveV3ATokenPayback: '0xedfc68e2874b0afc0963e18ae4d68522aec7f97d',
|
|
713
720
|
AaveV3View: '0xc9d6efa6e08b66a5cdc516bcd5807c2fa69e0f2a',
|
|
714
721
|
AaveV3DelegateWithSig: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
|
|
715
|
-
AaveV3DelegateCredit: '
|
|
722
|
+
AaveV3DelegateCredit: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
716
723
|
},
|
|
717
724
|
[NETWORKS.plasma.chainId]: {
|
|
718
725
|
// Basic
|
|
@@ -736,6 +743,7 @@ export const actionAddresses = {
|
|
|
736
743
|
// Flashloan
|
|
737
744
|
FLAction: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7', // fix temp
|
|
738
745
|
FLAaveV3: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7',
|
|
746
|
+
FLAaveV3CarryDebt: '0x6Dc6C0e38fBd066b89Ba7E6f711B4288246891b3',
|
|
739
747
|
|
|
740
748
|
// AaveV3
|
|
741
749
|
AaveV3Withdraw: '0x4839d021A24820e57C31D386d430e2e82694F73B',
|
|
@@ -748,7 +756,7 @@ export const actionAddresses = {
|
|
|
748
756
|
AaveV3ATokenPayback: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
|
|
749
757
|
AaveV3View: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
|
|
750
758
|
AaveV3DelegateWithSig: '0x49658E0CF3883c338397C7257619B280dF581057',
|
|
751
|
-
AaveV3DelegateCredit: '
|
|
759
|
+
AaveV3DelegateCredit: '0x6F53fa9e7d1323d24515a51AB72Da3cf1E9883Bc',
|
|
752
760
|
|
|
753
761
|
// Fluid
|
|
754
762
|
FluidVaultT1Open: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
package/umd/index.js
CHANGED
|
@@ -1393,6 +1393,7 @@ var actionAddresses = {
|
|
|
1393
1393
|
AaveV3ATokenPayback: '0xDe5c012cd1878D86E91309593764895a3adb380E',
|
|
1394
1394
|
AaveV3View: '0x0CB0170F3413e54405F64d3C23BA3A1D8Bb96D99',
|
|
1395
1395
|
AaveV3DelegateWithSig: '0x9253E22Ce4f0AeE541301CF8cC29843f9083a1F4',
|
|
1396
|
+
AaveV3DelegateCredit: '0xa7ab39edCb0a1b742DCd908EC6CFe178d8322580',
|
|
1396
1397
|
GhoClaimAAVE: '0xA53060d822cB31AFd5B26D899130a14E8Efc5917',
|
|
1397
1398
|
GhoUnstake: '0x3fD02e65B4fb12381946D03815Ff3FF8Ebe2fC63',
|
|
1398
1399
|
GhoStake: '0x6cfBFd04702f3b7d4fc52D457eDf91D6E4A081bb',
|
|
@@ -1438,7 +1439,7 @@ var actionAddresses = {
|
|
|
1438
1439
|
// flashloan
|
|
1439
1440
|
FLAaveV2: '0xEA55576383C96A69B3E8beD51Ce0d0294001bc5F',
|
|
1440
1441
|
FLAaveV3NoFee: '0xd9D8e68717Ce24CCbf162868aaad7E38d81b05d1',
|
|
1441
|
-
FLAaveV3CarryDebt: '
|
|
1442
|
+
FLAaveV3CarryDebt: '0x8225D3833D88BD1420E7d25e69A00F1A27aB9143',
|
|
1442
1443
|
FLAaveV3: '0x5021d70aB7D757D61E0230c472ff89b8B2B8705e',
|
|
1443
1444
|
FLDyDx: '0x08AC78B418fCB0DDF1096533856A757C28d430d7',
|
|
1444
1445
|
FLMaker: '0x0f8C3368cADF78167F5355D746Ed7b2A826A6e3b',
|
|
@@ -1676,12 +1677,13 @@ var actionAddresses = {
|
|
|
1676
1677
|
AaveV3Withdraw: '0xf19d045f6cFc04A5Ee5E0e8837b565b9f276e3F7',
|
|
1677
1678
|
AaveV3ClaimRewards: '0xBE8e8cea67085F869C1C0040fD52F9F3115E962e',
|
|
1678
1679
|
AaveV3DelegateWithSig: '0x8dd05d32fB05E8c3e8F37294e6f2d13e5823a712',
|
|
1679
|
-
AaveV3DelegateCredit: '
|
|
1680
|
+
AaveV3DelegateCredit: '0x11E7B19195a76D2E5A4863cf6cbE8030443c729A',
|
|
1680
1681
|
// flashloan
|
|
1681
1682
|
FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
|
|
1682
1683
|
FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
|
|
1683
1684
|
FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
|
|
1684
1685
|
FLAction: '0xB57b666dAB46229e2b80113b5187F6DCD91AB159',
|
|
1686
|
+
FLAaveV3CarryDebt: '0x4ab7a392aF23215A9049A64F3B2d44726aD2D6fe',
|
|
1685
1687
|
AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
|
|
1686
1688
|
GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
|
|
1687
1689
|
AaveV3RatioCheck: '0x7A36779a7b5F1128B28932604057d5b63361297c',
|
|
@@ -1739,6 +1741,7 @@ var actionAddresses = {
|
|
|
1739
1741
|
AaveV3Withdraw: '0xbf492F869DdB1A18BB4F41b6c3059D9f882Fe7ff',
|
|
1740
1742
|
AaveV3ClaimRewards: '0x3a4d72Ed2a47a409a82ba61f0fca1C749Ea8aB66',
|
|
1741
1743
|
AaveV3DelegateWithSig: '0xFF2CE05250d1880f0f45ea8fB453292CABA42F12',
|
|
1744
|
+
AaveV3DelegateCredit: '0x8C13353e3DA67d3171D6F73751E3caa791a3AACD',
|
|
1742
1745
|
// CompV3
|
|
1743
1746
|
CompV3Allow: '0x0380E8e13CdE0499c720999930CaA07A5744887c',
|
|
1744
1747
|
CompV3Borrow: '0x1C0eCc794fDA7c29aBd19E0b2F7dA166C237d616',
|
|
@@ -1755,6 +1758,7 @@ var actionAddresses = {
|
|
|
1755
1758
|
// @DEV - incorrect, same as FLAction
|
|
1756
1759
|
FLAction: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
1757
1760
|
FLMorphoBlue: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
1761
|
+
FLAaveV3CarryDebt: '0xEc6Db90d9EFa7cD75d5b716896A497e9d9103D5b',
|
|
1758
1762
|
GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
|
|
1759
1763
|
AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
|
|
1760
1764
|
// uniswap V3
|
|
@@ -1835,6 +1839,7 @@ var actionAddresses = {
|
|
|
1835
1839
|
FLAction: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
1836
1840
|
// fix temp
|
|
1837
1841
|
FLMorphoBlue: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
1842
|
+
FLAaveV3CarryDebt: '0x760e97862DD8652e5BB8b4D8ad9C99a74BBe7E7A',
|
|
1838
1843
|
// AaveV3
|
|
1839
1844
|
AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
|
|
1840
1845
|
AaveV3SwapBorrowRateMode: '0x9d1D7A0dD5e82cCe9CC131eC0C807B0F543be70e',
|
|
@@ -1847,6 +1852,7 @@ var actionAddresses = {
|
|
|
1847
1852
|
AaveV3ATokenPayback: '0x3D57875885e3cEe9E56Cb65D21789893B6e67815',
|
|
1848
1853
|
AaveV3View: '0xf140B2904beb743C2f17e0b5f766074212a7e243',
|
|
1849
1854
|
AaveV3DelegateWithSig: '0x9e295AFaC75E7843b88a563D119FD953EDf441c2',
|
|
1855
|
+
AaveV3DelegateCredit: '0xF85aD63c513A76a1dc05B2AddC4777F17336c7e9',
|
|
1850
1856
|
// CompV3
|
|
1851
1857
|
CompV3Allow: '0x3Fe56B85BBcD759459408Bd8434c37bac93e26bF',
|
|
1852
1858
|
CompV3Borrow: '0x74346bf868Dc9201922A7F7DD26917F7BF5F0f3b',
|
|
@@ -1909,6 +1915,7 @@ var actionAddresses = {
|
|
|
1909
1915
|
FLAction: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
1910
1916
|
// fix temp
|
|
1911
1917
|
FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
1918
|
+
FLAaveV3CarryDebt: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
1912
1919
|
// AaveV3
|
|
1913
1920
|
AaveV3Withdraw: '0xae56474aBe3C271579b513b6668864e39f65Ae15',
|
|
1914
1921
|
AaveV3Supply: '0x7dFF34190d0307fC234fc7E8C152C9715083eB02',
|
|
@@ -1920,7 +1927,7 @@ var actionAddresses = {
|
|
|
1920
1927
|
AaveV3ATokenPayback: '0xedfc68e2874b0afc0963e18ae4d68522aec7f97d',
|
|
1921
1928
|
AaveV3View: '0xc9d6efa6e08b66a5cdc516bcd5807c2fa69e0f2a',
|
|
1922
1929
|
AaveV3DelegateWithSig: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
|
|
1923
|
-
AaveV3DelegateCredit: '
|
|
1930
|
+
AaveV3DelegateCredit: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce'
|
|
1924
1931
|
},
|
|
1925
1932
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.plasma.chainId]: {
|
|
1926
1933
|
// Basic
|
|
@@ -1944,6 +1951,7 @@ var actionAddresses = {
|
|
|
1944
1951
|
FLAction: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7',
|
|
1945
1952
|
// fix temp
|
|
1946
1953
|
FLAaveV3: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7',
|
|
1954
|
+
FLAaveV3CarryDebt: '0x6Dc6C0e38fBd066b89Ba7E6f711B4288246891b3',
|
|
1947
1955
|
// AaveV3
|
|
1948
1956
|
AaveV3Withdraw: '0x4839d021A24820e57C31D386d430e2e82694F73B',
|
|
1949
1957
|
AaveV3Supply: '0x9D95de57631DD8Ac071892843DA67FEe52EA3962',
|
|
@@ -1955,7 +1963,7 @@ var actionAddresses = {
|
|
|
1955
1963
|
AaveV3ATokenPayback: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
|
|
1956
1964
|
AaveV3View: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
|
|
1957
1965
|
AaveV3DelegateWithSig: '0x49658E0CF3883c338397C7257619B280dF581057',
|
|
1958
|
-
AaveV3DelegateCredit: '
|
|
1966
|
+
AaveV3DelegateCredit: '0x6F53fa9e7d1323d24515a51AB72Da3cf1E9883Bc',
|
|
1959
1967
|
// Fluid
|
|
1960
1968
|
FluidVaultT1Open: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
|
1961
1969
|
FluidVaultT1Adjust: '0xD37d4DB98E67305ef92f34886B25500500E04Aed',
|
|
@@ -5476,8 +5484,8 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
5476
5484
|
*/
|
|
5477
5485
|
class AaveV3FlashLoanAction extends _ActionWithL2__WEBPACK_IMPORTED_MODULE_0__.ActionWithL2 {
|
|
5478
5486
|
/**
|
|
5479
|
-
* @param loanAmounts
|
|
5480
5487
|
* @param tokens
|
|
5488
|
+
* @param loanAmounts
|
|
5481
5489
|
* @param modes
|
|
5482
5490
|
* @param loanPayer
|
|
5483
5491
|
* @param flParamGetterAddr
|
|
@@ -5537,8 +5545,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5537
5545
|
*/
|
|
5538
5546
|
class AaveV3FlashLoanNoFeeAction extends _ActionWithL2__WEBPACK_IMPORTED_MODULE_0__.ActionWithL2 {
|
|
5539
5547
|
/**
|
|
5540
|
-
* @param loanAmounts
|
|
5541
5548
|
* @param tokens
|
|
5549
|
+
* @param loanAmounts
|
|
5542
5550
|
* @param modes
|
|
5543
5551
|
* @param loanPayer
|
|
5544
5552
|
* @param flParamGetterAddr
|
|
@@ -5597,25 +5605,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5597
5605
|
*/
|
|
5598
5606
|
class AaveV3FlashLoanCarryDebtAction extends _ActionWithL2__WEBPACK_IMPORTED_MODULE_0__.ActionWithL2 {
|
|
5599
5607
|
/**
|
|
5600
|
-
* @param loanAmounts
|
|
5601
5608
|
* @param tokens
|
|
5602
|
-
* @param
|
|
5603
|
-
* @param loanPayer
|
|
5609
|
+
* @param loanAmounts
|
|
5604
5610
|
* @param flParamGetterAddr
|
|
5605
5611
|
* @param flParamGetterData
|
|
5606
5612
|
*/
|
|
5607
|
-
constructor(tokens, loanAmounts
|
|
5608
|
-
var flParamGetterAddr = arguments.length >
|
|
5609
|
-
var flParamGetterData = arguments.length >
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
throw new Error('Arrays must be of the same length');
|
|
5613
|
+
constructor(tokens, loanAmounts) {
|
|
5614
|
+
var flParamGetterAddr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty');
|
|
5615
|
+
var flParamGetterData = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
5616
|
+
if (tokens.length !== loanAmounts.length) {
|
|
5617
|
+
throw new Error('Tokens and loan amounts must be of the same length');
|
|
5613
5618
|
}
|
|
5614
|
-
modes.
|
|
5615
|
-
|
|
5616
|
-
throw new Error('Invalid borrow mode set');
|
|
5617
|
-
}
|
|
5618
|
-
});
|
|
5619
|
+
var modes = Array(tokens.length).fill(2); // always use variable borrow rate
|
|
5620
|
+
super('FLAaveV3CarryDebt', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('FLAaveV3CarryDebt'), ['address[]', 'uint256[]', 'uint256[]', 'address', 'address', 'bytes', 'bytes'], [tokens, loanAmounts, modes, (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), flParamGetterAddr, flParamGetterData, []]);
|
|
5619
5621
|
}
|
|
5620
5622
|
}
|
|
5621
5623
|
|
|
@@ -10438,7 +10440,7 @@ class AaveV3DelegateCredit extends _ActionWithL2__WEBPACK_IMPORTED_MODULE_0__.Ac
|
|
|
10438
10440
|
* @param amount Amount of tokens to be payed back
|
|
10439
10441
|
* @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
|
|
10440
10442
|
* @param assetId The id of the token to be borrowed
|
|
10441
|
-
* @param delegatee The
|
|
10443
|
+
* @param delegatee The address of the delegatee to be credited
|
|
10442
10444
|
*/
|
|
10443
10445
|
constructor(useOnDefaultMarket, market, amount, rateMode, assetId, delegatee) {
|
|
10444
10446
|
super('AaveV3DelegateCredit', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), ['uint256', 'address', 'uint16', 'uint8', 'bool', 'address'], [amount, delegatee, assetId, rateMode, useOnDefaultMarket, market]);
|