@defisaver/sdk 0.2.3 → 0.2.4
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defisaver/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"repository": "https://github.com/DecenterApps/defisaver-sdk",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@defisaver/tokens": "^1.4.
|
|
16
|
+
"@defisaver/tokens": "^1.4.12",
|
|
17
17
|
"@ethersproject/address": "^5.0.10",
|
|
18
18
|
"@ethersproject/solidity": "^5.0.9",
|
|
19
19
|
"axios": "^0.21.1",
|
|
@@ -13,7 +13,7 @@ class CompoundPaybackAction extends Action {
|
|
|
13
13
|
* @param onBehalf {EthAddress} Defaults to DsProxy address if 0x0
|
|
14
14
|
*/
|
|
15
15
|
constructor(cTokenAddr, amount, from, onBehalf = getAddr('Empty')) {
|
|
16
|
-
super('
|
|
16
|
+
super('CompPaybackNew', getAddr('CompPaybackNew'), ['address', 'uint256', 'address', 'address'], [cTokenAddr, amount, from, onBehalf]);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
async getAssetsToApprove() {
|
package/src/addresses.js
CHANGED
|
@@ -54,6 +54,7 @@ const actionAddresses = {
|
|
|
54
54
|
'CompBorrow': '0x8495579BF6Ae848f7E59686536F834f1d2CCd79C',
|
|
55
55
|
'CompClaim': '0x81F488cF7A0128A9DB5e7207042cCAB1CB0ac902',
|
|
56
56
|
'CompPayback': '0x2881590d5FfBd1e88BFc0Dc292f10e5377977f87',
|
|
57
|
+
'CompPaybackNew': '0xa2Fa682f44BE40a11d69Eb738CBB91148f0D9742',
|
|
57
58
|
'CompSupply': '0xB4CEDe40b249b756Ce0EAa3e14F6af89f25f9a3d',
|
|
58
59
|
'CompWithdraw': '0x3792F83D6A82091cb53052458038CC86e206463F',
|
|
59
60
|
'CompGetDebt': '0xc2B8f8423bc8Fe2e9A44cA9d364d835D1751b725',
|