@defisaver/sdk 1.3.15 → 1.3.17-aave-v4-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/src/Strategy.d.ts +1 -0
- package/esm/src/Strategy.js +3 -0
- package/esm/src/actions/aavev4/AaveV4BorrowAction.d.ts +17 -0
- package/esm/src/actions/aavev4/AaveV4BorrowAction.js +26 -0
- package/esm/src/actions/aavev4/AaveV4CollateralSwitchAction.d.ts +16 -0
- package/esm/src/actions/aavev4/AaveV4CollateralSwitchAction.js +24 -0
- package/esm/src/actions/aavev4/AaveV4PaybackAction.d.ts +23 -0
- package/esm/src/actions/aavev4/AaveV4PaybackAction.js +46 -0
- package/esm/src/actions/aavev4/AaveV4StoreRatioAction.d.ts +14 -0
- package/esm/src/actions/aavev4/AaveV4StoreRatioAction.js +20 -0
- package/esm/src/actions/aavev4/AaveV4SupplyAction.d.ts +25 -0
- package/esm/src/actions/aavev4/AaveV4SupplyAction.js +49 -0
- package/esm/src/actions/aavev4/AaveV4WithdrawAction.d.ts +17 -0
- package/esm/src/actions/aavev4/AaveV4WithdrawAction.js +26 -0
- package/esm/src/actions/aavev4/index.d.ts +6 -0
- package/esm/src/actions/aavev4/index.js +6 -0
- package/esm/src/actions/checkers/AaveV4RatioCheckAction.d.ts +16 -0
- package/esm/src/actions/checkers/AaveV4RatioCheckAction.js +24 -0
- package/esm/src/actions/checkers/index.d.ts +1 -0
- package/esm/src/actions/checkers/index.js +1 -0
- package/esm/src/actions/index.d.ts +2 -1
- package/esm/src/actions/index.js +2 -1
- package/esm/src/actions/summerfi/SummerfiUnsubAction.d.ts +12 -0
- package/esm/src/actions/summerfi/SummerfiUnsubAction.js +18 -0
- package/esm/src/actions/summerfi/SummerfiUnsubV2Action.d.ts +13 -0
- package/esm/src/actions/summerfi/SummerfiUnsubV2Action.js +20 -0
- package/esm/src/actions/summerfi/index.d.ts +2 -0
- package/esm/src/actions/summerfi/index.js +2 -0
- package/esm/src/addresses.d.ts +47 -0
- package/esm/src/addresses.js +29 -11
- package/esm/src/index.d.ts +188 -0
- package/esm/src/triggers/AaveV4QuotePriceRangeTrigger.d.ts +10 -0
- package/esm/src/triggers/AaveV4QuotePriceRangeTrigger.js +12 -0
- package/esm/src/triggers/AaveV4QuotePriceTrigger.d.ts +10 -0
- package/esm/src/triggers/AaveV4QuotePriceTrigger.js +12 -0
- package/esm/src/triggers/AaveV4RatioTrigger.d.ts +10 -0
- package/esm/src/triggers/AaveV4RatioTrigger.js +12 -0
- package/esm/src/triggers/index.d.ts +3 -0
- package/esm/src/triggers/index.js +3 -0
- package/package.json +1 -1
- package/src/Strategy.ts +4 -0
- package/src/actions/aavev4/AaveV4BorrowAction.ts +39 -0
- package/src/actions/aavev4/AaveV4CollateralSwitchAction.ts +36 -0
- package/src/actions/aavev4/AaveV4PaybackAction.ts +51 -0
- package/src/actions/aavev4/AaveV4StoreRatioAction.ts +30 -0
- package/src/actions/aavev4/AaveV4SupplyAction.ts +55 -0
- package/src/actions/aavev4/AaveV4WithdrawAction.ts +39 -0
- package/src/actions/aavev4/index.ts +6 -0
- package/src/actions/checkers/AaveV4RatioCheckAction.ts +36 -0
- package/src/actions/checkers/index.ts +2 -1
- package/src/actions/index.ts +2 -0
- package/src/actions/summerfi/SummerfiUnsubAction.ts +28 -0
- package/src/actions/summerfi/SummerfiUnsubV2Action.ts +31 -0
- package/src/actions/summerfi/index.ts +2 -0
- package/src/addresses.ts +106 -49
- package/src/triggers/AaveV4QuotePriceRangeTrigger.ts +25 -0
- package/src/triggers/AaveV4QuotePriceTrigger.ts +25 -0
- package/src/triggers/AaveV4RatioTrigger.ts +24 -0
- package/src/triggers/index.ts +4 -1
- package/umd/index.js +1023 -570
package/src/addresses.ts
CHANGED
|
@@ -35,10 +35,13 @@ export const actionAddresses = {
|
|
|
35
35
|
SkyUnstake: '0x4b6d3A01465fa88D7D596333D15832434a568452',
|
|
36
36
|
SkyClaimRewards: '0x8A2A23DfC0CD1738bD4408F1668E2B12ACD95369',
|
|
37
37
|
SkyStakingEngineOpen: '0x7F7669d926beeba495e8D97C6DAF6C000F05AEC0',
|
|
38
|
-
SkyStakingEngineSelectFarm:
|
|
38
|
+
SkyStakingEngineSelectFarm:
|
|
39
|
+
'0x44fe1615294E9D50faeb690D2a944EAF8B500892',
|
|
39
40
|
SkyStakingEngineStake: '0xBb7F34F8A7809Ffe0775D13a783fE885EBB9aea5',
|
|
40
|
-
SkyStakingEngineUnstake:
|
|
41
|
-
|
|
41
|
+
SkyStakingEngineUnstake:
|
|
42
|
+
'0x5456F09bBbBDB6bFad50A22256bAC7f3DDaab121',
|
|
43
|
+
SkyStakingEngineClaimRewards:
|
|
44
|
+
'0x0aF3F032A8544c63c35FD2995be8EE2Df68d2c21',
|
|
42
45
|
|
|
43
46
|
// maker
|
|
44
47
|
McdGenerate: '0xCb50a91C0f12f439b8bf11E9474B9c1ED62Bf7a3',
|
|
@@ -59,12 +62,16 @@ export const actionAddresses = {
|
|
|
59
62
|
ReflexerPayback: '0xdAa3963798C2E3F5c16AAcc9114fc727C450d0cb',
|
|
60
63
|
ReflexerGenerate: '0x8e8Fd178A5FAE3A29F9CB1A06aBBBCFd5B83beb7',
|
|
61
64
|
ReflexerOpen: '0x4704a7cBd4d913d1233765B70531D601b4384011',
|
|
62
|
-
ReflexerWithdrawStuckFunds:
|
|
65
|
+
ReflexerWithdrawStuckFunds:
|
|
66
|
+
'0x64759d064aaA1f9Ac7A458520Aad06128Da9b7b8',
|
|
63
67
|
|
|
64
68
|
// not deployed as currently not used
|
|
65
|
-
ReflexerNativeUniV2SaviourDeposit:
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
ReflexerNativeUniV2SaviourDeposit:
|
|
70
|
+
'0x0000000000000000000000000000000000000000',
|
|
71
|
+
ReflexerNativeUniV2SaviourGetReserves:
|
|
72
|
+
'0x0000000000000000000000000000000000000000',
|
|
73
|
+
ReflexerNativeUniV2SaviourWithdraw:
|
|
74
|
+
'0x0000000000000000000000000000000000000000',
|
|
68
75
|
|
|
69
76
|
// aave
|
|
70
77
|
AaveBorrow: '0x1B95E800a869bc3F89914470a7901D93D1401cD1',
|
|
@@ -77,7 +84,8 @@ export const actionAddresses = {
|
|
|
77
84
|
AaveClaimStkAave: '0x5Dcd9Dc0185a6Ab07a31e5284D16Ce9f0A79Ce99',
|
|
78
85
|
// aave v3
|
|
79
86
|
AaveV3Withdraw: '0x9D4e4b26A5E2e6Dad30C5d95F5cE78A8310F04C2',
|
|
80
|
-
AaveV3SwapBorrowRateMode:
|
|
87
|
+
AaveV3SwapBorrowRateMode:
|
|
88
|
+
'0x630F530Ac523C935cf2528E62D0A06F8900C5b1B',
|
|
81
89
|
AaveV3Supply: '0x91b3fCCEA2f2e0622Cc1fb54E12f5ac5aAa55a87',
|
|
82
90
|
AaveV3SetEMode: '0xBe7F735d7955e0461579E34266f41F928AE06D78',
|
|
83
91
|
AaveV3Payback: '0xe29265217D65F5a2ae41972E09C13E107D049004',
|
|
@@ -120,7 +128,8 @@ export const actionAddresses = {
|
|
|
120
128
|
SparkSetEMode: '0x2252a83Da69A237686eD9AC07a38DDA74ec7cE5f',
|
|
121
129
|
SparkSpTokenPayback: '0x57403bB33A4829EBf5935D39eD08F19282F61d9c',
|
|
122
130
|
SparkSupply: '0xD10608B45718437082B9aF5DdC498080ad63Ac9E',
|
|
123
|
-
SparkSwapBorrowRateMode:
|
|
131
|
+
SparkSwapBorrowRateMode:
|
|
132
|
+
'0x71B0687C7ec0286dc3cfb715fe97249604aC898f',
|
|
124
133
|
SparkWithdraw: '0x1e3187D89e79B5c411D710E0fdF2709517852600',
|
|
125
134
|
SparkDelegateCredit: '0x0000000000000000000000000000000000000000',
|
|
126
135
|
SparkDelegateWithSig: '0xDaDC0a8B6359487257B91347064534c4B3fAc515',
|
|
@@ -144,7 +153,7 @@ export const actionAddresses = {
|
|
|
144
153
|
FLMaker: '0x0f8C3368cADF78167F5355D746Ed7b2A826A6e3b',
|
|
145
154
|
FLBalancer: '0x93d333930c7f7260a1E6061B0a8C0CbdEC95F367',
|
|
146
155
|
FLSpark: '0xe9Fe5a0f5e4B370Ae60d837da58744666D5C06F7',
|
|
147
|
-
FLAction: '
|
|
156
|
+
FLAction: '0xE78C05c508405207ecc256781B9415e6De1c8336',
|
|
148
157
|
FLUniV3: '0x9CAdAC8Be718572F82B672b950c53F0b58483A35',
|
|
149
158
|
FLGho: '0xbb67b81dD080a406227A38965d0393f396ddECBc',
|
|
150
159
|
FLMorphoBlue: '0x6206C96EAc5EAC546861438A9f953B6BEa50EBAB',
|
|
@@ -195,15 +204,19 @@ export const actionAddresses = {
|
|
|
195
204
|
LiquityV2Payback: '0x902cebdbF9ed3EC434C2246CDace1c825F0d5110',
|
|
196
205
|
LiquityV2Claim: '0x1b5a0c2573A1692bB183cC5d6f506e108c0599FC',
|
|
197
206
|
LiquityV2Adjust: '0x3BbC88f3b75cB898395C9b5AE8D9c2a26744993b',
|
|
198
|
-
LiquityV2AdjustInterestRate:
|
|
207
|
+
LiquityV2AdjustInterestRate:
|
|
208
|
+
'0x685f0237D8b85B2018278E975a481b0650dE0b54',
|
|
199
209
|
LiquityV2SPDeposit: '0x73FF552646A7D93764Ff8D1F9e7662c422E715ef',
|
|
200
210
|
LiquityV2SPWithdraw: '0x8E8a4213745Ed68b3fce9d1500f563d885D02FDf',
|
|
201
211
|
LiquityV2SPClaimColl: '0x3f783de20C3095bcB999AEA999aF4DF184b6630f',
|
|
202
|
-
LiquityV2AdjustZombieTrove:
|
|
212
|
+
LiquityV2AdjustZombieTrove:
|
|
213
|
+
'0x45F5CEe8f89AdBCe4f5B20f38a49402b152ba99e',
|
|
203
214
|
|
|
204
215
|
// b.protocol
|
|
205
|
-
BprotocolLiquitySPDeposit:
|
|
206
|
-
|
|
216
|
+
BprotocolLiquitySPDeposit:
|
|
217
|
+
'0x5A0436c7559e37da8cD24B0f66C155a0a2fd6309',
|
|
218
|
+
BprotocolLiquitySPWithdraw:
|
|
219
|
+
'0x20Ece7CB4463bB1DbA4C4fA800E321A05dfB028B',
|
|
207
220
|
|
|
208
221
|
// lido
|
|
209
222
|
LidoStake: '0x4a7dd38D2BcA817fb68165155F869ca4179d8060',
|
|
@@ -283,26 +296,35 @@ export const actionAddresses = {
|
|
|
283
296
|
CurveUsdLevCreate: '0xcbd9aFc2b7532b9eeB3A7EC4ea8Bb4320795d9Ad',
|
|
284
297
|
CurveUsdRepay: '0x6F91E8671d17ecEE3D3fb17DcCA87E86B8D83807',
|
|
285
298
|
CurveUsdSwapper: '0xFA8c594b903651F97b27aCADEa83b720cfD7F80b',
|
|
286
|
-
CurveUsdSwapperTransient:
|
|
299
|
+
CurveUsdSwapperTransient:
|
|
300
|
+
'0xcF0298592b8FCB3823d31Bb257b65afFCAcCb8b6',
|
|
287
301
|
CurveUsdSelfLiquidate: '0xd90d8a4955DfE9D4f45F7f60595313B0925ee1da',
|
|
288
|
-
CurveUsdSelfLiquidateWithColl:
|
|
302
|
+
CurveUsdSelfLiquidateWithColl:
|
|
303
|
+
'0x7cE305FC2A18c6820a533AD418dC0A549aFeDcAF',
|
|
289
304
|
CurveUsdGetDebt: '0x3Bb41d3f300dA758780fe7696bb4fB93cD7172fB',
|
|
290
|
-
CurveUsdCollRatioTrigger:
|
|
305
|
+
CurveUsdCollRatioTrigger:
|
|
306
|
+
'0xFCc610809b735BB13E583c5E46595457083D2b0c',
|
|
291
307
|
CurveUsdCollRatioCheck: '0x8c65f37ca216de1625886431249be13ead051388',
|
|
292
|
-
CurveUsdSelfLiquidateWithCollTransient:
|
|
293
|
-
|
|
308
|
+
CurveUsdSelfLiquidateWithCollTransient:
|
|
309
|
+
'0x9c41eA5D82AF27Fd436Cd4Cf525808313B35f0D1',
|
|
310
|
+
CurveUsdLevCreateTransient:
|
|
311
|
+
'0x798eA3B6E1C6210c6594aD5A1dBDA5b6b3347920',
|
|
294
312
|
CurveUsdRepayTransient: '0xa923a9111377F2f8614E8A1287DbC081e23a29b8',
|
|
295
313
|
|
|
296
314
|
MorphoBlueSupply: '0x1D0F6027Eeb118dEc06055735eE840E3Fe3E6f9a',
|
|
297
|
-
MorphoBlueSupplyCollateral:
|
|
315
|
+
MorphoBlueSupplyCollateral:
|
|
316
|
+
'0x1cdAC5D4b207e8DBd308504BbedD5D1BD19D26ac',
|
|
298
317
|
MorphoBlueWithdraw: '0xE97c7D2838D068C967B7c40080e09A08B9b11fca',
|
|
299
|
-
MorphoBlueWithdrawCollateral:
|
|
318
|
+
MorphoBlueWithdrawCollateral:
|
|
319
|
+
'0xF339F5272E48f9b2c074dcCF7e169259465A4872',
|
|
300
320
|
MorphoBlueBorrow: '0xcc05A3e06DA9Bd2827C7e86a96C63EAda3935AA0',
|
|
301
321
|
MorphoBluePayback: '0x9f437E5F705E02d77adC2e72C34926978776b085',
|
|
302
322
|
MorphoBlueSetAuth: '0xf30935e20c6357c7bcecd5e58ad6de26d54b9f64',
|
|
303
|
-
MorphoBlueSetAuthWithSig:
|
|
323
|
+
MorphoBlueSetAuthWithSig:
|
|
324
|
+
'0xE2d5fCDBf73BAd24A0FCAf6B2733933A98021808',
|
|
304
325
|
MorphoTokenWrap: '0x71b6d268c2Aabcb0dA16CbA4c77e65d9e29b0644',
|
|
305
|
-
MorphoBlueReallocateLiquidity:
|
|
326
|
+
MorphoBlueReallocateLiquidity:
|
|
327
|
+
'0x17cCA8194602020e855CC8Bc11ffA82d8F998A93',
|
|
306
328
|
MorphoBlueClaim: '0xBB562a790AD7773D54A423bD2A10E4073cb98142',
|
|
307
329
|
|
|
308
330
|
// llamalend
|
|
@@ -316,14 +338,16 @@ export const actionAddresses = {
|
|
|
316
338
|
LlamaLendBoost: '0xa21c1ce7318c6d38a10de44c2cd5d80514437d85',
|
|
317
339
|
LlamaLendRepay: '0x57693f72E628A3F7323D31De35Bd158493Aa9CC0',
|
|
318
340
|
LlamaLendLevCreate: '0x534b704a62385cfe5EEB8d9605419743d4fe105E',
|
|
319
|
-
LlamaLendSelfLiquidateWithColl:
|
|
341
|
+
LlamaLendSelfLiquidateWithColl:
|
|
342
|
+
'0xA99DD1D91141cA63C423DB763dE75078336803B2',
|
|
320
343
|
|
|
321
344
|
// eulerV2
|
|
322
345
|
EulerV2Supply: '0xa067787D086841437D112e0C847dDB3e5D95173f',
|
|
323
346
|
EulerV2Withdraw: '0x5bf1a54fe1e65B134E7920e53A5eB0D14b9e6aD1',
|
|
324
347
|
EulerV2Borrow: '0x38d66ecD38b7800D8FD0Bc29489c2306170a9Ede',
|
|
325
348
|
EulerV2Payback: '0x738b1df6b6962D8795Bda5bc5EFCd8b0B8c74d01',
|
|
326
|
-
EulerV2CollateralSwitch:
|
|
349
|
+
EulerV2CollateralSwitch:
|
|
350
|
+
'0x38950b50Fb38aC19D06e8CE5AAE632D6dF1EEb1a',
|
|
327
351
|
EulerV2View: '0x8932E46Ecf96b5Fe033F5e27Ab6dC755Cb668967',
|
|
328
352
|
|
|
329
353
|
MerklClaim: '0xE88036F3F0D7e216D63726356cA2bC334e305fe5',
|
|
@@ -363,6 +387,15 @@ export const actionAddresses = {
|
|
|
363
387
|
|
|
364
388
|
// summer.fi
|
|
365
389
|
SFApproveTokens: '0x0aC29D44eeC8e8f3b010c2e8FC960957db0c8298',
|
|
390
|
+
SummerfiUnsub: '0x926405D69b77A514ED974901095AcFf9e5131366',
|
|
391
|
+
SummerfiUnsubV2: '0x5E805eD9B7581a9f1398F75833f9663a459F5E30',
|
|
392
|
+
|
|
393
|
+
// AaveV4
|
|
394
|
+
AaveV4Supply: '0x30f333997eA08CA7Af95E32F4f90DACEf284D746',
|
|
395
|
+
AaveV4Withdraw: '0x8fc7F5dCeb5da1B0293A246ed6aeDc44EB37dB38',
|
|
396
|
+
AaveV4Borrow: '0x0a58710A67837E6d026B83c434519c5f0A0cD7a1',
|
|
397
|
+
AaveV4Payback: '0xCbcbD3b3e0D704Ad26b7dCfe1BdA6e85CDd8DBf0',
|
|
398
|
+
AaveV4CollateralSwitch: '0x19Ef19d6b8818103b8Cae086BB23e183EF7E433f',
|
|
366
399
|
},
|
|
367
400
|
[NETWORKS.optimism.chainId]: {
|
|
368
401
|
DFSSell: '0x9f234af5c10c136863a20865ba00b26951ab8269',
|
|
@@ -395,7 +428,8 @@ export const actionAddresses = {
|
|
|
395
428
|
AaveV3Payback: '0x88eb4050e89FecE4DF940109B0e58daF9B59e551',
|
|
396
429
|
AaveV3SetEMode: '0x7F264737066b9b7D9729Fe9715abB97423D8b35B',
|
|
397
430
|
AaveV3Supply: '0x7e49bdf4690feef64cb341ca46d1e3b45233a683',
|
|
398
|
-
AaveV3SwapBorrowRateMode:
|
|
431
|
+
AaveV3SwapBorrowRateMode:
|
|
432
|
+
'0xB8f0243b492f0e80feF5315Ba8692e7635481845',
|
|
399
433
|
AaveV3Withdraw: '0xf19d045f6cFc04A5Ee5E0e8837b565b9f276e3F7',
|
|
400
434
|
AaveV3ClaimRewards: '0xBE8e8cea67085F869C1C0040fD52F9F3115E962e',
|
|
401
435
|
AaveV3DelegateWithSig: '0x8dd05d32fB05E8c3e8F37294e6f2d13e5823a712',
|
|
@@ -405,7 +439,7 @@ export const actionAddresses = {
|
|
|
405
439
|
FLAaveV3NoFee: '0xfbcF23D2BeF8A2C491cfa4dD409D8dF12d431c85',
|
|
406
440
|
FLAaveV3: '0x8A07E93d2B74A80D726eE4E4A0aC1F906aB5Cc63',
|
|
407
441
|
FLBalancer: '0x79d6bf536b8DD65909a3174C87eA6395310d5c41',
|
|
408
|
-
FLAction: '
|
|
442
|
+
FLAction: '0xB57b666dAB46229e2b80113b5187F6DCD91AB159',
|
|
409
443
|
|
|
410
444
|
AaveV3RatioTrigger: '0xB76e3f7694589D0f34ba43b17AD0D15350Ab5f85',
|
|
411
445
|
GasFeeTakerL2: '0xB3dB299622A9DB0E944ccda2Ef899d6fF365B082',
|
|
@@ -429,6 +463,8 @@ export const actionAddresses = {
|
|
|
429
463
|
|
|
430
464
|
// summer.fi
|
|
431
465
|
SFApproveTokens: '0xcc63B281b29a4c7f33aF780e9B480A15eb676e81',
|
|
466
|
+
SummerfiUnsub: '0x0000000000000000000000000000000000000000', // Only exists for Maker on Mainnet
|
|
467
|
+
SummerfiUnsubV2: '0xC24863ce3397316b743112AeBc2eBCF5507bFD42',
|
|
432
468
|
},
|
|
433
469
|
[NETWORKS.arbitrum.chainId]: {
|
|
434
470
|
DFSSell: '0x1393eef11454ab068dd5e0d0be5eb922603eef1a',
|
|
@@ -462,7 +498,8 @@ export const actionAddresses = {
|
|
|
462
498
|
AaveV3Payback: '0xd88D5356e08dAd84E1576F89f4BF43C79a8BF0b2',
|
|
463
499
|
AaveV3SetEMode: '0x99D5068d9520316e8D3B5136c0B6EA33C5E0c27e',
|
|
464
500
|
AaveV3Supply: '0xA2127f5C7E943c05B6a6A3a541557087F1F1287D',
|
|
465
|
-
AaveV3SwapBorrowRateMode:
|
|
501
|
+
AaveV3SwapBorrowRateMode:
|
|
502
|
+
'0x738042389A8d6B0F6D6ab009c42dfF84ebB737C0',
|
|
466
503
|
AaveV3Withdraw: '0xbf492F869DdB1A18BB4F41b6c3059D9f882Fe7ff',
|
|
467
504
|
AaveV3ClaimRewards: '0x3a4d72Ed2a47a409a82ba61f0fca1C749Ea8aB66',
|
|
468
505
|
AaveV3DelegateWithSig: '0xFF2CE05250d1880f0f45ea8fB453292CABA42F12',
|
|
@@ -480,9 +517,9 @@ export const actionAddresses = {
|
|
|
480
517
|
FLAaveV3NoFee: '0x219ac6dA971dE6d943cffD1BD62abde71525d382',
|
|
481
518
|
FLAaveV3: '0x53953aCEe438c083e4299F7976f03Ff3cb862161',
|
|
482
519
|
FLBalancer: '0xdb28fE77709D88badC86868B27937428C3F48E73',
|
|
483
|
-
FLUniV3: '
|
|
484
|
-
FLAction: '
|
|
485
|
-
FLMorphoBlue: '
|
|
520
|
+
FLUniV3: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3', // @DEV - incorrect, same as FLAction
|
|
521
|
+
FLAction: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
522
|
+
FLMorphoBlue: '0xf041C72e201CD7d04a240fe06c5783E2Ee2D92b3',
|
|
486
523
|
|
|
487
524
|
GasFeeTakerL2: '0x2F64f73B222B4978CAfd0295c0fa106cE5f34996',
|
|
488
525
|
AaveV3RatioCheck: '0x4a5c2cbCFB921b596Dec049389899CC8Eb4678ED',
|
|
@@ -505,7 +542,8 @@ export const actionAddresses = {
|
|
|
505
542
|
LlamaLendBoost: '0xc52a3af27696f8cf999463f3455e23440a376f8d',
|
|
506
543
|
LlamaLendRepay: '0x320fdfa922ee33c1cc8a042ada855c9dfe9bed06',
|
|
507
544
|
LlamaLendLevCreate: '0xe5cbdcbe494246c21851eea0642ff0791f95cc86',
|
|
508
|
-
LlamaLendSelfLiquidateWithColl:
|
|
545
|
+
LlamaLendSelfLiquidateWithColl:
|
|
546
|
+
'0xebf090e5e83f4cd63d84db013ac8271761a953cf',
|
|
509
547
|
|
|
510
548
|
// fluid
|
|
511
549
|
FluidVaultT1Open: '0x1947Ce90ACCf0E243CcF85140fCceC2EfAeeA193',
|
|
@@ -523,18 +561,24 @@ export const actionAddresses = {
|
|
|
523
561
|
|
|
524
562
|
// summer.fi
|
|
525
563
|
SFApproveTokens: '0x98101bDBFaA3f8efa4A14a5A6a2f9A20D514a5D5',
|
|
564
|
+
SummerfiUnsub: '0x0000000000000000000000000000000000000000', // Only exists for Maker on Mainnet
|
|
565
|
+
SummerfiUnsubV2: '0xFAb1D6fe62081BfB997558216769a7029f7d52A4',
|
|
526
566
|
|
|
527
567
|
// MorphoBlue
|
|
528
568
|
MorphoBlueSupply: '0xeaF1c037716b447C178f3604BCFd10e650704525',
|
|
529
|
-
MorphoBlueSupplyCollateral:
|
|
569
|
+
MorphoBlueSupplyCollateral:
|
|
570
|
+
'0x65A5900F2faab9cC495b92389844739DF08A290D',
|
|
530
571
|
MorphoBlueWithdraw: '0xd7132c78677E764b352F83D1ACbCd9564eC08569',
|
|
531
|
-
MorphoBlueWithdrawCollateral:
|
|
572
|
+
MorphoBlueWithdrawCollateral:
|
|
573
|
+
'0x374553273E681C6cfA69006CEd70710d415a02D0',
|
|
532
574
|
MorphoBlueBorrow: '0xAe3073ab93DAde55e8B9390E5f3A3071B1ec99Ec',
|
|
533
575
|
MorphoBluePayback: '0x0e5493737FC3466341E0372219ef72FA0B4DDBbB',
|
|
534
576
|
MorphoBlueSetAuth: '0x7e1deb39317A7542Be231123733d94167FaC73D5',
|
|
535
|
-
MorphoBlueSetAuthWithSig:
|
|
577
|
+
MorphoBlueSetAuthWithSig:
|
|
578
|
+
'0x14da4D942b2b855550b47567c333edB8443cF1A7',
|
|
536
579
|
MorphoBlueView: '0xa3b8b400a2eFF0314fa9605E778692bd4Bd9f880',
|
|
537
|
-
MorphoBlueReallocateLiquidity:
|
|
580
|
+
MorphoBlueReallocateLiquidity:
|
|
581
|
+
'0x79C0E0eFe0Df71B2d301f4e08cfB5Ca8814A8f4c',
|
|
538
582
|
MorphoBlueClaim: '0x3ae0160e27778f7286182eAc774fD7ECd40539a7',
|
|
539
583
|
},
|
|
540
584
|
[NETWORKS.base.chainId]: {
|
|
@@ -565,12 +609,13 @@ export const actionAddresses = {
|
|
|
565
609
|
FLAaveV3: '0x79Eb9cEe432Cd3e7b09A9eFdB21A733A6d7b4c3A',
|
|
566
610
|
FLBalancer: '0x862E533198C9656B75bB6A5dDF0953F7ED5E8507',
|
|
567
611
|
FLUniV3: '0x1bA6082D2ef1aB92a55B96264c72Eb8049C964Ce',
|
|
568
|
-
FLAction: '
|
|
569
|
-
FLMorphoBlue: '
|
|
612
|
+
FLAction: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52', // fix temp
|
|
613
|
+
FLMorphoBlue: '0x87Af4769e4134379125A262408e1f3EC60d2Ab52',
|
|
570
614
|
|
|
571
615
|
// AaveV3
|
|
572
616
|
AaveV3Withdraw: '0x1d2Fa7dAcC660A9124c3685EE8a6E699d10409Eb',
|
|
573
|
-
AaveV3SwapBorrowRateMode:
|
|
617
|
+
AaveV3SwapBorrowRateMode:
|
|
618
|
+
'0x9d1D7A0dD5e82cCe9CC131eC0C807B0F543be70e',
|
|
574
619
|
AaveV3Supply: '0x4Df428298a204E4881D95611320b30938CB3facd',
|
|
575
620
|
AaveV3SetEMode: '0xdeF8B05Ce194D50C376233C9C5530027f6180442',
|
|
576
621
|
AaveV3Payback: '0x1A8B4DF4DE4274630A5c5a8E42Fa5F0DdF654ec2',
|
|
@@ -592,15 +637,19 @@ export const actionAddresses = {
|
|
|
592
637
|
|
|
593
638
|
// MorphoBlue
|
|
594
639
|
MorphoBlueSupply: '0xB4e67A3aF1707567D410f1E18B0CF7DCc38e03BA',
|
|
595
|
-
MorphoBlueSupplyCollateral:
|
|
640
|
+
MorphoBlueSupplyCollateral:
|
|
641
|
+
'0x57757974d4c4f4a3cfcd054401482672342b26b2',
|
|
596
642
|
MorphoBlueWithdraw: '0xaaccc17d850b48507c2478a9ad628c6f4132ede3',
|
|
597
|
-
MorphoBlueWithdrawCollateral:
|
|
643
|
+
MorphoBlueWithdrawCollateral:
|
|
644
|
+
'0xe1778d05b274fa4193c8ecc50b0c45230f9ba1d3',
|
|
598
645
|
MorphoBlueBorrow: '0x8395eafe5633bcdedbf71893e24d4e86afd55436',
|
|
599
646
|
MorphoBluePayback: '0x245f9c1f8401f28da82afc50e4d242224991c4b3',
|
|
600
647
|
MorphoBlueSetAuth: '0xb565630c6ddd1fae169c453667f5aa52ef4e2e39',
|
|
601
|
-
MorphoBlueSetAuthWithSig:
|
|
648
|
+
MorphoBlueSetAuthWithSig:
|
|
649
|
+
'0x80be65342f6172a6cd0b6a2653e8a887e3f46cab',
|
|
602
650
|
MorphoBlueView: '0xdbcacf59c5063da8b15481f88e7d70e13c92f2a1',
|
|
603
|
-
MorphoBlueReallocateLiquidity:
|
|
651
|
+
MorphoBlueReallocateLiquidity:
|
|
652
|
+
'0x5Ea7F30E40F6A25BE2aD23A6FC1C31A6c95F3dc8',
|
|
604
653
|
MorphoBlueClaim: '0xE279E9100d6d524602f98E8736BA5F8f065Dd3e0',
|
|
605
654
|
|
|
606
655
|
// fluid
|
|
@@ -621,6 +670,8 @@ export const actionAddresses = {
|
|
|
621
670
|
|
|
622
671
|
// summer.fi
|
|
623
672
|
SFApproveTokens: '0x03EDC9A683f37BFB7516FF234223fFb6E38D5eb9',
|
|
673
|
+
SummerfiUnsub: '0x0000000000000000000000000000000000000000', // Only exists for Maker on Mainnet
|
|
674
|
+
SummerfiUnsubV2: '0x60587B8Fe62Fc149d285a611822263206b4138da',
|
|
624
675
|
},
|
|
625
676
|
[NETWORKS.linea.chainId]: {
|
|
626
677
|
// Basic
|
|
@@ -714,16 +765,19 @@ export const actionAddresses = {
|
|
|
714
765
|
|
|
715
766
|
export const otherAddresses = {
|
|
716
767
|
[NETWORKS.ethereum.chainId]: {
|
|
717
|
-
RecipeExecutor: '
|
|
718
|
-
RecipeExecutorForTxSaver:
|
|
768
|
+
RecipeExecutor: '0xbc3Fc959FeF3F12a41738f406c02198cdeE7481F',
|
|
769
|
+
RecipeExecutorForTxSaver:
|
|
770
|
+
'0x2ee96cf53ae5fbd5309284704f978d0ca66cb963',
|
|
719
771
|
DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
|
|
720
772
|
DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
|
|
721
773
|
ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
|
|
774
|
+
SFProxyEntryPoint: '0xAa15ca459659F35B1064EC546A44d962d54bA89e',
|
|
722
775
|
|
|
723
776
|
McdCdpManager: '0x5ef30b9986345249bc32d8928b7ee64de9435e39',
|
|
724
777
|
BCdpManager: '0x3f30c2381CD8B917Dd96EB2f1A4F96D91324BBed',
|
|
725
778
|
AaveDefaultMarket: '0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5',
|
|
726
|
-
UniswapV3PositionManager:
|
|
779
|
+
UniswapV3PositionManager:
|
|
780
|
+
'0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
|
|
727
781
|
RaiWethUniV2LPToken: '0x8aE720a71622e824F576b4A8C03031066548A3B1',
|
|
728
782
|
BalancerToken: '0xba100000625a3754423978a60c9317c58a424e3D',
|
|
729
783
|
CrvToken: '0xD533a949740bb3306d119CC777fa900bA034cd52',
|
|
@@ -735,10 +789,11 @@ export const otherAddresses = {
|
|
|
735
789
|
Empty: '0x0000000000000000000000000000000000000000',
|
|
736
790
|
},
|
|
737
791
|
[NETWORKS.optimism.chainId]: {
|
|
738
|
-
RecipeExecutor: '
|
|
792
|
+
RecipeExecutor: '0xEC891E6b5A93F5f29241De6B234a4e77A5456A1C',
|
|
739
793
|
RecipeExecutorForTxSaver: '0x993A8c81142044E1CB0Cf0c3d84BEa235d842Fb0',
|
|
740
794
|
DFSRegistry: '0xAf707Ee480204Ed6e2640B53cE86F680D28Afcbd',
|
|
741
795
|
ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
|
|
796
|
+
SFProxyEntryPoint: '0x06299D4A07E8C6D7C1aEc14Ab2F46DF05Dd9588E',
|
|
742
797
|
|
|
743
798
|
DSGuardFactory: '0xc19d0F1E2b38AA283E226Ca4044766A43aA7B02b',
|
|
744
799
|
AdminVault: '0x136b1bEAfff362530F98f10E3D8C38f3a3F3d38C',
|
|
@@ -748,10 +803,11 @@ export const otherAddresses = {
|
|
|
748
803
|
UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
|
|
749
804
|
},
|
|
750
805
|
[NETWORKS.arbitrum.chainId]: {
|
|
751
|
-
RecipeExecutor: '
|
|
806
|
+
RecipeExecutor: '0x667609f05DdC5E9Fb939eC376F07953403745cf3',
|
|
752
807
|
RecipeExecutorForTxSaver: '0x7a25174229ea402d8ccd35fc6d55af079c399884',
|
|
753
808
|
DFSRegistry: '0xBF1CaC12DB60819Bfa71A328282ecbc1D40443aA',
|
|
754
809
|
ProxyRegistry: '0x283Cc5C26e53D66ed2Ea252D986F094B37E6e895',
|
|
810
|
+
SFProxyEntryPoint: '0x15D776C062bF292f8F70A81533E49adC7C06Cb69',
|
|
755
811
|
|
|
756
812
|
DSGuardFactory: '0x5261abC3a94a6475D0A1171daE94A5f84fbaEcD2',
|
|
757
813
|
AdminVault: '0xd47D8D97cAd12A866900eEc6Cde1962529F25351',
|
|
@@ -761,10 +817,11 @@ export const otherAddresses = {
|
|
|
761
817
|
UniswapV3PositionManager: '0xC36442b4a4522E871399CD717aBDD847Ab11FE88',
|
|
762
818
|
},
|
|
763
819
|
[NETWORKS.base.chainId]: {
|
|
764
|
-
RecipeExecutor: '
|
|
820
|
+
RecipeExecutor: '0xc91305DdE651c899EF8eE1D0C33E7dab1B5ABF0D',
|
|
765
821
|
RecipeExecutorForTxSaver: '0x7a87565b77dd65bbc153fe20e97743842f1a6e0c',
|
|
766
822
|
DFSRegistry: '0x347FB634271F666353F23A3362f3935D96F97476',
|
|
767
823
|
ProxyRegistry: '0x425fA97285965E01Cc5F951B62A51F6CDEA5cc0d',
|
|
824
|
+
SFProxyEntryPoint: '0xab6e5cde983fF98Cdb0F61f5F99cb58D40D0c837',
|
|
768
825
|
|
|
769
826
|
DSGuardFactory: '0x7783da8958013a57a5514737a4FBDFF06A0056e1',
|
|
770
827
|
AdminVault: '0xD8E67968d8a0df4beCf2D50daE1e34d4d80C701C',
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { getAddr } from '../addresses';
|
|
3
|
+
import { EthAddress, uint256 } from '../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* AaveV4QuotePriceRangeTrigger - Verifies if current token price ratio for aaveV4 spoke is within a subbed price range.
|
|
7
|
+
*
|
|
8
|
+
* @category Triggers
|
|
9
|
+
*/
|
|
10
|
+
export class AaveV4QuotePriceRangeTrigger extends Action {
|
|
11
|
+
constructor(
|
|
12
|
+
spoke:EthAddress,
|
|
13
|
+
baseTokenId:uint256,
|
|
14
|
+
quoteTokenId:uint256,
|
|
15
|
+
lowerPrice:uint256,
|
|
16
|
+
upperPrice:uint256,
|
|
17
|
+
) {
|
|
18
|
+
super(
|
|
19
|
+
'AaveV4QuotePriceRangeTrigger',
|
|
20
|
+
getAddr('Empty'),
|
|
21
|
+
[['address', 'uint256', 'uint256', 'uint256', 'uint256']],
|
|
22
|
+
[[spoke, baseTokenId, quoteTokenId, lowerPrice, upperPrice]],
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { getAddr } from '../addresses';
|
|
3
|
+
import { EthAddress, uint256, uint8 } from '../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* AaveV4QuotePriceTrigger - Verifies if current token price ratio for aaveV4 spoke is over/under a subbed price ratio.
|
|
7
|
+
*
|
|
8
|
+
* @category Triggers
|
|
9
|
+
*/
|
|
10
|
+
export class AaveV4QuotePriceTrigger extends Action {
|
|
11
|
+
constructor(
|
|
12
|
+
spoke:EthAddress,
|
|
13
|
+
baseTokenId:uint256,
|
|
14
|
+
quoteTokenId:uint256,
|
|
15
|
+
price:uint256,
|
|
16
|
+
state:uint8,
|
|
17
|
+
) {
|
|
18
|
+
super(
|
|
19
|
+
'AaveV4QuotePriceTrigger',
|
|
20
|
+
getAddr('Empty'),
|
|
21
|
+
[['address', 'uint256', 'uint256', 'uint256', 'uint8']],
|
|
22
|
+
[[spoke, baseTokenId, quoteTokenId, price, state]],
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { getAddr } from '../addresses';
|
|
3
|
+
import { EthAddress, uint256, uint8 } from '../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* AaveV4RatioTrigger - Triggers when the user's ratio is over/under a subbed ratio.
|
|
7
|
+
*
|
|
8
|
+
* @category Triggers
|
|
9
|
+
*/
|
|
10
|
+
export class AaveV4RatioTrigger extends Action {
|
|
11
|
+
constructor(
|
|
12
|
+
user:EthAddress,
|
|
13
|
+
spoke:EthAddress,
|
|
14
|
+
ratio:uint256,
|
|
15
|
+
state:uint8,
|
|
16
|
+
) {
|
|
17
|
+
super(
|
|
18
|
+
'AaveV4RatioTrigger',
|
|
19
|
+
getAddr('Empty'),
|
|
20
|
+
[['address', 'address', 'uint256', 'uint8']],
|
|
21
|
+
[[user, spoke, ratio, state]],
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
}
|
package/src/triggers/index.ts
CHANGED
|
@@ -30,4 +30,7 @@ export * from './CompV3PriceRangeTrigger';
|
|
|
30
30
|
export * from './LiquityV2AdjustRateDebtInFrontTrigger';
|
|
31
31
|
export * from './AaveV3QuotePriceRangeTrigger';
|
|
32
32
|
export * from './SparkQuotePriceRangeTrigger';
|
|
33
|
-
export * from './MorphoBluePriceRangeTrigger';
|
|
33
|
+
export * from './MorphoBluePriceRangeTrigger';
|
|
34
|
+
export * from './AaveV4QuotePriceTrigger';
|
|
35
|
+
export * from './AaveV4QuotePriceRangeTrigger';
|
|
36
|
+
export * from './AaveV4RatioTrigger';
|