Skip to content

Commit cba7702

Browse files
authored
Merge pull request #5387 from EdgeApp/matthew/keys-only-beacon
Deprecate Binance Beacon Chain
2 parents 680897f + c07e092 commit cba7702

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- changed: Upgrade edge-core-js to v2.21.0
1818
- changed: Filter CreateWalletItem list by networkLocation instead of tokenId
1919
- changed: Update Ripple base reserve text strings
20+
- changed: Enable `keysOnlyMode` for Binance Beacon Chain
2021
- fixed: Default home/assets scene post-login based on last visited scene
2122
- fixed: Receive flip input default currency selection
2223
- removed: Keyboard autofocus from `WalletListModal`

src/components/text/FiatText.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as React from 'react'
33

44
import { useFiatText } from '../../hooks/useFiatText'
55
import { useTokenDisplayData } from '../../hooks/useTokenDisplayData'
6+
import { isKeysOnlyPlugin } from '../../util/CurrencyInfoHelpers'
67

78
interface Props {
89
// Display options:
@@ -53,7 +54,7 @@ export const FiatText = ({
5354
isoFiatCurrencyCode,
5455
maxPrecision,
5556
minPrecision,
56-
nativeCryptoAmount,
57+
nativeCryptoAmount: isKeysOnlyPlugin(wallet.currencyInfo.pluginId) ? '0' : nativeCryptoAmount,
5758
subCentTruncation,
5859
hideBalance
5960
})

src/components/themed/TransactionListTop.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { useDispatch, useSelector } from '../../types/reactRedux'
3030
import { NavigationBase, WalletsTabSceneProps } from '../../types/routerTypes'
3131
import { GuiExchangeRates } from '../../types/types'
3232
import { CryptoAmount } from '../../util/CryptoAmount'
33+
import { isKeysOnlyPlugin } from '../../util/CurrencyInfoHelpers'
3334
import { triggerHaptic } from '../../util/haptic'
3435
import { getFioStakingBalances, getPluginFromPolicy, getPositionAllocations } from '../../util/stakeUtils'
3536
import { getUkCompliantString } from '../../util/ukComplianceUtils'
@@ -841,7 +842,7 @@ export function TransactionListTop(props: OwnProps) {
841842
defaultFiat={defaultFiat}
842843
displayDenomination={displayDenomination}
843844
exchangeDenomination={exchangeDenomination}
844-
exchangeRate={exchangeRate}
845+
exchangeRate={isKeysOnlyPlugin(wallet.currencyInfo.pluginId) ? '0' : exchangeRate}
845846
isAccountBalanceVisible={isAccountBalanceVisible}
846847
exchangeRates={exchangeRates}
847848
toggleBalanceVisibility={handleBalanceVisibility}

src/constants/WalletAndCurrencyConstants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ export const SPECIAL_CURRENCY_INFO: {
551551
initWalletName: lstrings.string_first_bnb_wallet_name,
552552
chainCode: 'BNB',
553553
isImportKeySupported: true,
554+
keysOnlyMode: true,
554555
dummyPublicAddress: 'bnb1rt449yu7us6hmk4pmyr8talc60ydkwp4qkvcl7'
555556
},
556557
binancesmartchain: {

0 commit comments

Comments
 (0)