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 {