@exodus/ethereum-api 6.2.18 → 6.2.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-api",
3
- "version": "6.2.18",
3
+ "version": "6.2.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.10",
19
+ "@exodus/ethereum-lib": "^3.3.11",
20
20
  "@exodus/ethereumjs-util": "^7.1.0-exodus.6",
21
21
  "@exodus/fetch": "^1.2.1",
22
22
  "@exodus/simple-retry": "^0.0.6",
@@ -36,5 +36,5 @@
36
36
  "devDependencies": {
37
37
  "@exodus/models": "^8.10.4"
38
38
  },
39
- "gitHead": "9450a6e46fc1b88d72ffdec39e7cefb8fa82be80"
39
+ "gitHead": "60de164fc1bb5353db34c5469b4fc96837b4add3"
40
40
  }
@@ -1,7 +1,6 @@
1
1
  import BN from 'bn.js'
2
2
  import { createContract } from '@exodus/ethereum-lib'
3
3
  import ethAssets from '@exodus/ethereum-meta'
4
- import { asset as polygon } from '@exodus/matic-meta'
5
4
  import { getServerByName } from '../exodus-eth-server'
6
5
  import { retry } from '@exodus/simple-retry'
7
6
  import { bufferToHex } from '@exodus/ethereumjs-util'
@@ -56,7 +55,7 @@ export class MaticStaking {
56
55
  this.validatorShareContract,
57
56
  'minAmount'
58
57
  )
59
- return polygon.currency.baseUnit(minRewardsToWithdraw)
58
+ return polygonEthToken.currency.baseUnit(minRewardsToWithdraw)
60
59
  }
61
60
 
62
61
  /**
@@ -113,7 +112,7 @@ export class MaticStaking {
113
112
  'getLiquidRewards',
114
113
  address
115
114
  )
116
- return polygon.currency.baseUnit(liquidRewards)
115
+ return polygonEthToken.currency.baseUnit(liquidRewards)
117
116
  }
118
117
 
119
118
  getTotalStake = async (address) => {
@@ -123,7 +122,7 @@ export class MaticStaking {
123
122
  address
124
123
  )
125
124
  const [amount] = splitIn32BytesArray(stakeInfo)
126
- return polygon.currency.baseUnit(toBN(amount).toString())
125
+ return polygonEthToken.currency.baseUnit(toBN(amount).toString())
127
126
  }
128
127
 
129
128
  getWithdrawExchangeRate = async () => {