@huma-finance/widgets 0.0.62-beta.701 → 0.0.62-beta.705

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": "@huma-finance/widgets",
3
- "version": "0.0.62-beta.701+5d2620c",
3
+ "version": "0.0.62-beta.705+709d673",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -29,8 +29,8 @@
29
29
  "@ethersproject/experimental": "^5.7.0",
30
30
  "@ethersproject/providers": "^5.6.0",
31
31
  "@ethersproject/units": "^5.6.0",
32
- "@huma-finance/sdk": "^0.0.62-beta.701+5d2620c",
33
- "@huma-finance/shared": "^0.0.62-beta.701+5d2620c",
32
+ "@huma-finance/sdk": "^0.0.61",
33
+ "@huma-finance/shared": "^0.0.61",
34
34
  "@huma-finance/web-shared": "^0.0.61",
35
35
  "@mui/icons-material": "^5.3.0",
36
36
  "@mui/material": "^5.0.6",
@@ -203,5 +203,5 @@
203
203
  "optionalDependencies": {
204
204
  "encoding": "^0.1.13"
205
205
  },
206
- "gitHead": "5d2620cc8d54da4495cf4fffcf1bfb4a44860231"
206
+ "gitHead": "709d673a67009fb991e047b883e3e386b138f267"
207
207
  }
@@ -1,3 +1,4 @@
1
+ import { BN } from '@coral-xyz/anchor'
1
2
  import {
2
3
  formatNumber,
3
4
  SolanaPoolInfo,
@@ -5,9 +6,8 @@ import {
5
6
  TrancheType,
6
7
  } from '@huma-finance/shared'
7
8
  import { SolanaPoolState } from '@huma-finance/web-shared'
8
- import React, { useMemo, useState } from 'react'
9
- import { BN } from '@coral-xyz/anchor'
10
9
  import { Account } from '@solana/spl-token'
10
+ import React, { useMemo, useState } from 'react'
11
11
  import { useAppDispatch } from '../../../hooks/useRedux'
12
12
  import { setStep, setSupplyAmount } from '../../../store/widgets.reducers'
13
13
  import { WIDGET_STEP } from '../../../store/widgets.store'
@@ -55,7 +55,7 @@ export function ChooseAmount({
55
55
  : seniorAvailableCapBN
56
56
 
57
57
  return {
58
- juniorAvailableCapBN: totalAvailableCapBN.sub(seniorAvailableCapBN),
58
+ juniorAvailableCapBN: totalAvailableCapBN,
59
59
  seniorAvailableCapBN,
60
60
  }
61
61
  }, [poolState])