@defisaver/sdk 0.1.0 → 0.1.1
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/package.json
CHANGED
|
@@ -10,7 +10,7 @@ class CompoundPaybackAction extends Action {
|
|
|
10
10
|
* @param cTokenAddr {EthAddress}
|
|
11
11
|
* @param amount {string} Wei amount in underlying asset decimals (not cAsset) - ie. 18 dec for cETH, not 8
|
|
12
12
|
* @param from {EthAddress}
|
|
13
|
-
* @param onBehalf {EthAddress
|
|
13
|
+
* @param onBehalf {EthAddress} Defaults to DsProxy address if 0x0
|
|
14
14
|
*/
|
|
15
15
|
constructor(cTokenAddr, amount, from, onBehalf = getAddr('Empty')) {
|
|
16
16
|
super('CompPayback', getAddr('CompPayback'), ['address', 'uint256', 'address', 'address'], [cTokenAddr, amount, from, onBehalf]);
|
package/src/addresses.js
CHANGED
|
@@ -11,6 +11,7 @@ const actionAddresses = {
|
|
|
11
11
|
'SumInputs': '0xCdef35425579fc566B6Ee0499A79256ac88d25cf',
|
|
12
12
|
'SubInputs': '0x3f71c5b806c2aCFA88bd7Ae5F7f8A14121E0FcA6',
|
|
13
13
|
'ChangeProxyOwner': '0x32cEdFfF6e64f6cD1907Ae0b27b78c36320587E7',
|
|
14
|
+
'TokenBalance': '0xFEb82445aEaA675D59A43CD5833f5A6807f97ea2',
|
|
14
15
|
|
|
15
16
|
// exchange
|
|
16
17
|
'DFSSell': '0x9A765623F9De2D7dB26afb5f7Bb85592DF094CDB',
|
|
@@ -40,6 +41,7 @@ const actionAddresses = {
|
|
|
40
41
|
'AavePayback': '0xb583Bc7603E5E482F475Ec9Ea90129029D53fbc8',
|
|
41
42
|
'AaveSupply': '0xC71113E9122465e8bCd42123f840Df99abaF29F1',
|
|
42
43
|
'AaveWithdraw': '0xE06Fc1CBD78Eb0799d5B0ca62D51B065886e08FC',
|
|
44
|
+
'AaveCollateralSwitch': '0x27d77c80A88665342C98Ea31B687A5fc8ca9a445',
|
|
43
45
|
|
|
44
46
|
// compound
|
|
45
47
|
'CompBorrow': '0xde1b05266f2D05Bf9216B76500583c2b7785b7e9',
|
|
@@ -47,10 +49,12 @@ const actionAddresses = {
|
|
|
47
49
|
'CompPayback': '0x67D2CC825730cCb70FD4579E55cDb3cf3152fcb6',
|
|
48
50
|
'CompSupply': '0x1F22890C166B30cE8769b7B55354064C254e063F',
|
|
49
51
|
'CompWithdraw': '0xD326a003bcfDbad0E9A4Ccc37a76Ce264345F38a',
|
|
52
|
+
'CompGetDebt': '0x009109AB7b8CAFf748cdA2F272F36043528Bef2C',
|
|
53
|
+
'CompCollateralSwitch': '0x1c0BD1E4da2c3108f6caA64609E89a37531B0f86',
|
|
50
54
|
|
|
51
55
|
// flashloan
|
|
52
|
-
'FLAaveV2': '
|
|
53
|
-
'FLDyDx': '
|
|
56
|
+
'FLAaveV2': '0x46aafdbc76a8b412909985d0a2c51073ff33c02e',
|
|
57
|
+
'FLDyDx': '0x973065599BACa33FC9CAD2823710f1332D2B7805',
|
|
54
58
|
|
|
55
59
|
// uniswap
|
|
56
60
|
'UniSupply': '0xcAE220B5398AfAad75bfeb946164f6C23CF65A98',
|
|
@@ -91,6 +95,7 @@ const actionAddresses = {
|
|
|
91
95
|
|
|
92
96
|
// insta
|
|
93
97
|
'ClaimInstMaker': '0x15E22A8160F0bDb619C6846C982F8D208A5670D2',
|
|
98
|
+
'InstPullTokens': '0x37FC940Be30e11d578243dEBea4f9B950E22aC99',
|
|
94
99
|
|
|
95
100
|
// balancer
|
|
96
101
|
'BalancerV2Supply': '0xD78E5D95A28a67F7851b0a94505790813A92E405',
|