@defisaver/sdk 1.0.29 → 1.0.31
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/curveusd/CurveUsdLevCreateAction.d.ts +2 -2
- package/esm/src/actions/curveusd/CurveUsdLevCreateAction.js +2 -2
- package/esm/src/actions/curveusd/CurveUsdRepayAction.d.ts +2 -2
- package/esm/src/actions/curveusd/CurveUsdRepayAction.js +2 -2
- package/esm/src/actions/curveusd/CurveUsdSelfLiquidateWithCollAction.d.ts +2 -2
- package/esm/src/actions/curveusd/CurveUsdSelfLiquidateWithCollAction.js +2 -2
- package/esm/src/addresses.js +4 -4
- package/esm/src/types.d.ts +2 -1
- package/esm/src/utils/curveusd-utils.d.ts +0 -5
- package/esm/src/utils/curveusd-utils.js +0 -2
- package/package.json +1 -1
- package/src/actions/curveusd/CurveUsdLevCreateAction.ts +11 -3
- package/src/actions/curveusd/CurveUsdRepayAction.ts +9 -3
- package/src/actions/curveusd/CurveUsdSelfLiquidateWithCollAction.ts +11 -3
- package/src/addresses.ts +4 -4
- package/src/types.ts +2 -1
- package/src/utils/curveusd-utils.ts +0 -2
- package/umd/index.js +10 -15
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress, uint256, bytes } from '../../types';
|
|
2
|
+
import { EthAddress, uint256, uint32, bytes } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @category CurveUsd
|
|
6
6
|
*/
|
|
7
7
|
export declare class CurveUsdLevCreateAction extends Action {
|
|
8
|
-
constructor(controllerAddress: EthAddress, collateralAmount: uint256, debtAmount: uint256, minAmount: uint256, nBands: uint256, from: EthAddress, additionData: bytes);
|
|
8
|
+
constructor(controllerAddress: EthAddress, collateralAmount: uint256, debtAmount: uint256, minAmount: uint256, nBands: uint256, from: EthAddress, additionData: bytes, gasUsed: uint32, dfsFeeDivider: uint32, useSteth: Boolean);
|
|
9
9
|
}
|
|
@@ -6,9 +6,9 @@ import { getAddr } from '../../addresses';
|
|
|
6
6
|
* @category CurveUsd
|
|
7
7
|
*/
|
|
8
8
|
export class CurveUsdLevCreateAction extends Action {
|
|
9
|
-
constructor(controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData) {
|
|
9
|
+
constructor(controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData, gasUsed, dfsFeeDivider, useSteth) {
|
|
10
10
|
requireAddress(from);
|
|
11
|
-
super('CurveUsdLevCreate', getAddr('CurveUsdLevCreate'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes'], [controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData]);
|
|
11
|
+
super('CurveUsdLevCreate', getAddr('CurveUsdLevCreate'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', 'uint32', 'bool'], [controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData, gasUsed, dfsFeeDivider, useSteth]);
|
|
12
12
|
this.mappableArgs = [
|
|
13
13
|
...this.args,
|
|
14
14
|
];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress, uint256, bytes } from '../../types';
|
|
2
|
+
import { EthAddress, uint256, uint32, bytes } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @category CurveUsd
|
|
6
6
|
*/
|
|
7
7
|
export declare class CurveUsdRepayAction extends Action {
|
|
8
|
-
constructor(controllerAddress: EthAddress, collAmount: uint256, to: EthAddress, minAmount: uint256, additionData: bytes);
|
|
8
|
+
constructor(controllerAddress: EthAddress, collAmount: uint256, to: EthAddress, minAmount: uint256, additionData: bytes, gasUsed: uint32, dfsFeeDivider: uint32, useSteth: Boolean);
|
|
9
9
|
}
|
|
@@ -5,8 +5,8 @@ import { getAddr } from '../../addresses';
|
|
|
5
5
|
* @category CurveUsd
|
|
6
6
|
*/
|
|
7
7
|
export class CurveUsdRepayAction extends Action {
|
|
8
|
-
constructor(controllerAddress, collAmount, to, minAmount, additionData) {
|
|
9
|
-
super('CurveUsdRepay', getAddr('CurveUsdRepay'), ['address', 'uint256', 'address', 'uint256', 'bytes'], [controllerAddress, collAmount, to, minAmount, additionData]);
|
|
8
|
+
constructor(controllerAddress, collAmount, to, minAmount, additionData, gasUsed, dfsFeeDivider, useSteth) {
|
|
9
|
+
super('CurveUsdRepay', getAddr('CurveUsdRepay'), ['address', 'uint256', 'address', 'uint256', 'bytes', 'uint32', 'uint32', 'bool'], [controllerAddress, collAmount, to, minAmount, additionData, gasUsed, dfsFeeDivider, useSteth]);
|
|
10
10
|
this.mappableArgs = [
|
|
11
11
|
...this.args,
|
|
12
12
|
];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress, uint256, bytes } from '../../types';
|
|
2
|
+
import { EthAddress, uint256, uint32, bytes } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @category CurveUsd
|
|
6
6
|
*/
|
|
7
7
|
export declare class CurveUsdSelfLiquidateWithCollAction extends Action {
|
|
8
|
-
constructor(controllerAddress: EthAddress, percentage: uint256, minCrvUsdExpected: uint256, swapAmount: uint256, minAmount: uint256, to: EthAddress, additionData: bytes);
|
|
8
|
+
constructor(controllerAddress: EthAddress, percentage: uint256, minCrvUsdExpected: uint256, swapAmount: uint256, minAmount: uint256, to: EthAddress, additionData: bytes, gasUsed: uint32, dfsFeeDivider: uint32, useSteth: Boolean);
|
|
9
9
|
}
|
|
@@ -6,9 +6,9 @@ import { getAddr } from '../../addresses';
|
|
|
6
6
|
* @category CurveUsd
|
|
7
7
|
*/
|
|
8
8
|
export class CurveUsdSelfLiquidateWithCollAction extends Action {
|
|
9
|
-
constructor(controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData) {
|
|
9
|
+
constructor(controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData, gasUsed, dfsFeeDivider, useSteth) {
|
|
10
10
|
requireAddress(to);
|
|
11
|
-
super('CurveUsdSelfLiquidateWithColl', getAddr('CurveUsdSelfLiquidateWithColl'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes'], [controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData]);
|
|
11
|
+
super('CurveUsdSelfLiquidateWithColl', getAddr('CurveUsdSelfLiquidateWithColl'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', 'uint32', 'bool'], [controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData, gasUsed, dfsFeeDivider, useSteth]);
|
|
12
12
|
this.mappableArgs = [
|
|
13
13
|
...this.args,
|
|
14
14
|
];
|
package/esm/src/addresses.js
CHANGED
|
@@ -174,11 +174,11 @@ export const actionAddresses = {
|
|
|
174
174
|
CurveUsdPayback: '0x14A9dab0BAF6f48e8ffaf612D0604fEa549e27Ff',
|
|
175
175
|
CurveUsdSupply: '0xEf146C22be5A51F2D777c05623a781ED51c2702b',
|
|
176
176
|
CurveUsdWithdraw: '0xD9c1Ae50138ad34C02973AA9E437d0A864c0F6D8',
|
|
177
|
-
CurveUsdLevCreate: '
|
|
178
|
-
CurveUsdRepay: '
|
|
179
|
-
CurveUsdSwapper: '
|
|
177
|
+
CurveUsdLevCreate: '0x427DA6121e8f1E0f372Fd7341Fb6882F349b1c32',
|
|
178
|
+
CurveUsdRepay: '0x2A298a4eCCadf70fA46B00ff30920e7feeD91D9E',
|
|
179
|
+
CurveUsdSwapper: '0x65605f4d7617bA9B4A5CDa60D882833722E21e80',
|
|
180
180
|
CurveUsdSelfLiquidate: '0xB05a411734d05f0124d0Aea9Ebb932Bf25C06533',
|
|
181
|
-
CurveUsdSelfLiquidateWithColl: '
|
|
181
|
+
CurveUsdSelfLiquidateWithColl: '0xB992FCE8148aD576aDF422335e410c4A5169DA17',
|
|
182
182
|
},
|
|
183
183
|
[NETWORKS.optimism.chainId]: {
|
|
184
184
|
DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
|
package/esm/src/types.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ type EthAddress = string;
|
|
|
32
32
|
type bytes32 = string;
|
|
33
33
|
type bytes = string | Array<any>;
|
|
34
34
|
type uint256 = string;
|
|
35
|
+
type uint32 = string;
|
|
35
36
|
type uint160 = string;
|
|
36
37
|
type uint128 = string;
|
|
37
38
|
type uint80 = string;
|
|
@@ -41,4 +42,4 @@ type uint16 = string;
|
|
|
41
42
|
type uint8 = string;
|
|
42
43
|
type int256 = string;
|
|
43
44
|
type int24 = string;
|
|
44
|
-
export { AccessList, AccessListItem, AccessLists, Config, Network, Networks, EthAddress, bytes32, bytes, uint256, uint160, uint128, uint80, uint64, uint24, uint16, uint8, int256, int24, };
|
|
45
|
+
export { AccessList, AccessListItem, AccessLists, Config, Network, Networks, EthAddress, bytes32, bytes, uint256, uint160, uint32, uint128, uint80, uint64, uint24, uint16, uint8, int256, int24, };
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export declare const curveusdMarkets: {
|
|
2
|
-
sfrxETH: {
|
|
3
|
-
controllerAddress: string;
|
|
4
|
-
debtAvailableBlock: number;
|
|
5
|
-
};
|
|
6
2
|
wstETH: {
|
|
7
3
|
controllerAddress: string;
|
|
8
4
|
debtAvailableBlock: number;
|
|
@@ -17,7 +13,6 @@ export declare const curveusdMarkets: {
|
|
|
17
13
|
};
|
|
18
14
|
};
|
|
19
15
|
export declare const controllerToAssetMap: {
|
|
20
|
-
'0x8472a9a7632b173c8cf3a86d3afec50c35548e76': string;
|
|
21
16
|
'0x100dAa78fC509Db39Ef7D04DE0c1ABD299f4C6CE': string;
|
|
22
17
|
'0x4e59541306910ad6dc1dac0ac9dfb29bd9f15c67': string;
|
|
23
18
|
'0xa920de414ea4ab66b97da1bfe9e6eca7d4219635': string;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
/// @dev debtAvailableBlock is only used in v3-contracts repo
|
|
2
2
|
export const curveusdMarkets = {
|
|
3
|
-
sfrxETH: { controllerAddress: '0x8472a9a7632b173c8cf3a86d3afec50c35548e76', debtAvailableBlock: 17425859 },
|
|
4
3
|
wstETH: { controllerAddress: '0x100dAa78fC509Db39Ef7D04DE0c1ABD299f4C6CE', debtAvailableBlock: 17487165 },
|
|
5
4
|
WBTC: { controllerAddress: '0x4e59541306910ad6dc1dac0ac9dfb29bd9f15c67', debtAvailableBlock: 17563176 },
|
|
6
5
|
WETH: { controllerAddress: '0xa920de414ea4ab66b97da1bfe9e6eca7d4219635', debtAvailableBlock: 17563176 },
|
|
7
6
|
};
|
|
8
7
|
export const controllerToAssetMap = {
|
|
9
|
-
'0x8472a9a7632b173c8cf3a86d3afec50c35548e76': '0xac3E018457B222d93114458476f3E3416Abbe38F',
|
|
10
8
|
'0x100dAa78fC509Db39Ef7D04DE0c1ABD299f4C6CE': '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',
|
|
11
9
|
'0x4e59541306910ad6dc1dac0ac9dfb29bd9f15c67': '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
|
|
12
10
|
'0xa920de414ea4ab66b97da1bfe9e6eca7d4219635': '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
2
|
import { requireAddress } from '../../utils/general';
|
|
3
3
|
import { getAddr } from '../../addresses';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
EthAddress,
|
|
6
|
+
uint256,
|
|
7
|
+
uint32,
|
|
8
|
+
bytes,
|
|
9
|
+
} from '../../types';
|
|
5
10
|
|
|
6
11
|
/**
|
|
7
12
|
*
|
|
@@ -16,13 +21,16 @@ export class CurveUsdLevCreateAction extends Action {
|
|
|
16
21
|
nBands: uint256,
|
|
17
22
|
from: EthAddress,
|
|
18
23
|
additionData: bytes,
|
|
24
|
+
gasUsed: uint32,
|
|
25
|
+
dfsFeeDivider: uint32,
|
|
26
|
+
useSteth: Boolean,
|
|
19
27
|
) {
|
|
20
28
|
requireAddress(from);
|
|
21
29
|
super(
|
|
22
30
|
'CurveUsdLevCreate',
|
|
23
31
|
getAddr('CurveUsdLevCreate'),
|
|
24
|
-
['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes'],
|
|
25
|
-
[controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData],
|
|
32
|
+
['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', 'uint32', 'bool'],
|
|
33
|
+
[controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData, gasUsed, dfsFeeDivider, useSteth],
|
|
26
34
|
);
|
|
27
35
|
|
|
28
36
|
this.mappableArgs = [
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
2
|
import { getAddr } from '../../addresses';
|
|
3
3
|
import {
|
|
4
|
-
EthAddress,
|
|
4
|
+
EthAddress,
|
|
5
|
+
uint256,
|
|
6
|
+
uint32,
|
|
7
|
+
bytes,
|
|
5
8
|
} from '../../types';
|
|
6
9
|
|
|
7
10
|
/**
|
|
@@ -15,12 +18,15 @@ export class CurveUsdRepayAction extends Action {
|
|
|
15
18
|
to: EthAddress,
|
|
16
19
|
minAmount: uint256,
|
|
17
20
|
additionData: bytes,
|
|
21
|
+
gasUsed: uint32,
|
|
22
|
+
dfsFeeDivider: uint32,
|
|
23
|
+
useSteth: Boolean,
|
|
18
24
|
) {
|
|
19
25
|
super(
|
|
20
26
|
'CurveUsdRepay',
|
|
21
27
|
getAddr('CurveUsdRepay'),
|
|
22
|
-
['address', 'uint256', 'address', 'uint256', 'bytes'],
|
|
23
|
-
[controllerAddress, collAmount, to, minAmount, additionData],
|
|
28
|
+
['address', 'uint256', 'address', 'uint256', 'bytes', 'uint32', 'uint32', 'bool'],
|
|
29
|
+
[controllerAddress, collAmount, to, minAmount, additionData, gasUsed, dfsFeeDivider, useSteth],
|
|
24
30
|
);
|
|
25
31
|
|
|
26
32
|
this.mappableArgs = [
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
2
|
import { requireAddress } from '../../utils/general';
|
|
3
3
|
import { getAddr } from '../../addresses';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
EthAddress,
|
|
6
|
+
uint256,
|
|
7
|
+
uint32,
|
|
8
|
+
bytes,
|
|
9
|
+
} from '../../types';
|
|
5
10
|
|
|
6
11
|
/**
|
|
7
12
|
*
|
|
@@ -16,13 +21,16 @@ export class CurveUsdSelfLiquidateWithCollAction extends Action {
|
|
|
16
21
|
minAmount: uint256,
|
|
17
22
|
to: EthAddress,
|
|
18
23
|
additionData: bytes,
|
|
24
|
+
gasUsed: uint32,
|
|
25
|
+
dfsFeeDivider: uint32,
|
|
26
|
+
useSteth: Boolean,
|
|
19
27
|
) {
|
|
20
28
|
requireAddress(to);
|
|
21
29
|
super(
|
|
22
30
|
'CurveUsdSelfLiquidateWithColl',
|
|
23
31
|
getAddr('CurveUsdSelfLiquidateWithColl'),
|
|
24
|
-
['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes'],
|
|
25
|
-
[controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData],
|
|
32
|
+
['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', 'uint32', 'bool'],
|
|
33
|
+
[controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData, gasUsed, dfsFeeDivider, useSteth],
|
|
26
34
|
);
|
|
27
35
|
|
|
28
36
|
this.mappableArgs = [
|
package/src/addresses.ts
CHANGED
|
@@ -207,11 +207,11 @@ export const actionAddresses = {
|
|
|
207
207
|
CurveUsdPayback: '0x14A9dab0BAF6f48e8ffaf612D0604fEa549e27Ff',
|
|
208
208
|
CurveUsdSupply: '0xEf146C22be5A51F2D777c05623a781ED51c2702b',
|
|
209
209
|
CurveUsdWithdraw: '0xD9c1Ae50138ad34C02973AA9E437d0A864c0F6D8',
|
|
210
|
-
CurveUsdLevCreate: '
|
|
211
|
-
CurveUsdRepay: '
|
|
212
|
-
CurveUsdSwapper: '
|
|
210
|
+
CurveUsdLevCreate: '0x427DA6121e8f1E0f372Fd7341Fb6882F349b1c32',
|
|
211
|
+
CurveUsdRepay: '0x2A298a4eCCadf70fA46B00ff30920e7feeD91D9E',
|
|
212
|
+
CurveUsdSwapper: '0x65605f4d7617bA9B4A5CDa60D882833722E21e80',
|
|
213
213
|
CurveUsdSelfLiquidate: '0xB05a411734d05f0124d0Aea9Ebb932Bf25C06533',
|
|
214
|
-
CurveUsdSelfLiquidateWithColl: '
|
|
214
|
+
CurveUsdSelfLiquidateWithColl: '0xB992FCE8148aD576aDF422335e410c4A5169DA17',
|
|
215
215
|
},
|
|
216
216
|
[NETWORKS.optimism.chainId]: {
|
|
217
217
|
DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
|
package/src/types.ts
CHANGED
|
@@ -35,6 +35,7 @@ type EthAddress = string;
|
|
|
35
35
|
type bytes32 = string;
|
|
36
36
|
type bytes = string | Array<any>;
|
|
37
37
|
type uint256 = string;
|
|
38
|
+
type uint32 = string;
|
|
38
39
|
type uint160 = string;
|
|
39
40
|
type uint128 = string;
|
|
40
41
|
type uint80 = string;
|
|
@@ -46,5 +47,5 @@ type int256 = string;
|
|
|
46
47
|
type int24 = string;
|
|
47
48
|
|
|
48
49
|
export {
|
|
49
|
-
AccessList, AccessListItem, AccessLists, Config, Network, Networks, EthAddress, bytes32, bytes, uint256, uint160, uint128, uint80, uint64, uint24, uint16, uint8, int256, int24,
|
|
50
|
+
AccessList, AccessListItem, AccessLists, Config, Network, Networks, EthAddress, bytes32, bytes, uint256, uint160, uint32, uint128, uint80, uint64, uint24, uint16, uint8, int256, int24,
|
|
50
51
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/// @dev debtAvailableBlock is only used in v3-contracts repo
|
|
2
2
|
export const curveusdMarkets = {
|
|
3
|
-
sfrxETH: { controllerAddress: '0x8472a9a7632b173c8cf3a86d3afec50c35548e76', debtAvailableBlock: 17425859 },
|
|
4
3
|
wstETH: { controllerAddress: '0x100dAa78fC509Db39Ef7D04DE0c1ABD299f4C6CE', debtAvailableBlock: 17487165 },
|
|
5
4
|
WBTC: { controllerAddress: '0x4e59541306910ad6dc1dac0ac9dfb29bd9f15c67', debtAvailableBlock: 17563176 },
|
|
6
5
|
WETH: { controllerAddress: '0xa920de414ea4ab66b97da1bfe9e6eca7d4219635', debtAvailableBlock: 17563176 },
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export const controllerToAssetMap = {
|
|
10
|
-
'0x8472a9a7632b173c8cf3a86d3afec50c35548e76': '0xac3E018457B222d93114458476f3E3416Abbe38F',
|
|
11
9
|
'0x100dAa78fC509Db39Ef7D04DE0c1ABD299f4C6CE': '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',
|
|
12
10
|
'0x4e59541306910ad6dc1dac0ac9dfb29bd9f15c67': '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
|
|
13
11
|
'0xa920de414ea4ab66b97da1bfe9e6eca7d4219635': '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
package/umd/index.js
CHANGED
|
@@ -1418,11 +1418,11 @@ var actionAddresses = {
|
|
|
1418
1418
|
CurveUsdPayback: '0x14A9dab0BAF6f48e8ffaf612D0604fEa549e27Ff',
|
|
1419
1419
|
CurveUsdSupply: '0xEf146C22be5A51F2D777c05623a781ED51c2702b',
|
|
1420
1420
|
CurveUsdWithdraw: '0xD9c1Ae50138ad34C02973AA9E437d0A864c0F6D8',
|
|
1421
|
-
CurveUsdLevCreate: '
|
|
1422
|
-
CurveUsdRepay: '
|
|
1423
|
-
CurveUsdSwapper: '
|
|
1421
|
+
CurveUsdLevCreate: '0x427DA6121e8f1E0f372Fd7341Fb6882F349b1c32',
|
|
1422
|
+
CurveUsdRepay: '0x2A298a4eCCadf70fA46B00ff30920e7feeD91D9E',
|
|
1423
|
+
CurveUsdSwapper: '0x65605f4d7617bA9B4A5CDa60D882833722E21e80',
|
|
1424
1424
|
CurveUsdSelfLiquidate: '0xB05a411734d05f0124d0Aea9Ebb932Bf25C06533',
|
|
1425
|
-
CurveUsdSelfLiquidateWithColl: '
|
|
1425
|
+
CurveUsdSelfLiquidateWithColl: '0xB992FCE8148aD576aDF422335e410c4A5169DA17'
|
|
1426
1426
|
},
|
|
1427
1427
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.optimism.chainId]: {
|
|
1428
1428
|
DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
|
|
@@ -9190,10 +9190,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9190
9190
|
/* harmony export */ });
|
|
9191
9191
|
/// @dev debtAvailableBlock is only used in v3-contracts repo
|
|
9192
9192
|
var curveusdMarkets = {
|
|
9193
|
-
sfrxETH: {
|
|
9194
|
-
controllerAddress: '0x8472a9a7632b173c8cf3a86d3afec50c35548e76',
|
|
9195
|
-
debtAvailableBlock: 17425859
|
|
9196
|
-
},
|
|
9197
9193
|
wstETH: {
|
|
9198
9194
|
controllerAddress: '0x100dAa78fC509Db39Ef7D04DE0c1ABD299f4C6CE',
|
|
9199
9195
|
debtAvailableBlock: 17487165
|
|
@@ -9208,7 +9204,6 @@ var curveusdMarkets = {
|
|
|
9208
9204
|
}
|
|
9209
9205
|
};
|
|
9210
9206
|
var controllerToAssetMap = {
|
|
9211
|
-
'0x8472a9a7632b173c8cf3a86d3afec50c35548e76': '0xac3E018457B222d93114458476f3E3416Abbe38F',
|
|
9212
9207
|
'0x100dAa78fC509Db39Ef7D04DE0c1ABD299f4C6CE': '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',
|
|
9213
9208
|
'0x4e59541306910ad6dc1dac0ac9dfb29bd9f15c67': '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
|
|
9214
9209
|
'0xa920de414ea4ab66b97da1bfe9e6eca7d4219635': '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2'
|
|
@@ -9387,8 +9382,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9387
9382
|
* @category CurveUsd
|
|
9388
9383
|
*/
|
|
9389
9384
|
class CurveUsdRepayAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
9390
|
-
constructor(controllerAddress, collAmount, to, minAmount, additionData) {
|
|
9391
|
-
super('CurveUsdRepay', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('CurveUsdRepay'), ['address', 'uint256', 'address', 'uint256', 'bytes'], [controllerAddress, collAmount, to, minAmount, additionData]);
|
|
9385
|
+
constructor(controllerAddress, collAmount, to, minAmount, additionData, gasUsed, dfsFeeDivider, useSteth) {
|
|
9386
|
+
super('CurveUsdRepay', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('CurveUsdRepay'), ['address', 'uint256', 'address', 'uint256', 'bytes', 'uint32', 'uint32', 'bool'], [controllerAddress, collAmount, to, minAmount, additionData, gasUsed, dfsFeeDivider, useSteth]);
|
|
9392
9387
|
this.mappableArgs = [...this.args];
|
|
9393
9388
|
}
|
|
9394
9389
|
}
|
|
@@ -9455,9 +9450,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9455
9450
|
* @category CurveUsd
|
|
9456
9451
|
*/
|
|
9457
9452
|
class CurveUsdLevCreateAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
9458
|
-
constructor(controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData) {
|
|
9453
|
+
constructor(controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData, gasUsed, dfsFeeDivider, useSteth) {
|
|
9459
9454
|
(0,_utils_general__WEBPACK_IMPORTED_MODULE_1__.requireAddress)(from);
|
|
9460
|
-
super('CurveUsdLevCreate', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('CurveUsdLevCreate'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes'], [controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData]);
|
|
9455
|
+
super('CurveUsdLevCreate', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('CurveUsdLevCreate'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', 'uint32', 'bool'], [controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData, gasUsed, dfsFeeDivider, useSteth]);
|
|
9461
9456
|
this.mappableArgs = [...this.args];
|
|
9462
9457
|
}
|
|
9463
9458
|
}
|
|
@@ -9481,9 +9476,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9481
9476
|
* @category CurveUsd
|
|
9482
9477
|
*/
|
|
9483
9478
|
class CurveUsdSelfLiquidateWithCollAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
9484
|
-
constructor(controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData) {
|
|
9479
|
+
constructor(controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData, gasUsed, dfsFeeDivider, useSteth) {
|
|
9485
9480
|
(0,_utils_general__WEBPACK_IMPORTED_MODULE_1__.requireAddress)(to);
|
|
9486
|
-
super('CurveUsdSelfLiquidateWithColl', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('CurveUsdSelfLiquidateWithColl'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes'], [controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData]);
|
|
9481
|
+
super('CurveUsdSelfLiquidateWithColl', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('CurveUsdSelfLiquidateWithColl'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', 'uint32', 'bool'], [controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData, gasUsed, dfsFeeDivider, useSteth]);
|
|
9487
9482
|
this.mappableArgs = [...this.args];
|
|
9488
9483
|
}
|
|
9489
9484
|
}
|