@exodus/solana-lib 1.2.25 → 1.2.27

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/solana-lib",
3
- "version": "1.2.25",
3
+ "version": "1.2.27",
4
4
  "description": "Exodus internal Solana low-level library",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -24,5 +24,5 @@
24
24
  "lodash": "^4.17.11",
25
25
  "tweetnacl": "^1.0.3"
26
26
  },
27
- "gitHead": "2703cd0c4f81f6b99570579e3b3ae3bfb1585f0a"
27
+ "gitHead": "9db27ad00ebacbd66b1344bbf258fb30e7170e39"
28
28
  }
@@ -1,8 +1,8 @@
1
1
  // @flow
2
2
  import assert from 'assert'
3
+ import BN from 'bn.js'
3
4
  import bs58 from 'bs58'
4
5
  import { get } from 'lodash'
5
- import assets from '@exodus/assets'
6
6
 
7
7
  import { getKeyPairFromPrivateKey } from './keypair'
8
8
  import { findAssociatedTokenAddress, createStakeAddress } from './encode'
@@ -223,7 +223,7 @@ class Tx {
223
223
  initializerDepositTokenPubkey,
224
224
  escrowPubkey,
225
225
  escrowBump,
226
- takerAmount: assets.solana.currency.baseUnit(takerAmount)._number,
226
+ takerAmount: new BN(takerAmount),
227
227
  })
228
228
 
229
229
  transaction.recentBlockhash = recentBlockhash
@@ -276,7 +276,7 @@ class Tx {
276
276
  const metadataPubkey = new PublicKey(metadataAddress)
277
277
 
278
278
  const transaction = MagicEdenEscrowProgram.exchange({
279
- expectedTakerAmount,
279
+ expectedTakerAmount: new BN(expectedTakerAmount),
280
280
  expectedMintPubkey,
281
281
  takerPubkey,
282
282
  initializerPubkey,