@defisaver/sdk 1.0.24 → 1.0.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.
Files changed (40) hide show
  1. package/esm/src/Action.js +2 -1
  2. package/esm/src/actions/curveusd/CurveUsdCreateAction.js +2 -4
  3. package/esm/src/actions/curveusd/CurveUsdPaybackAction.js +1 -1
  4. package/esm/src/actions/curveusd/CurveUsdRepayAction.d.ts +9 -0
  5. package/esm/src/actions/curveusd/CurveUsdRepayAction.js +14 -0
  6. package/esm/src/actions/curveusd/CurveUsdSupplyAction.js +2 -4
  7. package/esm/src/actions/curveusd/CurveUsdWithdrawAction.js +1 -1
  8. package/esm/src/actions/curveusd/index.d.ts +1 -0
  9. package/esm/src/actions/curveusd/index.js +1 -0
  10. package/esm/src/actions/morpho/aaveV3/MorphoAaveV3BorrowAction.d.ts +18 -0
  11. package/esm/src/actions/morpho/aaveV3/MorphoAaveV3BorrowAction.js +27 -0
  12. package/esm/src/actions/morpho/aaveV3/MorphoAaveV3PaybackAction.d.ts +21 -0
  13. package/esm/src/actions/morpho/aaveV3/MorphoAaveV3PaybackAction.js +44 -0
  14. package/esm/src/actions/morpho/aaveV3/MorphoAaveV3SupplyAction.d.ts +23 -0
  15. package/esm/src/actions/morpho/aaveV3/MorphoAaveV3SupplyAction.js +47 -0
  16. package/esm/src/actions/morpho/aaveV3/MorphoAaveV3WithdrawAction.d.ts +19 -0
  17. package/esm/src/actions/morpho/aaveV3/MorphoAaveV3WithdrawAction.js +29 -0
  18. package/esm/src/actions/morpho/index.d.ts +4 -0
  19. package/esm/src/actions/morpho/index.js +4 -0
  20. package/esm/src/addresses.d.ts +27 -0
  21. package/esm/src/addresses.js +11 -0
  22. package/esm/src/index.d.ts +108 -0
  23. package/esm/src/utils/curveusd-utils.d.ts +5 -0
  24. package/esm/src/utils/curveusd-utils.js +5 -1
  25. package/package.json +1 -1
  26. package/src/Action.ts +2 -1
  27. package/src/actions/curveusd/CurveUsdCreateAction.ts +2 -6
  28. package/src/actions/curveusd/CurveUsdPaybackAction.ts +3 -3
  29. package/src/actions/curveusd/CurveUsdRepayAction.ts +27 -0
  30. package/src/actions/curveusd/CurveUsdSupplyAction.ts +2 -6
  31. package/src/actions/curveusd/CurveUsdWithdrawAction.ts +3 -3
  32. package/src/actions/curveusd/index.ts +2 -0
  33. package/src/actions/morpho/aaveV3/MorphoAaveV3BorrowAction.ts +42 -0
  34. package/src/actions/morpho/aaveV3/MorphoAaveV3PaybackAction.ts +47 -0
  35. package/src/actions/morpho/aaveV3/MorphoAaveV3SupplyAction.ts +52 -0
  36. package/src/actions/morpho/aaveV3/MorphoAaveV3WithdrawAction.ts +45 -0
  37. package/src/actions/morpho/index.ts +4 -0
  38. package/src/addresses.ts +13 -0
  39. package/src/utils/curveusd-utils.ts +6 -1
  40. package/umd/index.js +313 -136
package/esm/src/Action.js CHANGED
@@ -108,7 +108,8 @@ export class Action {
108
108
  return [AbiCoder.encodeParameter(_paramType, _arg)];
109
109
  }
110
110
  encodeForL2DsProxyCall() {
111
- return this._encodeForCall()[0];
111
+ const executeActionDirectAbi = (ActionAbi.find(({ name }) => name === 'executeActionDirect'));
112
+ return AbiCoder.encodeFunctionCall(executeActionDirectAbi, this._encodeForCall());
112
113
  }
113
114
  encodeForL2Recipe() {
114
115
  return this._encodeForCall()[0];
@@ -7,12 +7,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { compare } from '@defisaver/tokens/esm/utils';
11
- import { getAssetInfo } from '@defisaver/tokens';
12
10
  import { Action } from '../../Action';
13
11
  import { requireAddress } from '../../utils/general';
14
12
  import { getAddr } from '../../addresses';
15
- import { curveusdMarkets } from '../../utils/curveusd-utils';
13
+ import { controllerToAssetMap } from '../../utils/curveusd-utils';
16
14
  /**
17
15
  * CurveUsdCreateAction - Action that creates a curveusd position on behalf of proxy
18
16
  *
@@ -39,7 +37,7 @@ export class CurveUsdCreateAction extends Action {
39
37
  return __awaiter(this, void 0, void 0, function* () {
40
38
  return [{
41
39
  owner: this.args[1],
42
- asset: getAssetInfo(Object.entries(curveusdMarkets).filter(([, { controllerAddress }]) => compare(controllerAddress, this.args[0]))[0][0]).address,
40
+ asset: controllerToAssetMap[this.args[0]],
43
41
  }];
44
42
  });
45
43
  }
@@ -27,7 +27,7 @@ export class CurveUsdPaybackAction extends Action {
27
27
  /// @dev debtAmount must be non-zero
28
28
  /// @dev if debtAmount >= debt will repay whole debt and close the position, transfering collateral
29
29
  constructor(controllerAddress, from, onBehalfOf, to, debtAmount, maxActiveBand) {
30
- super('CurveUsdBorrow', getAddr('CurveUsdBorrow'), ['address', 'address', 'address', 'address', 'uint256', 'int256'], [controllerAddress, from, onBehalfOf, to, debtAmount, maxActiveBand]);
30
+ super('CurveUsdPayback', getAddr('CurveUsdPayback'), ['address', 'address', 'address', 'address', 'uint256', 'int256'], [controllerAddress, from, onBehalfOf, to, debtAmount, maxActiveBand]);
31
31
  this.mappableArgs = [
32
32
  ...this.args,
33
33
  ];
@@ -0,0 +1,9 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256, int256 } from '../../types';
3
+ /**
4
+ *
5
+ * @category CurveUsd
6
+ */
7
+ export declare class CurveUsdRepayAction extends Action {
8
+ constructor(controllerAddress: EthAddress, collAmount: uint256, to: EthAddress, swapData: int256[]);
9
+ }
@@ -0,0 +1,14 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ *
5
+ * @category CurveUsd
6
+ */
7
+ export class CurveUsdRepayAction extends Action {
8
+ constructor(controllerAddress, collAmount, to, swapData) {
9
+ super('CurveUsdRepay', getAddr('CurveUsdRepay'), ['address', 'uint256', 'address', 'uint256[]'], [controllerAddress, collAmount, to, swapData]);
10
+ this.mappableArgs = [
11
+ ...this.args,
12
+ ];
13
+ }
14
+ }
@@ -7,11 +7,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { compare } from '@defisaver/tokens/esm/utils';
11
- import { getAssetInfo } from '@defisaver/tokens';
12
10
  import { Action } from '../../Action';
13
11
  import { getAddr } from '../../addresses';
14
- import { curveusdMarkets } from '../../utils/curveusd-utils';
12
+ import { controllerToAssetMap } from '../../utils/curveusd-utils';
15
13
  /**
16
14
  * CurveUsdSupplyAction - Action that supplies collateral to a curveusd position
17
15
  *
@@ -35,7 +33,7 @@ export class CurveUsdSupplyAction extends Action {
35
33
  return __awaiter(this, void 0, void 0, function* () {
36
34
  return [{
37
35
  owner: this.args[1],
38
- asset: getAssetInfo(Object.entries(curveusdMarkets).filter(([, { controllerAddress }]) => compare(controllerAddress, this.args[0]))[0][0]).address,
36
+ asset: controllerToAssetMap[this.args[0]],
39
37
  }];
40
38
  });
41
39
  }
@@ -14,7 +14,7 @@ export class CurveUsdWithdrawAction extends Action {
14
14
  /// @dev collateralAmount must be non-zero
15
15
  /// @dev if collateralAmount == uintMax will withdraw as much as the debt will allow
16
16
  constructor(controllerAddress, to, collateralAmount) {
17
- super('CurveUsdSupply', getAddr('CurveUsdSupply'), ['address', 'address', 'uint256'], [controllerAddress, to, collateralAmount]);
17
+ super('CurveUsdWithdraw', getAddr('CurveUsdWithdraw'), ['address', 'address', 'uint256'], [controllerAddress, to, collateralAmount]);
18
18
  this.mappableArgs = [
19
19
  ...this.args,
20
20
  ];
@@ -3,3 +3,4 @@ export * from './CurveUsdSupplyAction';
3
3
  export * from './CurveUsdWithdrawAction';
4
4
  export * from './CurveUsdBorrowAction';
5
5
  export * from './CurveUsdPaybackAction';
6
+ export * from './CurveUsdRepayAction';
@@ -3,3 +3,4 @@ export * from './CurveUsdSupplyAction';
3
3
  export * from './CurveUsdWithdrawAction';
4
4
  export * from './CurveUsdBorrowAction';
5
5
  export * from './CurveUsdPaybackAction';
6
+ export * from './CurveUsdRepayAction';
@@ -0,0 +1,18 @@
1
+ import { Action } from '../../../Action';
2
+ import { EthAddress, uint256 } from '../../../types';
3
+ /**
4
+ * MorphoAaveV3BorrowAction - Borrow token from Morpho AaveV3
5
+ *
6
+ * @category Morpho
7
+ */
8
+ export declare class MorphoAaveV3BorrowAction extends Action {
9
+ /**
10
+ * @param emodeId Type of emode we are entering in, each one is different deployment on Morpho
11
+ * @param tokenAddr - Address of tokenAddr (underlying)
12
+ * @param amount - Token amount
13
+ * @param to - The address we are sending the borrowed tokens to
14
+ * @param onBehalf - For what user we are borrowing the tokens, defaults to proxy
15
+ * @param maxIterations - Max number of iterations for p2p matching, 0 will use default num of iterations
16
+ */
17
+ constructor(emodeId: uint256, tokenAddr: EthAddress, amount: uint256, to: EthAddress, onBehalf?: EthAddress, maxIterations?: uint256);
18
+ }
@@ -0,0 +1,27 @@
1
+ import { Action } from '../../../Action';
2
+ import { getAddr } from '../../../addresses';
3
+ /**
4
+ * MorphoAaveV3BorrowAction - Borrow token from Morpho AaveV3
5
+ *
6
+ * @category Morpho
7
+ */
8
+ export class MorphoAaveV3BorrowAction extends Action {
9
+ /**
10
+ * @param emodeId Type of emode we are entering in, each one is different deployment on Morpho
11
+ * @param tokenAddr - Address of tokenAddr (underlying)
12
+ * @param amount - Token amount
13
+ * @param to - The address we are sending the borrowed tokens to
14
+ * @param onBehalf - For what user we are borrowing the tokens, defaults to proxy
15
+ * @param maxIterations - Max number of iterations for p2p matching, 0 will use default num of iterations
16
+ */
17
+ constructor(emodeId, tokenAddr, amount, to, onBehalf = getAddr('Empty'), maxIterations = '4') {
18
+ super('MorphoAaveV3Borrow', getAddr('MorphoAaveV3Borrow'), ['uint256', 'address', 'uint256', 'address', 'address', 'uint256'], [emodeId, tokenAddr, amount, to, onBehalf, maxIterations]);
19
+ this.mappableArgs = [
20
+ this.args[0],
21
+ this.args[1],
22
+ this.args[2],
23
+ this.args[3],
24
+ this.args[4],
25
+ ];
26
+ }
27
+ }
@@ -0,0 +1,21 @@
1
+ import { Action } from '../../../Action';
2
+ import { EthAddress, uint256 } from '../../../types';
3
+ /**
4
+ * MorphoAaveV3PaybackAction - Payback token to Morpho AaveV3
5
+ *
6
+ * @category Morpho
7
+ */
8
+ export declare class MorphoAaveV3PaybackAction extends Action {
9
+ /**
10
+ * @param emodeId Type of emode we are entering in, each one is different deployment on Morpho
11
+ * @param tokenAddr - Address of tokenAddr (underlying)
12
+ * @param amount - Token amount
13
+ * @param from - Tokens will be sent from this address
14
+ * @param onBehalf - For what user we are paying back the debt, defaults to proxy
15
+ */
16
+ constructor(emodeId: uint256, tokenAddr: EthAddress, amount: uint256, from: EthAddress, onBehalf?: EthAddress);
17
+ getAssetsToApprove(): Promise<{
18
+ asset: any;
19
+ owner: any;
20
+ }[]>;
21
+ }
@@ -0,0 +1,44 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { getAssetInfoByAddress } from '@defisaver/tokens';
11
+ import { Action } from '../../../Action';
12
+ import { getAddr } from '../../../addresses';
13
+ /**
14
+ * MorphoAaveV3PaybackAction - Payback token to Morpho AaveV3
15
+ *
16
+ * @category Morpho
17
+ */
18
+ export class MorphoAaveV3PaybackAction extends Action {
19
+ /**
20
+ * @param emodeId Type of emode we are entering in, each one is different deployment on Morpho
21
+ * @param tokenAddr - Address of tokenAddr (underlying)
22
+ * @param amount - Token amount
23
+ * @param from - Tokens will be sent from this address
24
+ * @param onBehalf - For what user we are paying back the debt, defaults to proxy
25
+ */
26
+ constructor(emodeId, tokenAddr, amount, from, onBehalf = getAddr('Empty')) {
27
+ super('MorphoAaveV3Payback', getAddr('MorphoAaveV3Payback'), ['uint256', 'address', 'uint256', 'address', 'address'], [emodeId, tokenAddr, amount, from, onBehalf]);
28
+ this.mappableArgs = [
29
+ this.args[0],
30
+ this.args[1],
31
+ this.args[2],
32
+ this.args[3],
33
+ this.args[4],
34
+ ];
35
+ }
36
+ getAssetsToApprove() {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ const asset = getAssetInfoByAddress(this.args[1]);
39
+ if (asset.symbol !== 'ETH')
40
+ return [{ asset: this.args[1], owner: this.args[3] }];
41
+ return [];
42
+ });
43
+ }
44
+ }
@@ -0,0 +1,23 @@
1
+ import { Action } from '../../../Action';
2
+ import { EthAddress, uint256 } from '../../../types';
3
+ /**
4
+ * MorphoAaveV3SupplyAction - Supply token to morpho aaveV3
5
+ *
6
+ * @category Morpho
7
+ */
8
+ export declare class MorphoAaveV3SupplyAction extends Action {
9
+ /**
10
+ * @param emodeId Type of emode we are entering in, each one is different deployment on Morpho
11
+ * @param tokenAddr - Address of tokenAddr (underlying)
12
+ * @param amount - Token amount
13
+ * @param from - Tokens will be sent from this address
14
+ * @param onBehalf - For what user we are paying back the debt, defaults to proxy
15
+ * @param supplyAsColl Whether to supplyAsCollateral or regular supply
16
+ * @param maxIterations Max number of iterations for p2p matching, 0 will use default num of iterations
17
+ */
18
+ constructor(emodeId: uint256, tokenAddr: EthAddress, amount: uint256, from: EthAddress, onBehalf?: EthAddress, supplyAsColl?: boolean, maxIterations?: uint256);
19
+ getAssetsToApprove(): Promise<{
20
+ asset: any;
21
+ owner: any;
22
+ }[]>;
23
+ }
@@ -0,0 +1,47 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { getAssetInfoByAddress } from '@defisaver/tokens';
11
+ import { Action } from '../../../Action';
12
+ import { getAddr } from '../../../addresses';
13
+ /**
14
+ * MorphoAaveV3SupplyAction - Supply token to morpho aaveV3
15
+ *
16
+ * @category Morpho
17
+ */
18
+ export class MorphoAaveV3SupplyAction extends Action {
19
+ /**
20
+ * @param emodeId Type of emode we are entering in, each one is different deployment on Morpho
21
+ * @param tokenAddr - Address of tokenAddr (underlying)
22
+ * @param amount - Token amount
23
+ * @param from - Tokens will be sent from this address
24
+ * @param onBehalf - For what user we are paying back the debt, defaults to proxy
25
+ * @param supplyAsColl Whether to supplyAsCollateral or regular supply
26
+ * @param maxIterations Max number of iterations for p2p matching, 0 will use default num of iterations
27
+ */
28
+ constructor(emodeId, tokenAddr, amount, from, onBehalf = getAddr('Empty'), supplyAsColl = true, maxIterations = '4') {
29
+ super('MorphoAaveV3Supply', getAddr('MorphoAaveV3Supply'), ['uint256', 'address', 'uint256', 'address', 'address', 'bool', 'uint256'], [emodeId, tokenAddr, amount, from, onBehalf, supplyAsColl, maxIterations]);
30
+ this.mappableArgs = [
31
+ this.args[0],
32
+ this.args[1],
33
+ this.args[2],
34
+ this.args[3],
35
+ this.args[4],
36
+ this.args[5],
37
+ ];
38
+ }
39
+ getAssetsToApprove() {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ const asset = getAssetInfoByAddress(this.args[1]);
42
+ if (asset.symbol !== 'ETH')
43
+ return [{ asset: this.args[1], owner: this.args[3] }];
44
+ return [];
45
+ });
46
+ }
47
+ }
@@ -0,0 +1,19 @@
1
+ import { Action } from '../../../Action';
2
+ import { EthAddress, uint256 } from '../../../types';
3
+ /**
4
+ * MorphoAaveV3WithdrawAction - Withdraw token from Morpho AaveV3
5
+ *
6
+ * @category Morpho
7
+ */
8
+ export declare class MorphoAaveV3WithdrawAction extends Action {
9
+ /**
10
+ * @param emodeId Type of emode we are entering in, each one is different deployment on Morpho
11
+ * @param tokenAddr - Address of tokenAddr (underlying)
12
+ * @param amount - Token amount
13
+ * @param to - Tokens will be sent to this address
14
+ * @param onBehalf - For what user we are withdrawing the tokens, defaults to proxy
15
+ * @param withdrawAsColl - If we want to withdraw from collateral or from pure supply
16
+ * @param maxIterations - Max number of iterations for p2p matching, 0 will use default num of iterations
17
+ */
18
+ constructor(emodeId: uint256, tokenAddr: EthAddress, amount: uint256, to: EthAddress, onBehalf?: EthAddress, withdrawAsColl?: boolean, maxIterations?: uint256);
19
+ }
@@ -0,0 +1,29 @@
1
+ import { Action } from '../../../Action';
2
+ import { getAddr } from '../../../addresses';
3
+ /**
4
+ * MorphoAaveV3WithdrawAction - Withdraw token from Morpho AaveV3
5
+ *
6
+ * @category Morpho
7
+ */
8
+ export class MorphoAaveV3WithdrawAction extends Action {
9
+ /**
10
+ * @param emodeId Type of emode we are entering in, each one is different deployment on Morpho
11
+ * @param tokenAddr - Address of tokenAddr (underlying)
12
+ * @param amount - Token amount
13
+ * @param to - Tokens will be sent to this address
14
+ * @param onBehalf - For what user we are withdrawing the tokens, defaults to proxy
15
+ * @param withdrawAsColl - If we want to withdraw from collateral or from pure supply
16
+ * @param maxIterations - Max number of iterations for p2p matching, 0 will use default num of iterations
17
+ */
18
+ constructor(emodeId, tokenAddr, amount, to, onBehalf = getAddr('Empty'), withdrawAsColl = true, maxIterations = '4') {
19
+ super('MorphoAaveV3Withdraw', getAddr('MorphoAaveV3Withdraw'), ['uint256', 'address', 'uint256', 'address', 'address', 'bool', 'uint256'], [emodeId, tokenAddr, amount, to, onBehalf, withdrawAsColl, maxIterations]);
20
+ this.mappableArgs = [
21
+ this.args[0],
22
+ this.args[1],
23
+ this.args[2],
24
+ this.args[3],
25
+ this.args[4],
26
+ this.args[5],
27
+ ];
28
+ }
29
+ }
@@ -3,3 +3,7 @@ export * from './MorphoAaveV2WithdrawAction';
3
3
  export * from './MorphoAaveV2BorrowAction';
4
4
  export * from './MorphoAaveV2PaybackAction';
5
5
  export * from './MorphoClaimAction';
6
+ export * from './aaveV3/MorphoAaveV3SupplyAction';
7
+ export * from './aaveV3/MorphoAaveV3WithdrawAction';
8
+ export * from './aaveV3/MorphoAaveV3BorrowAction';
9
+ export * from './aaveV3/MorphoAaveV3PaybackAction';
@@ -3,3 +3,7 @@ export * from './MorphoAaveV2WithdrawAction';
3
3
  export * from './MorphoAaveV2BorrowAction';
4
4
  export * from './MorphoAaveV2PaybackAction';
5
5
  export * from './MorphoClaimAction';
6
+ export * from './aaveV3/MorphoAaveV3SupplyAction';
7
+ export * from './aaveV3/MorphoAaveV3WithdrawAction';
8
+ export * from './aaveV3/MorphoAaveV3BorrowAction';
9
+ export * from './aaveV3/MorphoAaveV3PaybackAction';
@@ -54,6 +54,10 @@ export declare const actionAddresses: {
54
54
  MorphoAaveV2Supply: string;
55
55
  MorphoAaveV2Withdraw: string;
56
56
  MorphoClaim: string;
57
+ MorphoAaveV3Borrow: string;
58
+ MorphoAaveV3Payback: string;
59
+ MorphoAaveV3Supply: string;
60
+ MorphoAaveV3Withdraw: string;
57
61
  CompBorrow: string;
58
62
  CompClaim: string;
59
63
  CompPayback: string;
@@ -137,6 +141,11 @@ export declare const actionAddresses: {
137
141
  CompV3Supply: string;
138
142
  CompV3Transfer: string;
139
143
  CompV3Withdraw: string;
144
+ CurveUsdBorrow: string;
145
+ CurveUsdCreate: string;
146
+ CurveUsdPayback: string;
147
+ CurveUsdSupply: string;
148
+ CurveUsdWithdraw: string;
140
149
  AaveV3RatioTrigger?: undefined;
141
150
  GasFeeTakerL2?: undefined;
142
151
  AaveV3RatioCheck?: undefined;
@@ -206,6 +215,10 @@ export declare const actionAddresses: {
206
215
  MorphoAaveV2Supply?: undefined;
207
216
  MorphoAaveV2Withdraw?: undefined;
208
217
  MorphoClaim?: undefined;
218
+ MorphoAaveV3Borrow?: undefined;
219
+ MorphoAaveV3Payback?: undefined;
220
+ MorphoAaveV3Supply?: undefined;
221
+ MorphoAaveV3Withdraw?: undefined;
209
222
  CompBorrow?: undefined;
210
223
  CompClaim?: undefined;
211
224
  CompPayback?: undefined;
@@ -280,6 +293,11 @@ export declare const actionAddresses: {
280
293
  CompV3Supply?: undefined;
281
294
  CompV3Transfer?: undefined;
282
295
  CompV3Withdraw?: undefined;
296
+ CurveUsdBorrow?: undefined;
297
+ CurveUsdCreate?: undefined;
298
+ CurveUsdPayback?: undefined;
299
+ CurveUsdSupply?: undefined;
300
+ CurveUsdWithdraw?: undefined;
283
301
  } | {
284
302
  DFSSell: string;
285
303
  WrapEth: string;
@@ -345,6 +363,10 @@ export declare const actionAddresses: {
345
363
  MorphoAaveV2Supply?: undefined;
346
364
  MorphoAaveV2Withdraw?: undefined;
347
365
  MorphoClaim?: undefined;
366
+ MorphoAaveV3Borrow?: undefined;
367
+ MorphoAaveV3Payback?: undefined;
368
+ MorphoAaveV3Supply?: undefined;
369
+ MorphoAaveV3Withdraw?: undefined;
348
370
  CompBorrow?: undefined;
349
371
  CompClaim?: undefined;
350
372
  CompPayback?: undefined;
@@ -419,6 +441,11 @@ export declare const actionAddresses: {
419
441
  CompV3Supply?: undefined;
420
442
  CompV3Transfer?: undefined;
421
443
  CompV3Withdraw?: undefined;
444
+ CurveUsdBorrow?: undefined;
445
+ CurveUsdCreate?: undefined;
446
+ CurveUsdPayback?: undefined;
447
+ CurveUsdSupply?: undefined;
448
+ CurveUsdWithdraw?: undefined;
422
449
  AaveV3RatioTrigger?: undefined;
423
450
  };
424
451
  };
@@ -62,6 +62,11 @@ export const actionAddresses = {
62
62
  MorphoAaveV2Supply: '0x60ED1Cf5Da785AA4FD4A4fF3f8cFc0682d60E0F3',
63
63
  MorphoAaveV2Withdraw: '0x29a8b5a8889f465c85b778edccf984e44ad70f12',
64
64
  MorphoClaim: '0xa269C841E26EA8Ee1F0350a2E5905F71446998dC',
65
+ // morpho aave v3
66
+ MorphoAaveV3Borrow: '0x487719C57b88477F19423aB0652b3E26b96baA7F',
67
+ MorphoAaveV3Payback: '0x36b8b968c81D97cBfAa642e206b634A6f378d287',
68
+ MorphoAaveV3Supply: '0x51fA8FBc6F0aDEfe2FBA06104FCA39f5beD69291',
69
+ MorphoAaveV3Withdraw: '0xdc3e74C4cD577275296ceFE36A3D082223AfF206',
65
70
  // compound
66
71
  CompBorrow: '0x8495579BF6Ae848f7E59686536F834f1d2CCd79C',
67
72
  CompClaim: '0x81F488cF7A0128A9DB5e7207042cCAB1CB0ac902',
@@ -163,6 +168,12 @@ export const actionAddresses = {
163
168
  CompV3Supply: '0xaF36Eca43bb26468078B8163fe5Bc1fCFc292095',
164
169
  CompV3Transfer: '0xeD7450e9C17146476137b77198DFfB17857906c4',
165
170
  CompV3Withdraw: '0x0b0F21EDE32DE4243D9145a899E97FC2366Aec46',
171
+ // crvUSD
172
+ CurveUsdBorrow: '0x1BA4D23c1af6a57257bA54DDb9Dbc009941924a6',
173
+ CurveUsdCreate: '0x8Be91C3a8095B7086ea950f4E4AeF16eDe47Df25',
174
+ CurveUsdPayback: '0x9BD581efD76DeC4FA4a71B9e583094874fE1d9Ab',
175
+ CurveUsdSupply: '0x3eA5d08F8f7d6bA52DAa88c47E349125437e0eEA',
176
+ CurveUsdWithdraw: '0xa05Afb6C7f8b7B76B890c0839A4ceC17667Cde29',
166
177
  },
167
178
  [NETWORKS.optimism.chainId]: {
168
179
  DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',