@defisaver/sdk 1.3.26-uniswap-dev-dev → 1.3.26
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;
|
|
@@ -288,7 +289,6 @@ export declare const actionAddresses: {
|
|
|
288
289
|
AaveV4DelegateWithdrawWithSig: string;
|
|
289
290
|
AaveV4DelegateBorrowWithSig: string;
|
|
290
291
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
291
|
-
AaveV3DelegateCredit?: undefined;
|
|
292
292
|
AaveV3RatioTrigger?: undefined;
|
|
293
293
|
GasFeeTakerL2?: undefined;
|
|
294
294
|
AaveV3RatioCheck?: undefined;
|
|
@@ -329,6 +329,7 @@ export declare const actionAddresses: {
|
|
|
329
329
|
FLAaveV3: string;
|
|
330
330
|
FLBalancer: string;
|
|
331
331
|
FLAction: string;
|
|
332
|
+
FLAaveV3CarryDebt: string;
|
|
332
333
|
AaveV3RatioTrigger: string;
|
|
333
334
|
GasFeeTakerL2: string;
|
|
334
335
|
AaveV3RatioCheck: string;
|
|
@@ -427,7 +428,6 @@ export declare const actionAddresses: {
|
|
|
427
428
|
CompGetDebt?: undefined;
|
|
428
429
|
CompCollateralSwitch?: undefined;
|
|
429
430
|
FLAaveV2?: undefined;
|
|
430
|
-
FLAaveV3CarryDebt?: undefined;
|
|
431
431
|
FLDyDx?: undefined;
|
|
432
432
|
FLMaker?: undefined;
|
|
433
433
|
FLSpark?: undefined;
|
|
@@ -618,6 +618,7 @@ export declare const actionAddresses: {
|
|
|
618
618
|
AaveV3Withdraw: string;
|
|
619
619
|
AaveV3ClaimRewards: string;
|
|
620
620
|
AaveV3DelegateWithSig: string;
|
|
621
|
+
AaveV3DelegateCredit: string;
|
|
621
622
|
CompV3Allow: string;
|
|
622
623
|
CompV3Borrow: string;
|
|
623
624
|
CompV3Claim: string;
|
|
@@ -631,6 +632,7 @@ export declare const actionAddresses: {
|
|
|
631
632
|
FLUniV3: string;
|
|
632
633
|
FLAction: string;
|
|
633
634
|
FLMorphoBlue: string;
|
|
635
|
+
FLAaveV3CarryDebt: string;
|
|
634
636
|
GasFeeTakerL2: string;
|
|
635
637
|
AaveV3RatioCheck: string;
|
|
636
638
|
UniCollectV3: string;
|
|
@@ -754,7 +756,6 @@ export declare const actionAddresses: {
|
|
|
754
756
|
CompGetDebt?: undefined;
|
|
755
757
|
CompCollateralSwitch?: undefined;
|
|
756
758
|
FLAaveV2?: undefined;
|
|
757
|
-
FLAaveV3CarryDebt?: undefined;
|
|
758
759
|
FLDyDx?: undefined;
|
|
759
760
|
FLMaker?: undefined;
|
|
760
761
|
FLSpark?: undefined;
|
|
@@ -877,7 +878,6 @@ export declare const actionAddresses: {
|
|
|
877
878
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
878
879
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
879
880
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
880
|
-
AaveV3DelegateCredit?: undefined;
|
|
881
881
|
AaveV3RatioTrigger?: undefined;
|
|
882
882
|
} | {
|
|
883
883
|
DFSSell: string;
|
|
@@ -905,6 +905,7 @@ export declare const actionAddresses: {
|
|
|
905
905
|
FLUniV3: string;
|
|
906
906
|
FLAction: string;
|
|
907
907
|
FLMorphoBlue: string;
|
|
908
|
+
FLAaveV3CarryDebt: string;
|
|
908
909
|
AaveV3Withdraw: string;
|
|
909
910
|
AaveV3SwapBorrowRateMode: string;
|
|
910
911
|
AaveV3Supply: string;
|
|
@@ -916,6 +917,7 @@ export declare const actionAddresses: {
|
|
|
916
917
|
AaveV3ATokenPayback: string;
|
|
917
918
|
AaveV3View: string;
|
|
918
919
|
AaveV3DelegateWithSig: string;
|
|
920
|
+
AaveV3DelegateCredit: string;
|
|
919
921
|
CompV3Allow: string;
|
|
920
922
|
CompV3Borrow: string;
|
|
921
923
|
CompV3Claim: string;
|
|
@@ -1030,7 +1032,6 @@ export declare const actionAddresses: {
|
|
|
1030
1032
|
CompCollateralSwitch?: undefined;
|
|
1031
1033
|
FLAaveV2?: undefined;
|
|
1032
1034
|
FLAaveV3NoFee?: undefined;
|
|
1033
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1034
1035
|
FLDyDx?: undefined;
|
|
1035
1036
|
FLMaker?: undefined;
|
|
1036
1037
|
FLSpark?: undefined;
|
|
@@ -1169,7 +1170,6 @@ export declare const actionAddresses: {
|
|
|
1169
1170
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1170
1171
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1171
1172
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1172
|
-
AaveV3DelegateCredit?: undefined;
|
|
1173
1173
|
AaveV3RatioTrigger?: undefined;
|
|
1174
1174
|
AaveV3RatioCheck?: undefined;
|
|
1175
1175
|
} | {
|
|
@@ -1191,6 +1191,7 @@ export declare const actionAddresses: {
|
|
|
1191
1191
|
TokenizedVaultAdapter: string;
|
|
1192
1192
|
FLAction: string;
|
|
1193
1193
|
FLAaveV3: string;
|
|
1194
|
+
FLAaveV3CarryDebt: string;
|
|
1194
1195
|
AaveV3Withdraw: string;
|
|
1195
1196
|
AaveV3Supply: string;
|
|
1196
1197
|
AaveV3SetEMode: string;
|
|
@@ -1287,7 +1288,6 @@ export declare const actionAddresses: {
|
|
|
1287
1288
|
CompCollateralSwitch?: undefined;
|
|
1288
1289
|
FLAaveV2?: undefined;
|
|
1289
1290
|
FLAaveV3NoFee?: undefined;
|
|
1290
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1291
1291
|
FLDyDx?: undefined;
|
|
1292
1292
|
FLMaker?: undefined;
|
|
1293
1293
|
FLBalancer?: undefined;
|
|
@@ -1484,6 +1484,7 @@ export declare const actionAddresses: {
|
|
|
1484
1484
|
TokenizedVaultAdapter: string;
|
|
1485
1485
|
FLAction: string;
|
|
1486
1486
|
FLAaveV3: string;
|
|
1487
|
+
FLAaveV3CarryDebt: string;
|
|
1487
1488
|
AaveV3Withdraw: string;
|
|
1488
1489
|
AaveV3Supply: string;
|
|
1489
1490
|
AaveV3SetEMode: string;
|
|
@@ -1593,7 +1594,6 @@ export declare const actionAddresses: {
|
|
|
1593
1594
|
CompCollateralSwitch?: undefined;
|
|
1594
1595
|
FLAaveV2?: undefined;
|
|
1595
1596
|
FLAaveV3NoFee?: undefined;
|
|
1596
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1597
1597
|
FLDyDx?: undefined;
|
|
1598
1598
|
FLMaker?: undefined;
|
|
1599
1599
|
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',
|
|
@@ -364,12 +365,13 @@ export const actionAddresses = {
|
|
|
364
365
|
AaveV3Withdraw: '0xf19d045f6cFc04A5Ee5E0e8837b565b9f276e3F7',
|
|
365
366
|
AaveV3ClaimRewards: '0xBE8e8cea67085F869C1C0040fD52F9F3115E962e',
|
|
366
367
|
AaveV3DelegateWithSig: '0x8dd05d32fB05E8c3e8F37294e6f2d13e5823a712',
|
|
367
|
-
AaveV3DelegateCredit: '
|
|
368
|
+
AaveV3DelegateCredit: '0x11E7B19195a76D2E5A4863cf6cbE8030443c729A',
|
|
368
369
|
// flashloan
|
|
369
370
|
FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
|
|
370
371
|
FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
|
|
371
372
|
FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
|
|
372
373
|
FLAction: '0xB57b666dAB46229e2b80113b5187F6DCD91AB159',
|
|
374
|
+
FLAaveV3CarryDebt: '0x4ab7a392aF23215A9049A64F3B2d44726aD2D6fe',
|
|
373
375
|
AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
|
|
374
376
|
GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
|
|
375
377
|
AaveV3RatioCheck: '0x7A36779a7b5F1128B28932604057d5b63361297c',
|
|
@@ -426,6 +428,7 @@ export const actionAddresses = {
|
|
|
426
428
|
AaveV3Withdraw: '0xbf492F869DdB1A18BB4F41b6c3059D9f882Fe7ff',
|
|
427
429
|
AaveV3ClaimRewards: '0x3a4d72Ed2a47a409a82ba61f0fca1C749Ea8aB66',
|
|
428
430
|
AaveV3DelegateWithSig: '0xFF2CE05250d1880f0f45ea8fB453292CABA42F12',
|
|
431
|
+
AaveV3DelegateCredit: '0x8C13353e3DA67d3171D6F73751E3caa791a3AACD',
|
|
429
432
|
// CompV3
|
|
430
433
|
CompV3Allow: '0x0380E8e13CdE0499c720999930CaA07A5744887c',
|
|
431
434
|
CompV3Borrow: '0x1C0eCc794fDA7c29aBd19E0b2F7dA166C237d616',
|
|
@@ -441,6 +444,7 @@ export const actionAddresses = {
|
|
|
441
444
|
FLUniV3: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
442
445
|
FLAction: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
443
446
|
FLMorphoBlue: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
447
|
+
FLAaveV3CarryDebt: '0xEc6Db90d9EFa7cD75d5b716896A497e9d9103D5b',
|
|
444
448
|
GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
|
|
445
449
|
AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
|
|
446
450
|
// uniswap V3
|
|
@@ -519,6 +523,7 @@ export const actionAddresses = {
|
|
|
519
523
|
FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
520
524
|
FLAction: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
521
525
|
FLMorphoBlue: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
526
|
+
FLAaveV3CarryDebt: '0x760e97862DD8652e5BB8b4D8ad9C99a74BBe7E7A',
|
|
522
527
|
// AaveV3
|
|
523
528
|
AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
|
|
524
529
|
AaveV3SwapBorrowRateMode: '0x9d1D7A0dD5e82cCe9CC131eC0C807B0F543be70e',
|
|
@@ -531,6 +536,7 @@ export const actionAddresses = {
|
|
|
531
536
|
AaveV3ATokenPayback: '0x3D57875885e3cEe9E56Cb65D21789893B6e67815',
|
|
532
537
|
AaveV3View: '0xf140B2904beb743C2f17e0b5f766074212a7e243',
|
|
533
538
|
AaveV3DelegateWithSig: '0x9e295AFaC75E7843b88a563D119FD953EDf441c2',
|
|
539
|
+
AaveV3DelegateCredit: '0xF85aD63c513A76a1dc05B2AddC4777F17336c7e9',
|
|
534
540
|
// CompV3
|
|
535
541
|
CompV3Allow: '0x3Fe56B85BBcD759459408Bd8434c37bac93e26bF',
|
|
536
542
|
CompV3Borrow: '0x74346bf868Dc9201922A7F7DD26917F7BF5F0f3b',
|
|
@@ -591,6 +597,7 @@ export const actionAddresses = {
|
|
|
591
597
|
// Flashloan
|
|
592
598
|
FLAction: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
593
599
|
FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
600
|
+
FLAaveV3CarryDebt: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
594
601
|
// AaveV3
|
|
595
602
|
AaveV3Withdraw: '0xae56474aBe3C271579b513b6668864e39f65Ae15',
|
|
596
603
|
AaveV3Supply: '0x7dFF34190d0307fC234fc7E8C152C9715083eB02',
|
|
@@ -602,7 +609,7 @@ export const actionAddresses = {
|
|
|
602
609
|
AaveV3ATokenPayback: '0xedfc68e2874b0afc0963e18ae4d68522aec7f97d',
|
|
603
610
|
AaveV3View: '0xc9d6efa6e08b66a5cdc516bcd5807c2fa69e0f2a',
|
|
604
611
|
AaveV3DelegateWithSig: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
|
|
605
|
-
AaveV3DelegateCredit: '
|
|
612
|
+
AaveV3DelegateCredit: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
606
613
|
},
|
|
607
614
|
[NETWORKS.plasma.chainId]: {
|
|
608
615
|
// Basic
|
|
@@ -625,6 +632,7 @@ export const actionAddresses = {
|
|
|
625
632
|
// Flashloan
|
|
626
633
|
FLAction: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7',
|
|
627
634
|
FLAaveV3: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7',
|
|
635
|
+
FLAaveV3CarryDebt: '0x6Dc6C0e38fBd066b89Ba7E6f711B4288246891b3',
|
|
628
636
|
// AaveV3
|
|
629
637
|
AaveV3Withdraw: '0x4839d021A24820e57C31D386d430e2e82694F73B',
|
|
630
638
|
AaveV3Supply: '0x9D95de57631DD8Ac071892843DA67FEe52EA3962',
|
|
@@ -636,7 +644,7 @@ export const actionAddresses = {
|
|
|
636
644
|
AaveV3ATokenPayback: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
|
|
637
645
|
AaveV3View: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
|
|
638
646
|
AaveV3DelegateWithSig: '0x49658E0CF3883c338397C7257619B280dF581057',
|
|
639
|
-
AaveV3DelegateCredit: '
|
|
647
|
+
AaveV3DelegateCredit: '0x6F53fa9e7d1323d24515a51AB72Da3cf1E9883Bc',
|
|
640
648
|
// Fluid
|
|
641
649
|
FluidVaultT1Open: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
|
642
650
|
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;
|
|
@@ -299,7 +300,6 @@ declare const actionAddressesAllChains: {
|
|
|
299
300
|
AaveV4DelegateWithdrawWithSig: string;
|
|
300
301
|
AaveV4DelegateBorrowWithSig: string;
|
|
301
302
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
302
|
-
AaveV3DelegateCredit?: undefined;
|
|
303
303
|
AaveV3RatioTrigger?: undefined;
|
|
304
304
|
GasFeeTakerL2?: undefined;
|
|
305
305
|
AaveV3RatioCheck?: undefined;
|
|
@@ -340,6 +340,7 @@ declare const actionAddressesAllChains: {
|
|
|
340
340
|
FLAaveV3: string;
|
|
341
341
|
FLBalancer: string;
|
|
342
342
|
FLAction: string;
|
|
343
|
+
FLAaveV3CarryDebt: string;
|
|
343
344
|
AaveV3RatioTrigger: string;
|
|
344
345
|
GasFeeTakerL2: string;
|
|
345
346
|
AaveV3RatioCheck: string;
|
|
@@ -438,7 +439,6 @@ declare const actionAddressesAllChains: {
|
|
|
438
439
|
CompGetDebt?: undefined;
|
|
439
440
|
CompCollateralSwitch?: undefined;
|
|
440
441
|
FLAaveV2?: undefined;
|
|
441
|
-
FLAaveV3CarryDebt?: undefined;
|
|
442
442
|
FLDyDx?: undefined;
|
|
443
443
|
FLMaker?: undefined;
|
|
444
444
|
FLSpark?: undefined;
|
|
@@ -629,6 +629,7 @@ declare const actionAddressesAllChains: {
|
|
|
629
629
|
AaveV3Withdraw: string;
|
|
630
630
|
AaveV3ClaimRewards: string;
|
|
631
631
|
AaveV3DelegateWithSig: string;
|
|
632
|
+
AaveV3DelegateCredit: string;
|
|
632
633
|
CompV3Allow: string;
|
|
633
634
|
CompV3Borrow: string;
|
|
634
635
|
CompV3Claim: string;
|
|
@@ -642,6 +643,7 @@ declare const actionAddressesAllChains: {
|
|
|
642
643
|
FLUniV3: string;
|
|
643
644
|
FLAction: string;
|
|
644
645
|
FLMorphoBlue: string;
|
|
646
|
+
FLAaveV3CarryDebt: string;
|
|
645
647
|
GasFeeTakerL2: string;
|
|
646
648
|
AaveV3RatioCheck: string;
|
|
647
649
|
UniCollectV3: string;
|
|
@@ -765,7 +767,6 @@ declare const actionAddressesAllChains: {
|
|
|
765
767
|
CompGetDebt?: undefined;
|
|
766
768
|
CompCollateralSwitch?: undefined;
|
|
767
769
|
FLAaveV2?: undefined;
|
|
768
|
-
FLAaveV3CarryDebt?: undefined;
|
|
769
770
|
FLDyDx?: undefined;
|
|
770
771
|
FLMaker?: undefined;
|
|
771
772
|
FLSpark?: undefined;
|
|
@@ -888,7 +889,6 @@ declare const actionAddressesAllChains: {
|
|
|
888
889
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
889
890
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
890
891
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
891
|
-
AaveV3DelegateCredit?: undefined;
|
|
892
892
|
AaveV3RatioTrigger?: undefined;
|
|
893
893
|
} | {
|
|
894
894
|
DFSSell: string;
|
|
@@ -916,6 +916,7 @@ declare const actionAddressesAllChains: {
|
|
|
916
916
|
FLUniV3: string;
|
|
917
917
|
FLAction: string;
|
|
918
918
|
FLMorphoBlue: string;
|
|
919
|
+
FLAaveV3CarryDebt: string;
|
|
919
920
|
AaveV3Withdraw: string;
|
|
920
921
|
AaveV3SwapBorrowRateMode: string;
|
|
921
922
|
AaveV3Supply: string;
|
|
@@ -927,6 +928,7 @@ declare const actionAddressesAllChains: {
|
|
|
927
928
|
AaveV3ATokenPayback: string;
|
|
928
929
|
AaveV3View: string;
|
|
929
930
|
AaveV3DelegateWithSig: string;
|
|
931
|
+
AaveV3DelegateCredit: string;
|
|
930
932
|
CompV3Allow: string;
|
|
931
933
|
CompV3Borrow: string;
|
|
932
934
|
CompV3Claim: string;
|
|
@@ -1041,7 +1043,6 @@ declare const actionAddressesAllChains: {
|
|
|
1041
1043
|
CompCollateralSwitch?: undefined;
|
|
1042
1044
|
FLAaveV2?: undefined;
|
|
1043
1045
|
FLAaveV3NoFee?: undefined;
|
|
1044
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1045
1046
|
FLDyDx?: undefined;
|
|
1046
1047
|
FLMaker?: undefined;
|
|
1047
1048
|
FLSpark?: undefined;
|
|
@@ -1180,7 +1181,6 @@ declare const actionAddressesAllChains: {
|
|
|
1180
1181
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1181
1182
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1182
1183
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
1183
|
-
AaveV3DelegateCredit?: undefined;
|
|
1184
1184
|
AaveV3RatioTrigger?: undefined;
|
|
1185
1185
|
AaveV3RatioCheck?: undefined;
|
|
1186
1186
|
} | {
|
|
@@ -1202,6 +1202,7 @@ declare const actionAddressesAllChains: {
|
|
|
1202
1202
|
TokenizedVaultAdapter: string;
|
|
1203
1203
|
FLAction: string;
|
|
1204
1204
|
FLAaveV3: string;
|
|
1205
|
+
FLAaveV3CarryDebt: string;
|
|
1205
1206
|
AaveV3Withdraw: string;
|
|
1206
1207
|
AaveV3Supply: string;
|
|
1207
1208
|
AaveV3SetEMode: string;
|
|
@@ -1298,7 +1299,6 @@ declare const actionAddressesAllChains: {
|
|
|
1298
1299
|
CompCollateralSwitch?: undefined;
|
|
1299
1300
|
FLAaveV2?: undefined;
|
|
1300
1301
|
FLAaveV3NoFee?: undefined;
|
|
1301
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1302
1302
|
FLDyDx?: undefined;
|
|
1303
1303
|
FLMaker?: undefined;
|
|
1304
1304
|
FLBalancer?: undefined;
|
|
@@ -1495,6 +1495,7 @@ declare const actionAddressesAllChains: {
|
|
|
1495
1495
|
TokenizedVaultAdapter: string;
|
|
1496
1496
|
FLAction: string;
|
|
1497
1497
|
FLAaveV3: string;
|
|
1498
|
+
FLAaveV3CarryDebt: string;
|
|
1498
1499
|
AaveV3Withdraw: string;
|
|
1499
1500
|
AaveV3Supply: string;
|
|
1500
1501
|
AaveV3SetEMode: string;
|
|
@@ -1604,7 +1605,6 @@ declare const actionAddressesAllChains: {
|
|
|
1604
1605
|
CompCollateralSwitch?: undefined;
|
|
1605
1606
|
FLAaveV2?: undefined;
|
|
1606
1607
|
FLAaveV3NoFee?: undefined;
|
|
1607
|
-
FLAaveV3CarryDebt?: undefined;
|
|
1608
1608
|
FLDyDx?: undefined;
|
|
1609
1609
|
FLMaker?: undefined;
|
|
1610
1610
|
FLBalancer?: undefined;
|
|
@@ -1843,6 +1843,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1843
1843
|
AaveV3ATokenPayback: string;
|
|
1844
1844
|
AaveV3View: string;
|
|
1845
1845
|
AaveV3DelegateWithSig: string;
|
|
1846
|
+
AaveV3DelegateCredit: string;
|
|
1846
1847
|
GhoClaimAAVE: string;
|
|
1847
1848
|
GhoUnstake: string;
|
|
1848
1849
|
GhoStake: string;
|
|
@@ -2059,7 +2060,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2059
2060
|
AaveV4DelegateWithdrawWithSig: string;
|
|
2060
2061
|
AaveV4DelegateBorrowWithSig: string;
|
|
2061
2062
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
2062
|
-
AaveV3DelegateCredit?: undefined;
|
|
2063
2063
|
AaveV3RatioTrigger?: undefined;
|
|
2064
2064
|
GasFeeTakerL2?: undefined;
|
|
2065
2065
|
AaveV3RatioCheck?: undefined;
|
|
@@ -2100,6 +2100,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2100
2100
|
FLAaveV3: string;
|
|
2101
2101
|
FLBalancer: string;
|
|
2102
2102
|
FLAction: string;
|
|
2103
|
+
FLAaveV3CarryDebt: string;
|
|
2103
2104
|
AaveV3RatioTrigger: string;
|
|
2104
2105
|
GasFeeTakerL2: string;
|
|
2105
2106
|
AaveV3RatioCheck: string;
|
|
@@ -2198,7 +2199,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2198
2199
|
CompGetDebt?: undefined;
|
|
2199
2200
|
CompCollateralSwitch?: undefined;
|
|
2200
2201
|
FLAaveV2?: undefined;
|
|
2201
|
-
FLAaveV3CarryDebt?: undefined;
|
|
2202
2202
|
FLDyDx?: undefined;
|
|
2203
2203
|
FLMaker?: undefined;
|
|
2204
2204
|
FLSpark?: undefined;
|
|
@@ -2389,6 +2389,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2389
2389
|
AaveV3Withdraw: string;
|
|
2390
2390
|
AaveV3ClaimRewards: string;
|
|
2391
2391
|
AaveV3DelegateWithSig: string;
|
|
2392
|
+
AaveV3DelegateCredit: string;
|
|
2392
2393
|
CompV3Allow: string;
|
|
2393
2394
|
CompV3Borrow: string;
|
|
2394
2395
|
CompV3Claim: string;
|
|
@@ -2402,6 +2403,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2402
2403
|
FLUniV3: string;
|
|
2403
2404
|
FLAction: string;
|
|
2404
2405
|
FLMorphoBlue: string;
|
|
2406
|
+
FLAaveV3CarryDebt: string;
|
|
2405
2407
|
GasFeeTakerL2: string;
|
|
2406
2408
|
AaveV3RatioCheck: string;
|
|
2407
2409
|
UniCollectV3: string;
|
|
@@ -2525,7 +2527,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2525
2527
|
CompGetDebt?: undefined;
|
|
2526
2528
|
CompCollateralSwitch?: undefined;
|
|
2527
2529
|
FLAaveV2?: undefined;
|
|
2528
|
-
FLAaveV3CarryDebt?: undefined;
|
|
2529
2530
|
FLDyDx?: undefined;
|
|
2530
2531
|
FLMaker?: undefined;
|
|
2531
2532
|
FLSpark?: undefined;
|
|
@@ -2648,7 +2649,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2648
2649
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
2649
2650
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
2650
2651
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
2651
|
-
AaveV3DelegateCredit?: undefined;
|
|
2652
2652
|
AaveV3RatioTrigger?: undefined;
|
|
2653
2653
|
} | {
|
|
2654
2654
|
DFSSell: string;
|
|
@@ -2676,6 +2676,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2676
2676
|
FLUniV3: string;
|
|
2677
2677
|
FLAction: string;
|
|
2678
2678
|
FLMorphoBlue: string;
|
|
2679
|
+
FLAaveV3CarryDebt: string;
|
|
2679
2680
|
AaveV3Withdraw: string;
|
|
2680
2681
|
AaveV3SwapBorrowRateMode: string;
|
|
2681
2682
|
AaveV3Supply: string;
|
|
@@ -2687,6 +2688,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2687
2688
|
AaveV3ATokenPayback: string;
|
|
2688
2689
|
AaveV3View: string;
|
|
2689
2690
|
AaveV3DelegateWithSig: string;
|
|
2691
|
+
AaveV3DelegateCredit: string;
|
|
2690
2692
|
CompV3Allow: string;
|
|
2691
2693
|
CompV3Borrow: string;
|
|
2692
2694
|
CompV3Claim: string;
|
|
@@ -2801,7 +2803,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2801
2803
|
CompCollateralSwitch?: undefined;
|
|
2802
2804
|
FLAaveV2?: undefined;
|
|
2803
2805
|
FLAaveV3NoFee?: undefined;
|
|
2804
|
-
FLAaveV3CarryDebt?: undefined;
|
|
2805
2806
|
FLDyDx?: undefined;
|
|
2806
2807
|
FLMaker?: undefined;
|
|
2807
2808
|
FLSpark?: undefined;
|
|
@@ -2940,7 +2941,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2940
2941
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
2941
2942
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
2942
2943
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
2943
|
-
AaveV3DelegateCredit?: undefined;
|
|
2944
2944
|
AaveV3RatioTrigger?: undefined;
|
|
2945
2945
|
AaveV3RatioCheck?: undefined;
|
|
2946
2946
|
} | {
|
|
@@ -2962,6 +2962,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2962
2962
|
TokenizedVaultAdapter: string;
|
|
2963
2963
|
FLAction: string;
|
|
2964
2964
|
FLAaveV3: string;
|
|
2965
|
+
FLAaveV3CarryDebt: string;
|
|
2965
2966
|
AaveV3Withdraw: string;
|
|
2966
2967
|
AaveV3Supply: string;
|
|
2967
2968
|
AaveV3SetEMode: string;
|
|
@@ -3058,7 +3059,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3058
3059
|
CompCollateralSwitch?: undefined;
|
|
3059
3060
|
FLAaveV2?: undefined;
|
|
3060
3061
|
FLAaveV3NoFee?: undefined;
|
|
3061
|
-
FLAaveV3CarryDebt?: undefined;
|
|
3062
3062
|
FLDyDx?: undefined;
|
|
3063
3063
|
FLMaker?: undefined;
|
|
3064
3064
|
FLBalancer?: undefined;
|
|
@@ -3255,6 +3255,7 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3255
3255
|
TokenizedVaultAdapter: string;
|
|
3256
3256
|
FLAction: string;
|
|
3257
3257
|
FLAaveV3: string;
|
|
3258
|
+
FLAaveV3CarryDebt: string;
|
|
3258
3259
|
AaveV3Withdraw: string;
|
|
3259
3260
|
AaveV3Supply: string;
|
|
3260
3261
|
AaveV3SetEMode: string;
|
|
@@ -3364,7 +3365,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3364
3365
|
CompCollateralSwitch?: undefined;
|
|
3365
3366
|
FLAaveV2?: undefined;
|
|
3366
3367
|
FLAaveV3NoFee?: undefined;
|
|
3367
|
-
FLAaveV3CarryDebt?: undefined;
|
|
3368
3368
|
FLDyDx?: undefined;
|
|
3369
3369
|
FLMaker?: undefined;
|
|
3370
3370
|
FLBalancer?: undefined;
|
|
@@ -3840,6 +3840,7 @@ declare const _default: {
|
|
|
3840
3840
|
AaveV3ATokenPayback: string;
|
|
3841
3841
|
AaveV3View: string;
|
|
3842
3842
|
AaveV3DelegateWithSig: string;
|
|
3843
|
+
AaveV3DelegateCredit: string;
|
|
3843
3844
|
GhoClaimAAVE: string;
|
|
3844
3845
|
GhoUnstake: string;
|
|
3845
3846
|
GhoStake: string;
|
|
@@ -4056,7 +4057,6 @@ declare const _default: {
|
|
|
4056
4057
|
AaveV4DelegateWithdrawWithSig: string;
|
|
4057
4058
|
AaveV4DelegateBorrowWithSig: string;
|
|
4058
4059
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
4059
|
-
AaveV3DelegateCredit?: undefined;
|
|
4060
4060
|
AaveV3RatioTrigger?: undefined;
|
|
4061
4061
|
GasFeeTakerL2?: undefined;
|
|
4062
4062
|
AaveV3RatioCheck?: undefined;
|
|
@@ -4097,6 +4097,7 @@ declare const _default: {
|
|
|
4097
4097
|
FLAaveV3: string;
|
|
4098
4098
|
FLBalancer: string;
|
|
4099
4099
|
FLAction: string;
|
|
4100
|
+
FLAaveV3CarryDebt: string;
|
|
4100
4101
|
AaveV3RatioTrigger: string;
|
|
4101
4102
|
GasFeeTakerL2: string;
|
|
4102
4103
|
AaveV3RatioCheck: string;
|
|
@@ -4195,7 +4196,6 @@ declare const _default: {
|
|
|
4195
4196
|
CompGetDebt?: undefined;
|
|
4196
4197
|
CompCollateralSwitch?: undefined;
|
|
4197
4198
|
FLAaveV2?: undefined;
|
|
4198
|
-
FLAaveV3CarryDebt?: undefined;
|
|
4199
4199
|
FLDyDx?: undefined;
|
|
4200
4200
|
FLMaker?: undefined;
|
|
4201
4201
|
FLSpark?: undefined;
|
|
@@ -4386,6 +4386,7 @@ declare const _default: {
|
|
|
4386
4386
|
AaveV3Withdraw: string;
|
|
4387
4387
|
AaveV3ClaimRewards: string;
|
|
4388
4388
|
AaveV3DelegateWithSig: string;
|
|
4389
|
+
AaveV3DelegateCredit: string;
|
|
4389
4390
|
CompV3Allow: string;
|
|
4390
4391
|
CompV3Borrow: string;
|
|
4391
4392
|
CompV3Claim: string;
|
|
@@ -4399,6 +4400,7 @@ declare const _default: {
|
|
|
4399
4400
|
FLUniV3: string;
|
|
4400
4401
|
FLAction: string;
|
|
4401
4402
|
FLMorphoBlue: string;
|
|
4403
|
+
FLAaveV3CarryDebt: string;
|
|
4402
4404
|
GasFeeTakerL2: string;
|
|
4403
4405
|
AaveV3RatioCheck: string;
|
|
4404
4406
|
UniCollectV3: string;
|
|
@@ -4522,7 +4524,6 @@ declare const _default: {
|
|
|
4522
4524
|
CompGetDebt?: undefined;
|
|
4523
4525
|
CompCollateralSwitch?: undefined;
|
|
4524
4526
|
FLAaveV2?: undefined;
|
|
4525
|
-
FLAaveV3CarryDebt?: undefined;
|
|
4526
4527
|
FLDyDx?: undefined;
|
|
4527
4528
|
FLMaker?: undefined;
|
|
4528
4529
|
FLSpark?: undefined;
|
|
@@ -4645,7 +4646,6 @@ declare const _default: {
|
|
|
4645
4646
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
4646
4647
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
4647
4648
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
4648
|
-
AaveV3DelegateCredit?: undefined;
|
|
4649
4649
|
AaveV3RatioTrigger?: undefined;
|
|
4650
4650
|
} | {
|
|
4651
4651
|
DFSSell: string;
|
|
@@ -4673,6 +4673,7 @@ declare const _default: {
|
|
|
4673
4673
|
FLUniV3: string;
|
|
4674
4674
|
FLAction: string;
|
|
4675
4675
|
FLMorphoBlue: string;
|
|
4676
|
+
FLAaveV3CarryDebt: string;
|
|
4676
4677
|
AaveV3Withdraw: string;
|
|
4677
4678
|
AaveV3SwapBorrowRateMode: string;
|
|
4678
4679
|
AaveV3Supply: string;
|
|
@@ -4684,6 +4685,7 @@ declare const _default: {
|
|
|
4684
4685
|
AaveV3ATokenPayback: string;
|
|
4685
4686
|
AaveV3View: string;
|
|
4686
4687
|
AaveV3DelegateWithSig: string;
|
|
4688
|
+
AaveV3DelegateCredit: string;
|
|
4687
4689
|
CompV3Allow: string;
|
|
4688
4690
|
CompV3Borrow: string;
|
|
4689
4691
|
CompV3Claim: string;
|
|
@@ -4798,7 +4800,6 @@ declare const _default: {
|
|
|
4798
4800
|
CompCollateralSwitch?: undefined;
|
|
4799
4801
|
FLAaveV2?: undefined;
|
|
4800
4802
|
FLAaveV3NoFee?: undefined;
|
|
4801
|
-
FLAaveV3CarryDebt?: undefined;
|
|
4802
4803
|
FLDyDx?: undefined;
|
|
4803
4804
|
FLMaker?: undefined;
|
|
4804
4805
|
FLSpark?: undefined;
|
|
@@ -4937,7 +4938,6 @@ declare const _default: {
|
|
|
4937
4938
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
4938
4939
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
4939
4940
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
4940
|
-
AaveV3DelegateCredit?: undefined;
|
|
4941
4941
|
AaveV3RatioTrigger?: undefined;
|
|
4942
4942
|
AaveV3RatioCheck?: undefined;
|
|
4943
4943
|
} | {
|
|
@@ -4959,6 +4959,7 @@ declare const _default: {
|
|
|
4959
4959
|
TokenizedVaultAdapter: string;
|
|
4960
4960
|
FLAction: string;
|
|
4961
4961
|
FLAaveV3: string;
|
|
4962
|
+
FLAaveV3CarryDebt: string;
|
|
4962
4963
|
AaveV3Withdraw: string;
|
|
4963
4964
|
AaveV3Supply: string;
|
|
4964
4965
|
AaveV3SetEMode: string;
|
|
@@ -5055,7 +5056,6 @@ declare const _default: {
|
|
|
5055
5056
|
CompCollateralSwitch?: undefined;
|
|
5056
5057
|
FLAaveV2?: undefined;
|
|
5057
5058
|
FLAaveV3NoFee?: undefined;
|
|
5058
|
-
FLAaveV3CarryDebt?: undefined;
|
|
5059
5059
|
FLDyDx?: undefined;
|
|
5060
5060
|
FLMaker?: undefined;
|
|
5061
5061
|
FLBalancer?: undefined;
|
|
@@ -5252,6 +5252,7 @@ declare const _default: {
|
|
|
5252
5252
|
TokenizedVaultAdapter: string;
|
|
5253
5253
|
FLAction: string;
|
|
5254
5254
|
FLAaveV3: string;
|
|
5255
|
+
FLAaveV3CarryDebt: string;
|
|
5255
5256
|
AaveV3Withdraw: string;
|
|
5256
5257
|
AaveV3Supply: string;
|
|
5257
5258
|
AaveV3SetEMode: string;
|
|
@@ -5361,7 +5362,6 @@ declare const _default: {
|
|
|
5361
5362
|
CompCollateralSwitch?: undefined;
|
|
5362
5363
|
FLAaveV2?: undefined;
|
|
5363
5364
|
FLAaveV3NoFee?: undefined;
|
|
5364
|
-
FLAaveV3CarryDebt?: undefined;
|
|
5365
5365
|
FLDyDx?: undefined;
|
|
5366
5366
|
FLMaker?: undefined;
|
|
5367
5367
|
FLBalancer?: undefined;
|
|
@@ -5600,6 +5600,7 @@ declare const _default: {
|
|
|
5600
5600
|
AaveV3ATokenPayback: string;
|
|
5601
5601
|
AaveV3View: string;
|
|
5602
5602
|
AaveV3DelegateWithSig: string;
|
|
5603
|
+
AaveV3DelegateCredit: string;
|
|
5603
5604
|
GhoClaimAAVE: string;
|
|
5604
5605
|
GhoUnstake: string;
|
|
5605
5606
|
GhoStake: string;
|
|
@@ -5816,7 +5817,6 @@ declare const _default: {
|
|
|
5816
5817
|
AaveV4DelegateWithdrawWithSig: string;
|
|
5817
5818
|
AaveV4DelegateBorrowWithSig: string;
|
|
5818
5819
|
AaveV4DelegateSetUsingAsCollateralWithSig: string;
|
|
5819
|
-
AaveV3DelegateCredit?: undefined;
|
|
5820
5820
|
AaveV3RatioTrigger?: undefined;
|
|
5821
5821
|
GasFeeTakerL2?: undefined;
|
|
5822
5822
|
AaveV3RatioCheck?: undefined;
|
|
@@ -5857,6 +5857,7 @@ declare const _default: {
|
|
|
5857
5857
|
FLAaveV3: string;
|
|
5858
5858
|
FLBalancer: string;
|
|
5859
5859
|
FLAction: string;
|
|
5860
|
+
FLAaveV3CarryDebt: string;
|
|
5860
5861
|
AaveV3RatioTrigger: string;
|
|
5861
5862
|
GasFeeTakerL2: string;
|
|
5862
5863
|
AaveV3RatioCheck: string;
|
|
@@ -5955,7 +5956,6 @@ declare const _default: {
|
|
|
5955
5956
|
CompGetDebt?: undefined;
|
|
5956
5957
|
CompCollateralSwitch?: undefined;
|
|
5957
5958
|
FLAaveV2?: undefined;
|
|
5958
|
-
FLAaveV3CarryDebt?: undefined;
|
|
5959
5959
|
FLDyDx?: undefined;
|
|
5960
5960
|
FLMaker?: undefined;
|
|
5961
5961
|
FLSpark?: undefined;
|
|
@@ -6146,6 +6146,7 @@ declare const _default: {
|
|
|
6146
6146
|
AaveV3Withdraw: string;
|
|
6147
6147
|
AaveV3ClaimRewards: string;
|
|
6148
6148
|
AaveV3DelegateWithSig: string;
|
|
6149
|
+
AaveV3DelegateCredit: string;
|
|
6149
6150
|
CompV3Allow: string;
|
|
6150
6151
|
CompV3Borrow: string;
|
|
6151
6152
|
CompV3Claim: string;
|
|
@@ -6159,6 +6160,7 @@ declare const _default: {
|
|
|
6159
6160
|
FLUniV3: string;
|
|
6160
6161
|
FLAction: string;
|
|
6161
6162
|
FLMorphoBlue: string;
|
|
6163
|
+
FLAaveV3CarryDebt: string;
|
|
6162
6164
|
GasFeeTakerL2: string;
|
|
6163
6165
|
AaveV3RatioCheck: string;
|
|
6164
6166
|
UniCollectV3: string;
|
|
@@ -6282,7 +6284,6 @@ declare const _default: {
|
|
|
6282
6284
|
CompGetDebt?: undefined;
|
|
6283
6285
|
CompCollateralSwitch?: undefined;
|
|
6284
6286
|
FLAaveV2?: undefined;
|
|
6285
|
-
FLAaveV3CarryDebt?: undefined;
|
|
6286
6287
|
FLDyDx?: undefined;
|
|
6287
6288
|
FLMaker?: undefined;
|
|
6288
6289
|
FLSpark?: undefined;
|
|
@@ -6405,7 +6406,6 @@ declare const _default: {
|
|
|
6405
6406
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6406
6407
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6407
6408
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
6408
|
-
AaveV3DelegateCredit?: undefined;
|
|
6409
6409
|
AaveV3RatioTrigger?: undefined;
|
|
6410
6410
|
} | {
|
|
6411
6411
|
DFSSell: string;
|
|
@@ -6433,6 +6433,7 @@ declare const _default: {
|
|
|
6433
6433
|
FLUniV3: string;
|
|
6434
6434
|
FLAction: string;
|
|
6435
6435
|
FLMorphoBlue: string;
|
|
6436
|
+
FLAaveV3CarryDebt: string;
|
|
6436
6437
|
AaveV3Withdraw: string;
|
|
6437
6438
|
AaveV3SwapBorrowRateMode: string;
|
|
6438
6439
|
AaveV3Supply: string;
|
|
@@ -6444,6 +6445,7 @@ declare const _default: {
|
|
|
6444
6445
|
AaveV3ATokenPayback: string;
|
|
6445
6446
|
AaveV3View: string;
|
|
6446
6447
|
AaveV3DelegateWithSig: string;
|
|
6448
|
+
AaveV3DelegateCredit: string;
|
|
6447
6449
|
CompV3Allow: string;
|
|
6448
6450
|
CompV3Borrow: string;
|
|
6449
6451
|
CompV3Claim: string;
|
|
@@ -6558,7 +6560,6 @@ declare const _default: {
|
|
|
6558
6560
|
CompCollateralSwitch?: undefined;
|
|
6559
6561
|
FLAaveV2?: undefined;
|
|
6560
6562
|
FLAaveV3NoFee?: undefined;
|
|
6561
|
-
FLAaveV3CarryDebt?: undefined;
|
|
6562
6563
|
FLDyDx?: undefined;
|
|
6563
6564
|
FLMaker?: undefined;
|
|
6564
6565
|
FLSpark?: undefined;
|
|
@@ -6697,7 +6698,6 @@ declare const _default: {
|
|
|
6697
6698
|
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6698
6699
|
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6699
6700
|
AaveV4DelegateSetUsingAsCollateralWithSig?: undefined;
|
|
6700
|
-
AaveV3DelegateCredit?: undefined;
|
|
6701
6701
|
AaveV3RatioTrigger?: undefined;
|
|
6702
6702
|
AaveV3RatioCheck?: undefined;
|
|
6703
6703
|
} | {
|
|
@@ -6719,6 +6719,7 @@ declare const _default: {
|
|
|
6719
6719
|
TokenizedVaultAdapter: string;
|
|
6720
6720
|
FLAction: string;
|
|
6721
6721
|
FLAaveV3: string;
|
|
6722
|
+
FLAaveV3CarryDebt: string;
|
|
6722
6723
|
AaveV3Withdraw: string;
|
|
6723
6724
|
AaveV3Supply: string;
|
|
6724
6725
|
AaveV3SetEMode: string;
|
|
@@ -6815,7 +6816,6 @@ declare const _default: {
|
|
|
6815
6816
|
CompCollateralSwitch?: undefined;
|
|
6816
6817
|
FLAaveV2?: undefined;
|
|
6817
6818
|
FLAaveV3NoFee?: undefined;
|
|
6818
|
-
FLAaveV3CarryDebt?: undefined;
|
|
6819
6819
|
FLDyDx?: undefined;
|
|
6820
6820
|
FLMaker?: undefined;
|
|
6821
6821
|
FLBalancer?: undefined;
|
|
@@ -7012,6 +7012,7 @@ declare const _default: {
|
|
|
7012
7012
|
TokenizedVaultAdapter: string;
|
|
7013
7013
|
FLAction: string;
|
|
7014
7014
|
FLAaveV3: string;
|
|
7015
|
+
FLAaveV3CarryDebt: string;
|
|
7015
7016
|
AaveV3Withdraw: string;
|
|
7016
7017
|
AaveV3Supply: string;
|
|
7017
7018
|
AaveV3SetEMode: string;
|
|
@@ -7121,7 +7122,6 @@ declare const _default: {
|
|
|
7121
7122
|
CompCollateralSwitch?: undefined;
|
|
7122
7123
|
FLAaveV2?: undefined;
|
|
7123
7124
|
FLAaveV3NoFee?: undefined;
|
|
7124
|
-
FLAaveV3CarryDebt?: undefined;
|
|
7125
7125
|
FLDyDx?: undefined;
|
|
7126
7126
|
FLMaker?: undefined;
|
|
7127
7127
|
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',
|
|
@@ -439,13 +440,14 @@ export const actionAddresses = {
|
|
|
439
440
|
AaveV3Withdraw: '0xf19d045f6cFc04A5Ee5E0e8837b565b9f276e3F7',
|
|
440
441
|
AaveV3ClaimRewards: '0xBE8e8cea67085F869C1C0040fD52F9F3115E962e',
|
|
441
442
|
AaveV3DelegateWithSig: '0x8dd05d32fB05E8c3e8F37294e6f2d13e5823a712',
|
|
442
|
-
AaveV3DelegateCredit: '
|
|
443
|
+
AaveV3DelegateCredit: '0x11E7B19195a76D2E5A4863cf6cbE8030443c729A',
|
|
443
444
|
|
|
444
445
|
// flashloan
|
|
445
446
|
FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
|
|
446
447
|
FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
|
|
447
448
|
FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
|
|
448
449
|
FLAction: '0xB57b666dAB46229e2b80113b5187F6DCD91AB159',
|
|
450
|
+
FLAaveV3CarryDebt: '0x4ab7a392aF23215A9049A64F3B2d44726aD2D6fe',
|
|
449
451
|
|
|
450
452
|
AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
|
|
451
453
|
GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
|
|
@@ -509,6 +511,7 @@ export const actionAddresses = {
|
|
|
509
511
|
AaveV3Withdraw: '0xbf492F869DdB1A18BB4F41b6c3059D9f882Fe7ff',
|
|
510
512
|
AaveV3ClaimRewards: '0x3a4d72Ed2a47a409a82ba61f0fca1C749Ea8aB66',
|
|
511
513
|
AaveV3DelegateWithSig: '0xFF2CE05250d1880f0f45ea8fB453292CABA42F12',
|
|
514
|
+
AaveV3DelegateCredit: '0x8C13353e3DA67d3171D6F73751E3caa791a3AACD',
|
|
512
515
|
|
|
513
516
|
// CompV3
|
|
514
517
|
CompV3Allow: '0x0380E8e13CdE0499c720999930CaA07A5744887c',
|
|
@@ -526,6 +529,7 @@ export const actionAddresses = {
|
|
|
526
529
|
FLUniV3: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3', // @DEV - incorrect, same as FLAction
|
|
527
530
|
FLAction: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
528
531
|
FLMorphoBlue: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
532
|
+
FLAaveV3CarryDebt: '0xEc6Db90d9EFa7cD75d5b716896A497e9d9103D5b',
|
|
529
533
|
|
|
530
534
|
GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
|
|
531
535
|
AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
|
|
@@ -617,6 +621,7 @@ export const actionAddresses = {
|
|
|
617
621
|
FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
618
622
|
FLAction: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52', // fix temp
|
|
619
623
|
FLMorphoBlue: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
624
|
+
FLAaveV3CarryDebt: '0x760e97862DD8652e5BB8b4D8ad9C99a74BBe7E7A',
|
|
620
625
|
|
|
621
626
|
// AaveV3
|
|
622
627
|
AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
|
|
@@ -631,6 +636,7 @@ export const actionAddresses = {
|
|
|
631
636
|
AaveV3ATokenPayback: '0x3D57875885e3cEe9E56Cb65D21789893B6e67815',
|
|
632
637
|
AaveV3View: '0xf140B2904beb743C2f17e0b5f766074212a7e243',
|
|
633
638
|
AaveV3DelegateWithSig: '0x9e295AFaC75E7843b88a563D119FD953EDf441c2',
|
|
639
|
+
AaveV3DelegateCredit: '0xF85aD63c513A76a1dc05B2AddC4777F17336c7e9',
|
|
634
640
|
|
|
635
641
|
// CompV3
|
|
636
642
|
CompV3Allow: '0x3Fe56B85BBcD759459408Bd8434c37bac93e26bF',
|
|
@@ -701,6 +707,7 @@ export const actionAddresses = {
|
|
|
701
707
|
// Flashloan
|
|
702
708
|
FLAction: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD', // fix temp
|
|
703
709
|
FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
710
|
+
FLAaveV3CarryDebt: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
704
711
|
|
|
705
712
|
// AaveV3
|
|
706
713
|
AaveV3Withdraw: '0xae56474aBe3C271579b513b6668864e39f65Ae15',
|
|
@@ -713,7 +720,7 @@ export const actionAddresses = {
|
|
|
713
720
|
AaveV3ATokenPayback: '0xedfc68e2874b0afc0963e18ae4d68522aec7f97d',
|
|
714
721
|
AaveV3View: '0xc9d6efa6e08b66a5cdc516bcd5807c2fa69e0f2a',
|
|
715
722
|
AaveV3DelegateWithSig: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
|
|
716
|
-
AaveV3DelegateCredit: '
|
|
723
|
+
AaveV3DelegateCredit: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
717
724
|
},
|
|
718
725
|
[NETWORKS.plasma.chainId]: {
|
|
719
726
|
// Basic
|
|
@@ -737,6 +744,7 @@ export const actionAddresses = {
|
|
|
737
744
|
// Flashloan
|
|
738
745
|
FLAction: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7', // fix temp
|
|
739
746
|
FLAaveV3: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7',
|
|
747
|
+
FLAaveV3CarryDebt: '0x6Dc6C0e38fBd066b89Ba7E6f711B4288246891b3',
|
|
740
748
|
|
|
741
749
|
// AaveV3
|
|
742
750
|
AaveV3Withdraw: '0x4839d021A24820e57C31D386d430e2e82694F73B',
|
|
@@ -749,7 +757,7 @@ export const actionAddresses = {
|
|
|
749
757
|
AaveV3ATokenPayback: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
|
|
750
758
|
AaveV3View: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
|
|
751
759
|
AaveV3DelegateWithSig: '0x49658E0CF3883c338397C7257619B280dF581057',
|
|
752
|
-
AaveV3DelegateCredit: '
|
|
760
|
+
AaveV3DelegateCredit: '0x6F53fa9e7d1323d24515a51AB72Da3cf1E9883Bc',
|
|
753
761
|
|
|
754
762
|
// Fluid
|
|
755
763
|
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',
|
|
@@ -1677,12 +1678,13 @@ var actionAddresses = {
|
|
|
1677
1678
|
AaveV3Withdraw: '0xf19d045f6cFc04A5Ee5E0e8837b565b9f276e3F7',
|
|
1678
1679
|
AaveV3ClaimRewards: '0xBE8e8cea67085F869C1C0040fD52F9F3115E962e',
|
|
1679
1680
|
AaveV3DelegateWithSig: '0x8dd05d32fB05E8c3e8F37294e6f2d13e5823a712',
|
|
1680
|
-
AaveV3DelegateCredit: '
|
|
1681
|
+
AaveV3DelegateCredit: '0x11E7B19195a76D2E5A4863cf6cbE8030443c729A',
|
|
1681
1682
|
// flashloan
|
|
1682
1683
|
FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
|
|
1683
1684
|
FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
|
|
1684
1685
|
FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
|
|
1685
1686
|
FLAction: '0xB57b666dAB46229e2b80113b5187F6DCD91AB159',
|
|
1687
|
+
FLAaveV3CarryDebt: '0x4ab7a392aF23215A9049A64F3B2d44726aD2D6fe',
|
|
1686
1688
|
AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
|
|
1687
1689
|
GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
|
|
1688
1690
|
AaveV3RatioCheck: '0x7A36779a7b5F1128B28932604057d5b63361297c',
|
|
@@ -1740,6 +1742,7 @@ var actionAddresses = {
|
|
|
1740
1742
|
AaveV3Withdraw: '0xbf492F869DdB1A18BB4F41b6c3059D9f882Fe7ff',
|
|
1741
1743
|
AaveV3ClaimRewards: '0x3a4d72Ed2a47a409a82ba61f0fca1C749Ea8aB66',
|
|
1742
1744
|
AaveV3DelegateWithSig: '0xFF2CE05250d1880f0f45ea8fB453292CABA42F12',
|
|
1745
|
+
AaveV3DelegateCredit: '0x8C13353e3DA67d3171D6F73751E3caa791a3AACD',
|
|
1743
1746
|
// CompV3
|
|
1744
1747
|
CompV3Allow: '0x0380E8e13CdE0499c720999930CaA07A5744887c',
|
|
1745
1748
|
CompV3Borrow: '0x1C0eCc794fDA7c29aBd19E0b2F7dA166C237d616',
|
|
@@ -1756,6 +1759,7 @@ var actionAddresses = {
|
|
|
1756
1759
|
// @DEV - incorrect, same as FLAction
|
|
1757
1760
|
FLAction: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
1758
1761
|
FLMorphoBlue: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
1762
|
+
FLAaveV3CarryDebt: '0xEc6Db90d9EFa7cD75d5b716896A497e9d9103D5b',
|
|
1759
1763
|
GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
|
|
1760
1764
|
AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
|
|
1761
1765
|
// uniswap V3
|
|
@@ -1836,6 +1840,7 @@ var actionAddresses = {
|
|
|
1836
1840
|
FLAction: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
1837
1841
|
// fix temp
|
|
1838
1842
|
FLMorphoBlue: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
1843
|
+
FLAaveV3CarryDebt: '0x760e97862DD8652e5BB8b4D8ad9C99a74BBe7E7A',
|
|
1839
1844
|
// AaveV3
|
|
1840
1845
|
AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
|
|
1841
1846
|
AaveV3SwapBorrowRateMode: '0x9d1D7A0dD5e82cCe9CC131eC0C807B0F543be70e',
|
|
@@ -1848,6 +1853,7 @@ var actionAddresses = {
|
|
|
1848
1853
|
AaveV3ATokenPayback: '0x3D57875885e3cEe9E56Cb65D21789893B6e67815',
|
|
1849
1854
|
AaveV3View: '0xf140B2904beb743C2f17e0b5f766074212a7e243',
|
|
1850
1855
|
AaveV3DelegateWithSig: '0x9e295AFaC75E7843b88a563D119FD953EDf441c2',
|
|
1856
|
+
AaveV3DelegateCredit: '0xF85aD63c513A76a1dc05B2AddC4777F17336c7e9',
|
|
1851
1857
|
// CompV3
|
|
1852
1858
|
CompV3Allow: '0x3Fe56B85BBcD759459408Bd8434c37bac93e26bF',
|
|
1853
1859
|
CompV3Borrow: '0x74346bf868Dc9201922A7F7DD26917F7BF5F0f3b',
|
|
@@ -1910,6 +1916,7 @@ var actionAddresses = {
|
|
|
1910
1916
|
FLAction: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
1911
1917
|
// fix temp
|
|
1912
1918
|
FLAaveV3: '0x04ce4b2a9F524d976a8eD8a49B9313C5a2C3ccAD',
|
|
1919
|
+
FLAaveV3CarryDebt: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
1913
1920
|
// AaveV3
|
|
1914
1921
|
AaveV3Withdraw: '0xae56474aBe3C271579b513b6668864e39f65Ae15',
|
|
1915
1922
|
AaveV3Supply: '0x7dFF34190d0307fC234fc7E8C152C9715083eB02',
|
|
@@ -1921,7 +1928,7 @@ var actionAddresses = {
|
|
|
1921
1928
|
AaveV3ATokenPayback: '0xedfc68e2874b0afc0963e18ae4d68522aec7f97d',
|
|
1922
1929
|
AaveV3View: '0xc9d6efa6e08b66a5cdc516bcd5807c2fa69e0f2a',
|
|
1923
1930
|
AaveV3DelegateWithSig: '0x169D6E128238ebabF86032Ae9da65938eaD7F69e',
|
|
1924
|
-
AaveV3DelegateCredit: '
|
|
1931
|
+
AaveV3DelegateCredit: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce'
|
|
1925
1932
|
},
|
|
1926
1933
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.plasma.chainId]: {
|
|
1927
1934
|
// Basic
|
|
@@ -1945,6 +1952,7 @@ var actionAddresses = {
|
|
|
1945
1952
|
FLAction: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7',
|
|
1946
1953
|
// fix temp
|
|
1947
1954
|
FLAaveV3: '0x40C9ce603923AACD0b7407Ff0EE844c9C067cEB7',
|
|
1955
|
+
FLAaveV3CarryDebt: '0x6Dc6C0e38fBd066b89Ba7E6f711B4288246891b3',
|
|
1948
1956
|
// AaveV3
|
|
1949
1957
|
AaveV3Withdraw: '0x4839d021A24820e57C31D386d430e2e82694F73B',
|
|
1950
1958
|
AaveV3Supply: '0x9D95de57631DD8Ac071892843DA67FEe52EA3962',
|
|
@@ -1956,7 +1964,7 @@ var actionAddresses = {
|
|
|
1956
1964
|
AaveV3ATokenPayback: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
|
|
1957
1965
|
AaveV3View: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
|
|
1958
1966
|
AaveV3DelegateWithSig: '0x49658E0CF3883c338397C7257619B280dF581057',
|
|
1959
|
-
AaveV3DelegateCredit: '
|
|
1967
|
+
AaveV3DelegateCredit: '0x6F53fa9e7d1323d24515a51AB72Da3cf1E9883Bc',
|
|
1960
1968
|
// Fluid
|
|
1961
1969
|
FluidVaultT1Open: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
|
1962
1970
|
FluidVaultT1Adjust: '0xD37d4DB98E67305ef92f34886B25500500E04Aed',
|
|
@@ -5477,8 +5485,8 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
|
5477
5485
|
*/
|
|
5478
5486
|
class AaveV3FlashLoanAction extends _ActionWithL2__WEBPACK_IMPORTED_MODULE_0__.ActionWithL2 {
|
|
5479
5487
|
/**
|
|
5480
|
-
* @param loanAmounts
|
|
5481
5488
|
* @param tokens
|
|
5489
|
+
* @param loanAmounts
|
|
5482
5490
|
* @param modes
|
|
5483
5491
|
* @param loanPayer
|
|
5484
5492
|
* @param flParamGetterAddr
|
|
@@ -5538,8 +5546,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5538
5546
|
*/
|
|
5539
5547
|
class AaveV3FlashLoanNoFeeAction extends _ActionWithL2__WEBPACK_IMPORTED_MODULE_0__.ActionWithL2 {
|
|
5540
5548
|
/**
|
|
5541
|
-
* @param loanAmounts
|
|
5542
5549
|
* @param tokens
|
|
5550
|
+
* @param loanAmounts
|
|
5543
5551
|
* @param modes
|
|
5544
5552
|
* @param loanPayer
|
|
5545
5553
|
* @param flParamGetterAddr
|
|
@@ -5598,25 +5606,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5598
5606
|
*/
|
|
5599
5607
|
class AaveV3FlashLoanCarryDebtAction extends _ActionWithL2__WEBPACK_IMPORTED_MODULE_0__.ActionWithL2 {
|
|
5600
5608
|
/**
|
|
5601
|
-
* @param loanAmounts
|
|
5602
5609
|
* @param tokens
|
|
5603
|
-
* @param
|
|
5604
|
-
* @param loanPayer
|
|
5610
|
+
* @param loanAmounts
|
|
5605
5611
|
* @param flParamGetterAddr
|
|
5606
5612
|
* @param flParamGetterData
|
|
5607
5613
|
*/
|
|
5608
|
-
constructor(tokens, loanAmounts
|
|
5609
|
-
var flParamGetterAddr = arguments.length >
|
|
5610
|
-
var flParamGetterData = arguments.length >
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
throw new Error('Arrays must be of the same length');
|
|
5614
|
+
constructor(tokens, loanAmounts) {
|
|
5615
|
+
var flParamGetterAddr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty');
|
|
5616
|
+
var flParamGetterData = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
5617
|
+
if (tokens.length !== loanAmounts.length) {
|
|
5618
|
+
throw new Error('Tokens and loan amounts must be of the same length');
|
|
5614
5619
|
}
|
|
5615
|
-
modes.
|
|
5616
|
-
|
|
5617
|
-
throw new Error('Invalid borrow mode set');
|
|
5618
|
-
}
|
|
5619
|
-
});
|
|
5620
|
+
var modes = Array(tokens.length).fill(2); // always use variable borrow rate
|
|
5621
|
+
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, []]);
|
|
5620
5622
|
}
|
|
5621
5623
|
}
|
|
5622
5624
|
|
|
@@ -10472,7 +10474,7 @@ class AaveV3DelegateCredit extends _ActionWithL2__WEBPACK_IMPORTED_MODULE_0__.Ac
|
|
|
10472
10474
|
* @param amount Amount of tokens to be payed back
|
|
10473
10475
|
* @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
|
|
10474
10476
|
* @param assetId The id of the token to be borrowed
|
|
10475
|
-
* @param delegatee The
|
|
10477
|
+
* @param delegatee The address of the delegatee to be credited
|
|
10476
10478
|
*/
|
|
10477
10479
|
constructor(useOnDefaultMarket, market, amount, rateMode, assetId, delegatee) {
|
|
10478
10480
|
super('AaveV3DelegateCredit', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('Empty'), ['uint256', 'address', 'uint16', 'uint8', 'bool', 'address'], [amount, delegatee, assetId, rateMode, useOnDefaultMarket, market]);
|