diff --git a/cashtab/package-lock.json b/cashtab/package-lock.json --- a/cashtab/package-lock.json +++ b/cashtab/package-lock.json @@ -1,12 +1,12 @@ { "name": "cashtab", - "version": "2.35.2", + "version": "2.35.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cashtab", - "version": "2.35.2", + "version": "2.35.3", "dependencies": { "@bitgo/utxo-lib": "^9.33.0", "@zxing/browser": "^0.1.4", diff --git a/cashtab/package.json b/cashtab/package.json --- a/cashtab/package.json +++ b/cashtab/package.json @@ -1,6 +1,6 @@ { "name": "cashtab", - "version": "2.35.2", + "version": "2.35.3", "private": true, "scripts": { "start": "node scripts/start.js", diff --git a/cashtab/src/wallet/useWallet.js b/cashtab/src/wallet/useWallet.js --- a/cashtab/src/wallet/useWallet.js +++ b/cashtab/src/wallet/useWallet.js @@ -41,12 +41,6 @@ import CashtabState from 'config/CashtabState'; import TokenIcon from 'components/Etokens/TokenIcon'; import { getUserLocale } from 'helpers'; -import { - BlockNotification, - BlockNotificationLink, - BlockNotificationDesc, -} from 'components/Common/Atoms'; -import { explorer } from 'config/explorer'; import { toFormattedXec } from 'utils/formatting'; const useWallet = chronik => { @@ -567,34 +561,9 @@ // when new blocks are found, refresh alias prices if (msgType === 'BLK_FINALIZED') { // Handle avalanche finalized block - const { blockHeight, blockHash } = msg; + const { blockHeight } = msg; // Set chaintip height setChaintipBlockheight(blockHeight); - const HALVING_BLOCKHEIGHT = 840000; - const blocksRemaining = HALVING_BLOCKHEIGHT - blockHeight; - toast( - - - {`📦 ${blockHeight.toLocaleString()} finalized by Avalanche`} - - {blocksRemaining > 0 && ( - - ⏰ {blocksRemaining.toLocaleString()} blocks until - eCash halving. - - )} - {blocksRemaining === 0 && ( - - 🎉🎉🎉 eCash block reward reduced by 50% 🎉🎉🎉 - - )} - , - { autoClose: blocksRemaining === 0 ? false : 5000 }, - ); if (aliasesEnabled) { try {