@exodus/ethereum-api 6.3.18 → 6.3.20
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 +3 -4
- package/src/staking/ethereum/api.js +3 -3
- package/LICENSE.md +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.20",
|
|
4
4
|
"description": "Ethereum Api",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@exodus/asset-lib": "^3.7.1",
|
|
18
18
|
"@exodus/crypto": "^1.0.0-rc.0",
|
|
19
|
-
"@exodus/ethereum-lib": "^3.3.
|
|
19
|
+
"@exodus/ethereum-lib": "^3.3.36",
|
|
20
20
|
"@exodus/ethereumjs-util": "^7.1.0-exodus.6",
|
|
21
21
|
"@exodus/fetch": "^1.3.0-beta.4",
|
|
22
22
|
"@exodus/simple-retry": "^0.0.6",
|
|
@@ -33,6 +33,5 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@exodus/models": "^8.10.4"
|
|
36
|
-
}
|
|
37
|
-
"gitHead": "51a5d83c3e8a9abf51117a6e9620a4717632ee27"
|
|
36
|
+
}
|
|
38
37
|
}
|
|
@@ -130,19 +130,19 @@ export class EthereumStaking {
|
|
|
130
130
|
|
|
131
131
|
// === POOL ===
|
|
132
132
|
|
|
133
|
-
async stake({ amount }) {
|
|
133
|
+
async stake({ amount, source = '2' }) {
|
|
134
134
|
if (amount.gte(this.minAmount)) {
|
|
135
135
|
return {
|
|
136
136
|
to: this.poolAddress,
|
|
137
137
|
amount,
|
|
138
|
-
data: bufferToHex(this.buildTxData(this.contractPool, 'stake',
|
|
138
|
+
data: bufferToHex(this.buildTxData(this.contractPool, 'stake', source)), // tx data field
|
|
139
139
|
}
|
|
140
140
|
} else {
|
|
141
141
|
throw new Error(`Min Amount ${this.minAmount}`)
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
async unstake({ address, amount, isAllowedInterchange = false, source = '
|
|
145
|
+
async unstake({ address, amount, isAllowedInterchange = false, source = '2' }) {
|
|
146
146
|
const amountWei = amount.toBaseString()
|
|
147
147
|
const balance = await this.autocompoundBalanceOf(address)
|
|
148
148
|
|
package/LICENSE.md
DELETED
|
File without changes
|