@defisaver/sdk 1.3.40 → 1.3.42
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/addresses.d.ts +0 -12
- package/esm/src/addresses.js +13 -15
- package/esm/src/index.d.ts +0 -48
- package/esm/src/utils/zeroExExchange.js +1 -1
- package/package.json +1 -1
- package/src/addresses.ts +13 -16
- package/src/utils/zeroExExchange.ts +1 -1
- package/test/utils/zeroExExchange.js +33 -0
- package/umd/index.js +14 -16
package/esm/src/addresses.d.ts
CHANGED
|
@@ -204,8 +204,6 @@ export declare const actionAddresses: {
|
|
|
204
204
|
CurveUsdWithdraw: string;
|
|
205
205
|
CurveUsdLevCreate: string;
|
|
206
206
|
CurveUsdRepay: string;
|
|
207
|
-
CurveUsdSwapper: string;
|
|
208
|
-
CurveUsdSwapperTransient: string;
|
|
209
207
|
CurveUsdSelfLiquidate: string;
|
|
210
208
|
CurveUsdSelfLiquidateWithColl: string;
|
|
211
209
|
CurveUsdGetDebt: string;
|
|
@@ -504,8 +502,6 @@ export declare const actionAddresses: {
|
|
|
504
502
|
CurveUsdWithdraw?: undefined;
|
|
505
503
|
CurveUsdLevCreate?: undefined;
|
|
506
504
|
CurveUsdRepay?: undefined;
|
|
507
|
-
CurveUsdSwapper?: undefined;
|
|
508
|
-
CurveUsdSwapperTransient?: undefined;
|
|
509
505
|
CurveUsdSelfLiquidate?: undefined;
|
|
510
506
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
511
507
|
CurveUsdGetDebt?: undefined;
|
|
@@ -830,8 +826,6 @@ export declare const actionAddresses: {
|
|
|
830
826
|
CurveUsdWithdraw?: undefined;
|
|
831
827
|
CurveUsdLevCreate?: undefined;
|
|
832
828
|
CurveUsdRepay?: undefined;
|
|
833
|
-
CurveUsdSwapper?: undefined;
|
|
834
|
-
CurveUsdSwapperTransient?: undefined;
|
|
835
829
|
CurveUsdSelfLiquidate?: undefined;
|
|
836
830
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
837
831
|
CurveUsdGetDebt?: undefined;
|
|
@@ -1117,8 +1111,6 @@ export declare const actionAddresses: {
|
|
|
1117
1111
|
CurveUsdWithdraw?: undefined;
|
|
1118
1112
|
CurveUsdLevCreate?: undefined;
|
|
1119
1113
|
CurveUsdRepay?: undefined;
|
|
1120
|
-
CurveUsdSwapper?: undefined;
|
|
1121
|
-
CurveUsdSwapperTransient?: undefined;
|
|
1122
1114
|
CurveUsdSelfLiquidate?: undefined;
|
|
1123
1115
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
1124
1116
|
CurveUsdGetDebt?: undefined;
|
|
@@ -1377,8 +1369,6 @@ export declare const actionAddresses: {
|
|
|
1377
1369
|
CurveUsdWithdraw?: undefined;
|
|
1378
1370
|
CurveUsdLevCreate?: undefined;
|
|
1379
1371
|
CurveUsdRepay?: undefined;
|
|
1380
|
-
CurveUsdSwapper?: undefined;
|
|
1381
|
-
CurveUsdSwapperTransient?: undefined;
|
|
1382
1372
|
CurveUsdSelfLiquidate?: undefined;
|
|
1383
1373
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
1384
1374
|
CurveUsdGetDebt?: undefined;
|
|
@@ -1683,8 +1673,6 @@ export declare const actionAddresses: {
|
|
|
1683
1673
|
CurveUsdWithdraw?: undefined;
|
|
1684
1674
|
CurveUsdLevCreate?: undefined;
|
|
1685
1675
|
CurveUsdRepay?: undefined;
|
|
1686
|
-
CurveUsdSwapper?: undefined;
|
|
1687
|
-
CurveUsdSwapperTransient?: undefined;
|
|
1688
1676
|
CurveUsdSelfLiquidate?: undefined;
|
|
1689
1677
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
1690
1678
|
CurveUsdGetDebt?: undefined;
|
package/esm/src/addresses.js
CHANGED
|
@@ -25,8 +25,8 @@ export const actionAddresses = {
|
|
|
25
25
|
StarknetClaim: '0x40069889098cd54d6c1021578000f37b197479cf',
|
|
26
26
|
HandleAuth: '0xfc2e2b37c73d5d43cf5fcbd80a4049b620d60eba',
|
|
27
27
|
// Exchange
|
|
28
|
-
DFSSell: '
|
|
29
|
-
DFSSellNoFee: '
|
|
28
|
+
DFSSell: '0xa144A66eEa5E92540f4fe52836B2C3d60De69e6a',
|
|
29
|
+
DFSSellNoFee: '0xfBfd56efC7f29cD9F5a9277C0B2B4FFbb9Edb2fb',
|
|
30
30
|
// Sky
|
|
31
31
|
SkyStake: '0x5803C399EE9f887C8b81075E4C185c448361c235',
|
|
32
32
|
SkyUnstake: '0x4b6d3A01465fa88D7D596333D15832434a568452',
|
|
@@ -90,7 +90,7 @@ export const actionAddresses = {
|
|
|
90
90
|
LSVBorrow: '0x7dFB434527Fdb39854156cDBa9bF4799E36E7e82',
|
|
91
91
|
LSVSupply: '0x17a3e39a1aA6d9BA1Ffd80Ae0E388cA064a8D28F',
|
|
92
92
|
LSVPayback: '0x10749CE97583dBcEb54a083386CC8438C4e0FE65',
|
|
93
|
-
LSVSell: '
|
|
93
|
+
LSVSell: '0x3c4913f8c295A9aF8BB77d3A5e7248e977D91781',
|
|
94
94
|
// Morpho Aave V2
|
|
95
95
|
MorphoAaveV2Borrow: '0xa85C3E41Bf9F75a381927e1Aa9b00f77C4631109',
|
|
96
96
|
MorphoAaveV2Payback: '0x5dd0E0835acbb08aa4A4599d70fB2d93969fa7b7',
|
|
@@ -242,8 +242,6 @@ export const actionAddresses = {
|
|
|
242
242
|
CurveUsdWithdraw: '0x54B8D984fc79B000D7B6F6E0f52CD054E965120f',
|
|
243
243
|
CurveUsdLevCreate: '0xcbd9aFc2b7532b9eeB3A7EC4ea8Bb4320795d9Ad',
|
|
244
244
|
CurveUsdRepay: '0x6F91E8671d17ecEE3D3fb17DcCA87E86B8D83807',
|
|
245
|
-
CurveUsdSwapper: '0xFA8c594b903651F97b27aCADEa83b720cfD7F80b',
|
|
246
|
-
CurveUsdSwapperTransient: '0xcF0298592b8FCB3823d31Bb257b65afFCAcCb8b6',
|
|
247
245
|
CurveUsdSelfLiquidate: '0x0B21996Fc90993f975D8279bE8ff2D34518da79C',
|
|
248
246
|
CurveUsdSelfLiquidateWithColl: '0x7cE305FC2A18c6820a533AD418dC0A549aFeDcAF',
|
|
249
247
|
CurveUsdGetDebt: '0x3Bb41d3f300dA758780fe7696bb4fB93cD7172fB',
|
|
@@ -301,7 +299,7 @@ export const actionAddresses = {
|
|
|
301
299
|
FluidVaultT1Payback: '0x8D56b267C6a3e5295EFAebC67Ac413483c885C05',
|
|
302
300
|
FluidVaultT1Withdraw: '0x5673b9ab4A035C5C7474C344664Be91DaFafa17E',
|
|
303
301
|
FluidVaultT1Supply: '0x0c6100209D8A0bb14CC7d18e45dA1bd1E7a3a187',
|
|
304
|
-
FluidView: '
|
|
302
|
+
FluidView: '0xDd71a9cd4902a0BA417e609b986FA6A96D465C57',
|
|
305
303
|
FluidClaim: '0x0bC0aeF7702C204DEF308994C84D8fBce676dB47',
|
|
306
304
|
// Fluid DEX actions
|
|
307
305
|
FluidDexOpen: '0x071e1369E1c9030Aa1a089bDE2F72797a14FE3b3',
|
|
@@ -344,7 +342,7 @@ export const actionAddresses = {
|
|
|
344
342
|
},
|
|
345
343
|
[NETWORKS.optimism.chainId]: {
|
|
346
344
|
// Exchange
|
|
347
|
-
DFSSell: '
|
|
345
|
+
DFSSell: '0x28144F33fd68C6a84EDbd6CF9562F2E60E9698D5',
|
|
348
346
|
DFSSellNoFee: '0x0000000000000000000000000000000000000000',
|
|
349
347
|
// Basic
|
|
350
348
|
WrapEth: '0x6D735db054AC4a1F10f96b99f8550E9eefbC2AC5',
|
|
@@ -405,7 +403,7 @@ export const actionAddresses = {
|
|
|
405
403
|
},
|
|
406
404
|
[NETWORKS.arbitrum.chainId]: {
|
|
407
405
|
// Exchange
|
|
408
|
-
DFSSell: '
|
|
406
|
+
DFSSell: '0x9AaC4041a964Af951Eedc09eFe12Cc3f8C6D54c6',
|
|
409
407
|
DFSSellNoFee: '0x0000000000000000000000000000000000000000',
|
|
410
408
|
// Basic
|
|
411
409
|
WrapEth: '0x35136b25bFA7CCC8f5b94E3181a16B61c06980F0',
|
|
@@ -478,7 +476,7 @@ export const actionAddresses = {
|
|
|
478
476
|
FluidVaultT1Payback: '0x19FF948437B7f1221173effC029739568F5f844a',
|
|
479
477
|
FluidVaultT1Withdraw: '0xc13d93227d97197e5F1751d0a3e80c1080A5fa2B',
|
|
480
478
|
FluidVaultT1Supply: '0xBCF0Dc5bb2C4434AD07369207904F5900d391b0B',
|
|
481
|
-
FluidView: '
|
|
479
|
+
FluidView: '0xc63b7847202324E3F3746A2f1E275598e33D5404',
|
|
482
480
|
// Fluid DEX actions
|
|
483
481
|
FluidDexOpen: '0xA456f13d358B8B93bE6778be3244111E267C0AaC',
|
|
484
482
|
FluidDexSupply: '0x3E49c4f914E01e5612719a7B4965e4FAfb324762',
|
|
@@ -504,7 +502,7 @@ export const actionAddresses = {
|
|
|
504
502
|
},
|
|
505
503
|
[NETWORKS.base.chainId]: {
|
|
506
504
|
// Basic
|
|
507
|
-
DFSSell: '
|
|
505
|
+
DFSSell: '0xb59c13d7D3da6b5D9D5469335F73A8789A2e65e6',
|
|
508
506
|
DFSSellNoFee: '0x0000000000000000000000000000000000000000',
|
|
509
507
|
WrapEth: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
|
510
508
|
UnwrapEth: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
|
|
@@ -568,7 +566,7 @@ export const actionAddresses = {
|
|
|
568
566
|
FluidVaultT1Payback: '0xD4cEe5755e4f713B69f5Fc73068505ec6B9ee2a2',
|
|
569
567
|
FluidVaultT1Withdraw: '0x26bE6a2EdE97aE826ed9DA8Fb79428037fe55cEB',
|
|
570
568
|
FluidVaultT1Supply: '0x028ACA45244d4897ff80ef65ed0b735Bb0D4B0A5',
|
|
571
|
-
FluidView: '
|
|
569
|
+
FluidView: '0x533C19808a1612c411fe8C1B5CBbee44bE1921B9',
|
|
572
570
|
// Fluid DEX actions
|
|
573
571
|
FluidDexOpen: '0x5eA8Da9679145D51F5eAEC8Bf2f42f47003A8799',
|
|
574
572
|
FluidDexSupply: '0x2fCb7db80d3Be5C1B0049dF074b1AcFbcA93A867',
|
|
@@ -591,7 +589,7 @@ export const actionAddresses = {
|
|
|
591
589
|
},
|
|
592
590
|
[NETWORKS.linea.chainId]: {
|
|
593
591
|
// Basic
|
|
594
|
-
DFSSell: '
|
|
592
|
+
DFSSell: '0x741FcFC1D708CEA0d845Fd04de51022b6d00e060',
|
|
595
593
|
DFSSellNoFee: '0x0000000000000000000000000000000000000000',
|
|
596
594
|
WrapEth: '0xB8af168883D049FF9C811ab5B5DE179f3e7d6Fb7',
|
|
597
595
|
UnwrapEth: '0xc5D0FF89e950a364207fC5be1b070170C874Dd87',
|
|
@@ -625,8 +623,8 @@ export const actionAddresses = {
|
|
|
625
623
|
},
|
|
626
624
|
[NETWORKS.plasma.chainId]: {
|
|
627
625
|
// Basic
|
|
628
|
-
DFSSell: '
|
|
629
|
-
DFSSellNoFee: '
|
|
626
|
+
DFSSell: '0x7107A975120dd06efA446782c8c3A2A3FaDe0F41',
|
|
627
|
+
DFSSellNoFee: '0xA1C459e28b383a3107046efe165456B6de373052',
|
|
630
628
|
WrapEth: '0x520E8b0573a03D26D0E39a409E85E28459e24C0E',
|
|
631
629
|
UnwrapEth: '0x93A6E0dC4C4a6033922d386e4cbd9e31278A2BBa',
|
|
632
630
|
SendToken: '0xa2ABA81e65543d18dd1a1E4A31Bc41C4a86453cf',
|
|
@@ -663,7 +661,7 @@ export const actionAddresses = {
|
|
|
663
661
|
FluidVaultT1Payback: '0xdeF8B05Ce194D50C376233C9C5530027f6180442',
|
|
664
662
|
FluidVaultT1Withdraw: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
|
|
665
663
|
FluidVaultT1Supply: '0x54D1b51d2d68CD0Dc877296527780CA6aff68a39',
|
|
666
|
-
FluidView: '
|
|
664
|
+
FluidView: '0xBd2d2d4718C24B8D35168480553b1F5a11f9884b',
|
|
667
665
|
// Fluid DEX actions
|
|
668
666
|
FluidDexOpen: '0xF32d5d8D81f2662A02955CE537537088DF29daf5',
|
|
669
667
|
FluidDexSupply: '0x903F7C93FFC4AAbaBB096a7A722F1f057816B399',
|
package/esm/src/index.d.ts
CHANGED
|
@@ -215,8 +215,6 @@ declare const actionAddressesAllChains: {
|
|
|
215
215
|
CurveUsdWithdraw: string;
|
|
216
216
|
CurveUsdLevCreate: string;
|
|
217
217
|
CurveUsdRepay: string;
|
|
218
|
-
CurveUsdSwapper: string;
|
|
219
|
-
CurveUsdSwapperTransient: string;
|
|
220
218
|
CurveUsdSelfLiquidate: string;
|
|
221
219
|
CurveUsdSelfLiquidateWithColl: string;
|
|
222
220
|
CurveUsdGetDebt: string;
|
|
@@ -515,8 +513,6 @@ declare const actionAddressesAllChains: {
|
|
|
515
513
|
CurveUsdWithdraw?: undefined;
|
|
516
514
|
CurveUsdLevCreate?: undefined;
|
|
517
515
|
CurveUsdRepay?: undefined;
|
|
518
|
-
CurveUsdSwapper?: undefined;
|
|
519
|
-
CurveUsdSwapperTransient?: undefined;
|
|
520
516
|
CurveUsdSelfLiquidate?: undefined;
|
|
521
517
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
522
518
|
CurveUsdGetDebt?: undefined;
|
|
@@ -841,8 +837,6 @@ declare const actionAddressesAllChains: {
|
|
|
841
837
|
CurveUsdWithdraw?: undefined;
|
|
842
838
|
CurveUsdLevCreate?: undefined;
|
|
843
839
|
CurveUsdRepay?: undefined;
|
|
844
|
-
CurveUsdSwapper?: undefined;
|
|
845
|
-
CurveUsdSwapperTransient?: undefined;
|
|
846
840
|
CurveUsdSelfLiquidate?: undefined;
|
|
847
841
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
848
842
|
CurveUsdGetDebt?: undefined;
|
|
@@ -1128,8 +1122,6 @@ declare const actionAddressesAllChains: {
|
|
|
1128
1122
|
CurveUsdWithdraw?: undefined;
|
|
1129
1123
|
CurveUsdLevCreate?: undefined;
|
|
1130
1124
|
CurveUsdRepay?: undefined;
|
|
1131
|
-
CurveUsdSwapper?: undefined;
|
|
1132
|
-
CurveUsdSwapperTransient?: undefined;
|
|
1133
1125
|
CurveUsdSelfLiquidate?: undefined;
|
|
1134
1126
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
1135
1127
|
CurveUsdGetDebt?: undefined;
|
|
@@ -1388,8 +1380,6 @@ declare const actionAddressesAllChains: {
|
|
|
1388
1380
|
CurveUsdWithdraw?: undefined;
|
|
1389
1381
|
CurveUsdLevCreate?: undefined;
|
|
1390
1382
|
CurveUsdRepay?: undefined;
|
|
1391
|
-
CurveUsdSwapper?: undefined;
|
|
1392
|
-
CurveUsdSwapperTransient?: undefined;
|
|
1393
1383
|
CurveUsdSelfLiquidate?: undefined;
|
|
1394
1384
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
1395
1385
|
CurveUsdGetDebt?: undefined;
|
|
@@ -1694,8 +1684,6 @@ declare const actionAddressesAllChains: {
|
|
|
1694
1684
|
CurveUsdWithdraw?: undefined;
|
|
1695
1685
|
CurveUsdLevCreate?: undefined;
|
|
1696
1686
|
CurveUsdRepay?: undefined;
|
|
1697
|
-
CurveUsdSwapper?: undefined;
|
|
1698
|
-
CurveUsdSwapperTransient?: undefined;
|
|
1699
1687
|
CurveUsdSelfLiquidate?: undefined;
|
|
1700
1688
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
1701
1689
|
CurveUsdGetDebt?: undefined;
|
|
@@ -1975,8 +1963,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
1975
1963
|
CurveUsdWithdraw: string;
|
|
1976
1964
|
CurveUsdLevCreate: string;
|
|
1977
1965
|
CurveUsdRepay: string;
|
|
1978
|
-
CurveUsdSwapper: string;
|
|
1979
|
-
CurveUsdSwapperTransient: string;
|
|
1980
1966
|
CurveUsdSelfLiquidate: string;
|
|
1981
1967
|
CurveUsdSelfLiquidateWithColl: string;
|
|
1982
1968
|
CurveUsdGetDebt: string;
|
|
@@ -2275,8 +2261,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2275
2261
|
CurveUsdWithdraw?: undefined;
|
|
2276
2262
|
CurveUsdLevCreate?: undefined;
|
|
2277
2263
|
CurveUsdRepay?: undefined;
|
|
2278
|
-
CurveUsdSwapper?: undefined;
|
|
2279
|
-
CurveUsdSwapperTransient?: undefined;
|
|
2280
2264
|
CurveUsdSelfLiquidate?: undefined;
|
|
2281
2265
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
2282
2266
|
CurveUsdGetDebt?: undefined;
|
|
@@ -2601,8 +2585,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2601
2585
|
CurveUsdWithdraw?: undefined;
|
|
2602
2586
|
CurveUsdLevCreate?: undefined;
|
|
2603
2587
|
CurveUsdRepay?: undefined;
|
|
2604
|
-
CurveUsdSwapper?: undefined;
|
|
2605
|
-
CurveUsdSwapperTransient?: undefined;
|
|
2606
2588
|
CurveUsdSelfLiquidate?: undefined;
|
|
2607
2589
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
2608
2590
|
CurveUsdGetDebt?: undefined;
|
|
@@ -2888,8 +2870,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2888
2870
|
CurveUsdWithdraw?: undefined;
|
|
2889
2871
|
CurveUsdLevCreate?: undefined;
|
|
2890
2872
|
CurveUsdRepay?: undefined;
|
|
2891
|
-
CurveUsdSwapper?: undefined;
|
|
2892
|
-
CurveUsdSwapperTransient?: undefined;
|
|
2893
2873
|
CurveUsdSelfLiquidate?: undefined;
|
|
2894
2874
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
2895
2875
|
CurveUsdGetDebt?: undefined;
|
|
@@ -3148,8 +3128,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3148
3128
|
CurveUsdWithdraw?: undefined;
|
|
3149
3129
|
CurveUsdLevCreate?: undefined;
|
|
3150
3130
|
CurveUsdRepay?: undefined;
|
|
3151
|
-
CurveUsdSwapper?: undefined;
|
|
3152
|
-
CurveUsdSwapperTransient?: undefined;
|
|
3153
3131
|
CurveUsdSelfLiquidate?: undefined;
|
|
3154
3132
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
3155
3133
|
CurveUsdGetDebt?: undefined;
|
|
@@ -3454,8 +3432,6 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3454
3432
|
CurveUsdWithdraw?: undefined;
|
|
3455
3433
|
CurveUsdLevCreate?: undefined;
|
|
3456
3434
|
CurveUsdRepay?: undefined;
|
|
3457
|
-
CurveUsdSwapper?: undefined;
|
|
3458
|
-
CurveUsdSwapperTransient?: undefined;
|
|
3459
3435
|
CurveUsdSelfLiquidate?: undefined;
|
|
3460
3436
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
3461
3437
|
CurveUsdGetDebt?: undefined;
|
|
@@ -3972,8 +3948,6 @@ declare const _default: {
|
|
|
3972
3948
|
CurveUsdWithdraw: string;
|
|
3973
3949
|
CurveUsdLevCreate: string;
|
|
3974
3950
|
CurveUsdRepay: string;
|
|
3975
|
-
CurveUsdSwapper: string;
|
|
3976
|
-
CurveUsdSwapperTransient: string;
|
|
3977
3951
|
CurveUsdSelfLiquidate: string;
|
|
3978
3952
|
CurveUsdSelfLiquidateWithColl: string;
|
|
3979
3953
|
CurveUsdGetDebt: string;
|
|
@@ -4272,8 +4246,6 @@ declare const _default: {
|
|
|
4272
4246
|
CurveUsdWithdraw?: undefined;
|
|
4273
4247
|
CurveUsdLevCreate?: undefined;
|
|
4274
4248
|
CurveUsdRepay?: undefined;
|
|
4275
|
-
CurveUsdSwapper?: undefined;
|
|
4276
|
-
CurveUsdSwapperTransient?: undefined;
|
|
4277
4249
|
CurveUsdSelfLiquidate?: undefined;
|
|
4278
4250
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
4279
4251
|
CurveUsdGetDebt?: undefined;
|
|
@@ -4598,8 +4570,6 @@ declare const _default: {
|
|
|
4598
4570
|
CurveUsdWithdraw?: undefined;
|
|
4599
4571
|
CurveUsdLevCreate?: undefined;
|
|
4600
4572
|
CurveUsdRepay?: undefined;
|
|
4601
|
-
CurveUsdSwapper?: undefined;
|
|
4602
|
-
CurveUsdSwapperTransient?: undefined;
|
|
4603
4573
|
CurveUsdSelfLiquidate?: undefined;
|
|
4604
4574
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
4605
4575
|
CurveUsdGetDebt?: undefined;
|
|
@@ -4885,8 +4855,6 @@ declare const _default: {
|
|
|
4885
4855
|
CurveUsdWithdraw?: undefined;
|
|
4886
4856
|
CurveUsdLevCreate?: undefined;
|
|
4887
4857
|
CurveUsdRepay?: undefined;
|
|
4888
|
-
CurveUsdSwapper?: undefined;
|
|
4889
|
-
CurveUsdSwapperTransient?: undefined;
|
|
4890
4858
|
CurveUsdSelfLiquidate?: undefined;
|
|
4891
4859
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
4892
4860
|
CurveUsdGetDebt?: undefined;
|
|
@@ -5145,8 +5113,6 @@ declare const _default: {
|
|
|
5145
5113
|
CurveUsdWithdraw?: undefined;
|
|
5146
5114
|
CurveUsdLevCreate?: undefined;
|
|
5147
5115
|
CurveUsdRepay?: undefined;
|
|
5148
|
-
CurveUsdSwapper?: undefined;
|
|
5149
|
-
CurveUsdSwapperTransient?: undefined;
|
|
5150
5116
|
CurveUsdSelfLiquidate?: undefined;
|
|
5151
5117
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
5152
5118
|
CurveUsdGetDebt?: undefined;
|
|
@@ -5451,8 +5417,6 @@ declare const _default: {
|
|
|
5451
5417
|
CurveUsdWithdraw?: undefined;
|
|
5452
5418
|
CurveUsdLevCreate?: undefined;
|
|
5453
5419
|
CurveUsdRepay?: undefined;
|
|
5454
|
-
CurveUsdSwapper?: undefined;
|
|
5455
|
-
CurveUsdSwapperTransient?: undefined;
|
|
5456
5420
|
CurveUsdSelfLiquidate?: undefined;
|
|
5457
5421
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
5458
5422
|
CurveUsdGetDebt?: undefined;
|
|
@@ -5732,8 +5696,6 @@ declare const _default: {
|
|
|
5732
5696
|
CurveUsdWithdraw: string;
|
|
5733
5697
|
CurveUsdLevCreate: string;
|
|
5734
5698
|
CurveUsdRepay: string;
|
|
5735
|
-
CurveUsdSwapper: string;
|
|
5736
|
-
CurveUsdSwapperTransient: string;
|
|
5737
5699
|
CurveUsdSelfLiquidate: string;
|
|
5738
5700
|
CurveUsdSelfLiquidateWithColl: string;
|
|
5739
5701
|
CurveUsdGetDebt: string;
|
|
@@ -6032,8 +5994,6 @@ declare const _default: {
|
|
|
6032
5994
|
CurveUsdWithdraw?: undefined;
|
|
6033
5995
|
CurveUsdLevCreate?: undefined;
|
|
6034
5996
|
CurveUsdRepay?: undefined;
|
|
6035
|
-
CurveUsdSwapper?: undefined;
|
|
6036
|
-
CurveUsdSwapperTransient?: undefined;
|
|
6037
5997
|
CurveUsdSelfLiquidate?: undefined;
|
|
6038
5998
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
6039
5999
|
CurveUsdGetDebt?: undefined;
|
|
@@ -6358,8 +6318,6 @@ declare const _default: {
|
|
|
6358
6318
|
CurveUsdWithdraw?: undefined;
|
|
6359
6319
|
CurveUsdLevCreate?: undefined;
|
|
6360
6320
|
CurveUsdRepay?: undefined;
|
|
6361
|
-
CurveUsdSwapper?: undefined;
|
|
6362
|
-
CurveUsdSwapperTransient?: undefined;
|
|
6363
6321
|
CurveUsdSelfLiquidate?: undefined;
|
|
6364
6322
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
6365
6323
|
CurveUsdGetDebt?: undefined;
|
|
@@ -6645,8 +6603,6 @@ declare const _default: {
|
|
|
6645
6603
|
CurveUsdWithdraw?: undefined;
|
|
6646
6604
|
CurveUsdLevCreate?: undefined;
|
|
6647
6605
|
CurveUsdRepay?: undefined;
|
|
6648
|
-
CurveUsdSwapper?: undefined;
|
|
6649
|
-
CurveUsdSwapperTransient?: undefined;
|
|
6650
6606
|
CurveUsdSelfLiquidate?: undefined;
|
|
6651
6607
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
6652
6608
|
CurveUsdGetDebt?: undefined;
|
|
@@ -6905,8 +6861,6 @@ declare const _default: {
|
|
|
6905
6861
|
CurveUsdWithdraw?: undefined;
|
|
6906
6862
|
CurveUsdLevCreate?: undefined;
|
|
6907
6863
|
CurveUsdRepay?: undefined;
|
|
6908
|
-
CurveUsdSwapper?: undefined;
|
|
6909
|
-
CurveUsdSwapperTransient?: undefined;
|
|
6910
6864
|
CurveUsdSelfLiquidate?: undefined;
|
|
6911
6865
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
6912
6866
|
CurveUsdGetDebt?: undefined;
|
|
@@ -7211,8 +7165,6 @@ declare const _default: {
|
|
|
7211
7165
|
CurveUsdWithdraw?: undefined;
|
|
7212
7166
|
CurveUsdLevCreate?: undefined;
|
|
7213
7167
|
CurveUsdRepay?: undefined;
|
|
7214
|
-
CurveUsdSwapper?: undefined;
|
|
7215
|
-
CurveUsdSwapperTransient?: undefined;
|
|
7216
7168
|
CurveUsdSelfLiquidate?: undefined;
|
|
7217
7169
|
CurveUsdSelfLiquidateWithColl?: undefined;
|
|
7218
7170
|
CurveUsdGetDebt?: undefined;
|
|
@@ -16,7 +16,7 @@ import { assetAmountInWei, getAssetInfo } from '@defisaver/tokens';
|
|
|
16
16
|
import { SellAction } from '../actions/basic';
|
|
17
17
|
import { parsePriceFromContract, formatPriceForContract } from './general';
|
|
18
18
|
const API_URL = 'https://api.0x.org/swap/v1/';
|
|
19
|
-
const ZEROX_WRAPPER = '
|
|
19
|
+
const ZEROX_WRAPPER = '0x2463d84a4ACF9e01Bb28083CB3053f09bffAcc01';
|
|
20
20
|
/**
|
|
21
21
|
* Gets price estimate from 0x API.
|
|
22
22
|
*
|
package/package.json
CHANGED
package/src/addresses.ts
CHANGED
|
@@ -28,8 +28,8 @@ export const actionAddresses = {
|
|
|
28
28
|
HandleAuth: '0xfc2e2b37c73d5d43cf5fcbd80a4049b620d60eba',
|
|
29
29
|
|
|
30
30
|
// Exchange
|
|
31
|
-
DFSSell: '
|
|
32
|
-
DFSSellNoFee: '
|
|
31
|
+
DFSSell: '0xa144A66eEa5E92540f4fe52836B2C3d60De69e6a',
|
|
32
|
+
DFSSellNoFee: '0xfBfd56efC7f29cD9F5a9277C0B2B4FFbb9Edb2fb',
|
|
33
33
|
|
|
34
34
|
// Sky
|
|
35
35
|
SkyStake: '0x5803C399EE9f887C8b81075E4C185c448361c235',
|
|
@@ -109,7 +109,7 @@ export const actionAddresses = {
|
|
|
109
109
|
LSVBorrow: '0x7dFB434527Fdb39854156cDBa9bF4799E36E7e82',
|
|
110
110
|
LSVSupply: '0x17a3e39a1aA6d9BA1Ffd80Ae0E388cA064a8D28F',
|
|
111
111
|
LSVPayback: '0x10749CE97583dBcEb54a083386CC8438C4e0FE65',
|
|
112
|
-
LSVSell: '
|
|
112
|
+
LSVSell: '0x3c4913f8c295A9aF8BB77d3A5e7248e977D91781',
|
|
113
113
|
|
|
114
114
|
// Morpho Aave V2
|
|
115
115
|
MorphoAaveV2Borrow: '0xa85C3E41Bf9F75a381927e1Aa9b00f77C4631109',
|
|
@@ -294,9 +294,6 @@ export const actionAddresses = {
|
|
|
294
294
|
CurveUsdWithdraw: '0x54B8D984fc79B000D7B6F6E0f52CD054E965120f',
|
|
295
295
|
CurveUsdLevCreate: '0xcbd9aFc2b7532b9eeB3A7EC4ea8Bb4320795d9Ad',
|
|
296
296
|
CurveUsdRepay: '0x6F91E8671d17ecEE3D3fb17DcCA87E86B8D83807',
|
|
297
|
-
CurveUsdSwapper: '0xFA8c594b903651F97b27aCADEa83b720cfD7F80b',
|
|
298
|
-
CurveUsdSwapperTransient:
|
|
299
|
-
'0xcF0298592b8FCB3823d31Bb257b65afFCAcCb8b6',
|
|
300
297
|
CurveUsdSelfLiquidate: '0x0B21996Fc90993f975D8279bE8ff2D34518da79C',
|
|
301
298
|
CurveUsdSelfLiquidateWithColl:
|
|
302
299
|
'0x7cE305FC2A18c6820a533AD418dC0A549aFeDcAF',
|
|
@@ -372,7 +369,7 @@ export const actionAddresses = {
|
|
|
372
369
|
FluidVaultT1Payback: '0x8D56b267C6a3e5295EFAebC67Ac413483c885C05',
|
|
373
370
|
FluidVaultT1Withdraw: '0x5673b9ab4A035C5C7474C344664Be91DaFafa17E',
|
|
374
371
|
FluidVaultT1Supply: '0x0c6100209D8A0bb14CC7d18e45dA1bd1E7a3a187',
|
|
375
|
-
FluidView: '
|
|
372
|
+
FluidView: '0xDd71a9cd4902a0BA417e609b986FA6A96D465C57',
|
|
376
373
|
FluidClaim: '0x0bC0aeF7702C204DEF308994C84D8fBce676dB47',
|
|
377
374
|
|
|
378
375
|
// Fluid DEX actions
|
|
@@ -421,7 +418,7 @@ export const actionAddresses = {
|
|
|
421
418
|
},
|
|
422
419
|
[NETWORKS.optimism.chainId]: {
|
|
423
420
|
// Exchange
|
|
424
|
-
DFSSell: '
|
|
421
|
+
DFSSell: '0x28144F33fd68C6a84EDbd6CF9562F2E60E9698D5',
|
|
425
422
|
DFSSellNoFee: '0x0000000000000000000000000000000000000000',
|
|
426
423
|
|
|
427
424
|
// Basic
|
|
@@ -490,7 +487,7 @@ export const actionAddresses = {
|
|
|
490
487
|
},
|
|
491
488
|
[NETWORKS.arbitrum.chainId]: {
|
|
492
489
|
// Exchange
|
|
493
|
-
DFSSell: '
|
|
490
|
+
DFSSell: '0x9AaC4041a964Af951Eedc09eFe12Cc3f8C6D54c6',
|
|
494
491
|
DFSSellNoFee: '0x0000000000000000000000000000000000000000',
|
|
495
492
|
|
|
496
493
|
// Basic
|
|
@@ -573,7 +570,7 @@ export const actionAddresses = {
|
|
|
573
570
|
FluidVaultT1Payback: '0x19FF948437B7f1221173effC029739568F5f844a',
|
|
574
571
|
FluidVaultT1Withdraw: '0xc13d93227d97197e5F1751d0a3e80c1080A5fa2B',
|
|
575
572
|
FluidVaultT1Supply: '0xBCF0Dc5bb2C4434AD07369207904F5900d391b0B',
|
|
576
|
-
FluidView: '
|
|
573
|
+
FluidView: '0xc63b7847202324E3F3746A2f1E275598e33D5404',
|
|
577
574
|
|
|
578
575
|
// Fluid DEX actions
|
|
579
576
|
FluidDexOpen: '0xA456f13d358B8B93bE6778be3244111E267C0AaC',
|
|
@@ -606,7 +603,7 @@ export const actionAddresses = {
|
|
|
606
603
|
},
|
|
607
604
|
[NETWORKS.base.chainId]: {
|
|
608
605
|
// Basic
|
|
609
|
-
DFSSell: '
|
|
606
|
+
DFSSell: '0xb59c13d7D3da6b5D9D5469335F73A8789A2e65e6',
|
|
610
607
|
DFSSellNoFee: '0x0000000000000000000000000000000000000000',
|
|
611
608
|
WrapEth: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
|
612
609
|
UnwrapEth: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
|
|
@@ -681,7 +678,7 @@ export const actionAddresses = {
|
|
|
681
678
|
FluidVaultT1Payback: '0xD4cEe5755e4f713B69f5Fc73068505ec6B9ee2a2',
|
|
682
679
|
FluidVaultT1Withdraw: '0x26bE6a2EdE97aE826ed9DA8Fb79428037fe55cEB',
|
|
683
680
|
FluidVaultT1Supply: '0x028ACA45244d4897ff80ef65ed0b735Bb0D4B0A5',
|
|
684
|
-
FluidView: '
|
|
681
|
+
FluidView: '0x533C19808a1612c411fe8C1B5CBbee44bE1921B9',
|
|
685
682
|
|
|
686
683
|
// Fluid DEX actions
|
|
687
684
|
FluidDexOpen: '0x5eA8Da9679145D51F5eAEC8Bf2f42f47003A8799',
|
|
@@ -708,7 +705,7 @@ export const actionAddresses = {
|
|
|
708
705
|
},
|
|
709
706
|
[NETWORKS.linea.chainId]: {
|
|
710
707
|
// Basic
|
|
711
|
-
DFSSell: '
|
|
708
|
+
DFSSell: '0x741FcFC1D708CEA0d845Fd04de51022b6d00e060',
|
|
712
709
|
DFSSellNoFee: '0x0000000000000000000000000000000000000000',
|
|
713
710
|
WrapEth: '0xB8af168883D049FF9C811ab5B5DE179f3e7d6Fb7',
|
|
714
711
|
UnwrapEth: '0xc5D0FF89e950a364207fC5be1b070170C874Dd87',
|
|
@@ -744,8 +741,8 @@ export const actionAddresses = {
|
|
|
744
741
|
},
|
|
745
742
|
[NETWORKS.plasma.chainId]: {
|
|
746
743
|
// Basic
|
|
747
|
-
DFSSell: '
|
|
748
|
-
DFSSellNoFee: '
|
|
744
|
+
DFSSell: '0x7107A975120dd06efA446782c8c3A2A3FaDe0F41',
|
|
745
|
+
DFSSellNoFee: '0xA1C459e28b383a3107046efe165456B6de373052',
|
|
749
746
|
WrapEth: '0x520E8b0573a03D26D0E39a409E85E28459e24C0E',
|
|
750
747
|
UnwrapEth: '0x93A6E0dC4C4a6033922d386e4cbd9e31278A2BBa',
|
|
751
748
|
SendToken: '0xa2ABA81e65543d18dd1a1E4A31Bc41C4a86453cf',
|
|
@@ -785,7 +782,7 @@ export const actionAddresses = {
|
|
|
785
782
|
FluidVaultT1Payback: '0xdeF8B05Ce194D50C376233C9C5530027f6180442',
|
|
786
783
|
FluidVaultT1Withdraw: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
|
|
787
784
|
FluidVaultT1Supply: '0x54D1b51d2d68CD0Dc877296527780CA6aff68a39',
|
|
788
|
-
FluidView: '
|
|
785
|
+
FluidView: '0xBd2d2d4718C24B8D35168480553b1F5a11f9884b',
|
|
789
786
|
|
|
790
787
|
// Fluid DEX actions
|
|
791
788
|
FluidDexOpen: '0xF32d5d8D81f2662A02955CE537537088DF29daf5',
|
|
@@ -11,7 +11,7 @@ import { SellAction } from '../actions/basic';
|
|
|
11
11
|
import { parsePriceFromContract, formatPriceForContract } from './general';
|
|
12
12
|
|
|
13
13
|
const API_URL = 'https://api.0x.org/swap/v1/';
|
|
14
|
-
const ZEROX_WRAPPER = '
|
|
14
|
+
const ZEROX_WRAPPER = '0x2463d84a4ACF9e01Bb28083CB3053f09bffAcc01';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Gets price estimate from 0x API.
|
|
@@ -4,6 +4,39 @@ const axios = require("axios");
|
|
|
4
4
|
const dfs = require('../../src');
|
|
5
5
|
const exchangeUtils = dfs.utils.zeroExExchange;
|
|
6
6
|
|
|
7
|
+
describe('0x exchange wrapper', () => {
|
|
8
|
+
it('uses the current Mainnet wrapper for quotes and sell actions', async () => {
|
|
9
|
+
const wrapper = '0x2463d84a4ACF9e01Bb28083CB3053f09bffAcc01';
|
|
10
|
+
const account = '0x0a80C3C540eEF99811f4579fa7b1A0617294e06f';
|
|
11
|
+
const originalGet = axios.get;
|
|
12
|
+
let requestedUrl;
|
|
13
|
+
|
|
14
|
+
axios.get = async (url) => {
|
|
15
|
+
requestedUrl = url;
|
|
16
|
+
return {
|
|
17
|
+
status: 200,
|
|
18
|
+
data: {
|
|
19
|
+
price: '1',
|
|
20
|
+
guaranteedPrice: '1',
|
|
21
|
+
protocolFee: '0',
|
|
22
|
+
value: '0',
|
|
23
|
+
to: account,
|
|
24
|
+
allowanceTarget: account,
|
|
25
|
+
data: '0x',
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
try {
|
|
31
|
+
const action = await exchangeUtils.createSellAction('1', 'ETH', 'DAI', '0', 0, account, account);
|
|
32
|
+
assert.equal(new URL(requestedUrl).searchParams.get('takerAddress'), wrapper);
|
|
33
|
+
assert.equal(action.args[0][9][0], wrapper);
|
|
34
|
+
} finally {
|
|
35
|
+
axios.get = originalGet;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
7
40
|
describe.skip('Exchange utils', () => {
|
|
8
41
|
|
|
9
42
|
const prices = {};
|
package/umd/index.js
CHANGED
|
@@ -1350,8 +1350,8 @@ var actionAddresses = {
|
|
|
1350
1350
|
StarknetClaim: '0x40069889098cd54d6c1021578000f37b197479cf',
|
|
1351
1351
|
HandleAuth: '0xfc2e2b37c73d5d43cf5fcbd80a4049b620d60eba',
|
|
1352
1352
|
// Exchange
|
|
1353
|
-
DFSSell: '
|
|
1354
|
-
DFSSellNoFee: '
|
|
1353
|
+
DFSSell: '0xa144A66eEa5E92540f4fe52836B2C3d60De69e6a',
|
|
1354
|
+
DFSSellNoFee: '0xfBfd56efC7f29cD9F5a9277C0B2B4FFbb9Edb2fb',
|
|
1355
1355
|
// Sky
|
|
1356
1356
|
SkyStake: '0x5803C399EE9f887C8b81075E4C185c448361c235',
|
|
1357
1357
|
SkyUnstake: '0x4b6d3A01465fa88D7D596333D15832434a568452',
|
|
@@ -1415,7 +1415,7 @@ var actionAddresses = {
|
|
|
1415
1415
|
LSVBorrow: '0x7dFB434527Fdb39854156cDBa9bF4799E36E7e82',
|
|
1416
1416
|
LSVSupply: '0x17a3e39a1aA6d9BA1Ffd80Ae0E388cA064a8D28F',
|
|
1417
1417
|
LSVPayback: '0x10749CE97583dBcEb54a083386CC8438C4e0FE65',
|
|
1418
|
-
LSVSell: '
|
|
1418
|
+
LSVSell: '0x3c4913f8c295A9aF8BB77d3A5e7248e977D91781',
|
|
1419
1419
|
// Morpho Aave V2
|
|
1420
1420
|
MorphoAaveV2Borrow: '0xa85C3E41Bf9F75a381927e1Aa9b00f77C4631109',
|
|
1421
1421
|
MorphoAaveV2Payback: '0x5dd0E0835acbb08aa4A4599d70fB2d93969fa7b7',
|
|
@@ -1567,8 +1567,6 @@ var actionAddresses = {
|
|
|
1567
1567
|
CurveUsdWithdraw: '0x54B8D984fc79B000D7B6F6E0f52CD054E965120f',
|
|
1568
1568
|
CurveUsdLevCreate: '0xcbd9aFc2b7532b9eeB3A7EC4ea8Bb4320795d9Ad',
|
|
1569
1569
|
CurveUsdRepay: '0x6F91E8671d17ecEE3D3fb17DcCA87E86B8D83807',
|
|
1570
|
-
CurveUsdSwapper: '0xFA8c594b903651F97b27aCADEa83b720cfD7F80b',
|
|
1571
|
-
CurveUsdSwapperTransient: '0xcF0298592b8FCB3823d31Bb257b65afFCAcCb8b6',
|
|
1572
1570
|
CurveUsdSelfLiquidate: '0x0B21996Fc90993f975D8279bE8ff2D34518da79C',
|
|
1573
1571
|
CurveUsdSelfLiquidateWithColl: '0x7cE305FC2A18c6820a533AD418dC0A549aFeDcAF',
|
|
1574
1572
|
CurveUsdGetDebt: '0x3Bb41d3f300dA758780fe7696bb4fB93cD7172fB',
|
|
@@ -1626,7 +1624,7 @@ var actionAddresses = {
|
|
|
1626
1624
|
FluidVaultT1Payback: '0x8D56b267C6a3e5295EFAebC67Ac413483c885C05',
|
|
1627
1625
|
FluidVaultT1Withdraw: '0x5673b9ab4A035C5C7474C344664Be91DaFafa17E',
|
|
1628
1626
|
FluidVaultT1Supply: '0x0c6100209D8A0bb14CC7d18e45dA1bd1E7a3a187',
|
|
1629
|
-
FluidView: '
|
|
1627
|
+
FluidView: '0xDd71a9cd4902a0BA417e609b986FA6A96D465C57',
|
|
1630
1628
|
FluidClaim: '0x0bC0aeF7702C204DEF308994C84D8fBce676dB47',
|
|
1631
1629
|
// Fluid DEX actions
|
|
1632
1630
|
FluidDexOpen: '0x071e1369E1c9030Aa1a089bDE2F72797a14FE3b3',
|
|
@@ -1669,7 +1667,7 @@ var actionAddresses = {
|
|
|
1669
1667
|
},
|
|
1670
1668
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.optimism.chainId]: {
|
|
1671
1669
|
// Exchange
|
|
1672
|
-
DFSSell: '
|
|
1670
|
+
DFSSell: '0x28144F33fd68C6a84EDbd6CF9562F2E60E9698D5',
|
|
1673
1671
|
DFSSellNoFee: '0x0000000000000000000000000000000000000000',
|
|
1674
1672
|
// Basic
|
|
1675
1673
|
WrapEth: '0x6D735db054AC4a1F10f96b99f8550E9eefbC2AC5',
|
|
@@ -1731,7 +1729,7 @@ var actionAddresses = {
|
|
|
1731
1729
|
},
|
|
1732
1730
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.arbitrum.chainId]: {
|
|
1733
1731
|
// Exchange
|
|
1734
|
-
DFSSell: '
|
|
1732
|
+
DFSSell: '0x9AaC4041a964Af951Eedc09eFe12Cc3f8C6D54c6',
|
|
1735
1733
|
DFSSellNoFee: '0x0000000000000000000000000000000000000000',
|
|
1736
1734
|
// Basic
|
|
1737
1735
|
WrapEth: '0x35136b25bFA7CCC8f5b94E3181a16B61c06980F0',
|
|
@@ -1804,7 +1802,7 @@ var actionAddresses = {
|
|
|
1804
1802
|
FluidVaultT1Payback: '0x19FF948437B7f1221173effC029739568F5f844a',
|
|
1805
1803
|
FluidVaultT1Withdraw: '0xc13d93227d97197e5F1751d0a3e80c1080A5fa2B',
|
|
1806
1804
|
FluidVaultT1Supply: '0xBCF0Dc5bb2C4434AD07369207904F5900d391b0B',
|
|
1807
|
-
FluidView: '
|
|
1805
|
+
FluidView: '0xc63b7847202324E3F3746A2f1E275598e33D5404',
|
|
1808
1806
|
// Fluid DEX actions
|
|
1809
1807
|
FluidDexOpen: '0xA456f13d358B8B93bE6778be3244111E267C0AaC',
|
|
1810
1808
|
FluidDexSupply: '0x3E49c4f914E01e5612719a7B4965e4FAfb324762',
|
|
@@ -1831,7 +1829,7 @@ var actionAddresses = {
|
|
|
1831
1829
|
},
|
|
1832
1830
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.base.chainId]: {
|
|
1833
1831
|
// Basic
|
|
1834
|
-
DFSSell: '
|
|
1832
|
+
DFSSell: '0xb59c13d7D3da6b5D9D5469335F73A8789A2e65e6',
|
|
1835
1833
|
DFSSellNoFee: '0x0000000000000000000000000000000000000000',
|
|
1836
1834
|
WrapEth: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
|
1837
1835
|
UnwrapEth: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
|
|
@@ -1895,7 +1893,7 @@ var actionAddresses = {
|
|
|
1895
1893
|
FluidVaultT1Payback: '0xD4cEe5755e4f713B69f5Fc73068505ec6B9ee2a2',
|
|
1896
1894
|
FluidVaultT1Withdraw: '0x26bE6a2EdE97aE826ed9DA8Fb79428037fe55cEB',
|
|
1897
1895
|
FluidVaultT1Supply: '0x028ACA45244d4897ff80ef65ed0b735Bb0D4B0A5',
|
|
1898
|
-
FluidView: '
|
|
1896
|
+
FluidView: '0x533C19808a1612c411fe8C1B5CBbee44bE1921B9',
|
|
1899
1897
|
// Fluid DEX actions
|
|
1900
1898
|
FluidDexOpen: '0x5eA8Da9679145D51F5eAEC8Bf2f42f47003A8799',
|
|
1901
1899
|
FluidDexSupply: '0x2fCb7db80d3Be5C1B0049dF074b1AcFbcA93A867',
|
|
@@ -1919,7 +1917,7 @@ var actionAddresses = {
|
|
|
1919
1917
|
},
|
|
1920
1918
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.linea.chainId]: {
|
|
1921
1919
|
// Basic
|
|
1922
|
-
DFSSell: '
|
|
1920
|
+
DFSSell: '0x741FcFC1D708CEA0d845Fd04de51022b6d00e060',
|
|
1923
1921
|
DFSSellNoFee: '0x0000000000000000000000000000000000000000',
|
|
1924
1922
|
WrapEth: '0xB8af168883D049FF9C811ab5B5DE179f3e7d6Fb7',
|
|
1925
1923
|
UnwrapEth: '0xc5D0FF89e950a364207fC5be1b070170C874Dd87',
|
|
@@ -1953,8 +1951,8 @@ var actionAddresses = {
|
|
|
1953
1951
|
},
|
|
1954
1952
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.plasma.chainId]: {
|
|
1955
1953
|
// Basic
|
|
1956
|
-
DFSSell: '
|
|
1957
|
-
DFSSellNoFee: '
|
|
1954
|
+
DFSSell: '0x7107A975120dd06efA446782c8c3A2A3FaDe0F41',
|
|
1955
|
+
DFSSellNoFee: '0xA1C459e28b383a3107046efe165456B6de373052',
|
|
1958
1956
|
WrapEth: '0x520E8b0573a03D26D0E39a409E85E28459e24C0E',
|
|
1959
1957
|
UnwrapEth: '0x93A6E0dC4C4a6033922d386e4cbd9e31278A2BBa',
|
|
1960
1958
|
SendToken: '0xa2ABA81e65543d18dd1a1E4A31Bc41C4a86453cf',
|
|
@@ -1991,7 +1989,7 @@ var actionAddresses = {
|
|
|
1991
1989
|
FluidVaultT1Payback: '0xdeF8B05Ce194D50C376233C9C5530027f6180442',
|
|
1992
1990
|
FluidVaultT1Withdraw: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
|
|
1993
1991
|
FluidVaultT1Supply: '0x54D1b51d2d68CD0Dc877296527780CA6aff68a39',
|
|
1994
|
-
FluidView: '
|
|
1992
|
+
FluidView: '0xBd2d2d4718C24B8D35168480553b1F5a11f9884b',
|
|
1995
1993
|
// Fluid DEX actions
|
|
1996
1994
|
FluidDexOpen: '0xF32d5d8D81f2662A02955CE537537088DF29daf5',
|
|
1997
1995
|
FluidDexSupply: '0x903F7C93FFC4AAbaBB096a7A722F1f057816B399',
|
|
@@ -18162,7 +18160,7 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
|
|
|
18162
18160
|
|
|
18163
18161
|
|
|
18164
18162
|
var API_URL = 'https://api.0x.org/swap/v1/';
|
|
18165
|
-
var ZEROX_WRAPPER = '
|
|
18163
|
+
var ZEROX_WRAPPER = '0x2463d84a4ACF9e01Bb28083CB3053f09bffAcc01';
|
|
18166
18164
|
|
|
18167
18165
|
/**
|
|
18168
18166
|
* Gets price estimate from 0x API.
|