Skip to content

Commit

Permalink
chore: remove uniBTC warning (#10791)
Browse files Browse the repository at this point in the history
<!--
Before opening a pull request, please read the [contributing
guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md)
first
-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on removing references to the `uniBTC` token from the
swap warning tokens configuration and related components, streamlining
the warning system for BSC.

### Detailed summary
- Removed `uniBTC` from `bscWarningTokens` in `swapWarningTokens.ts`.
- Eliminated the import of `UniBTCWarning` in `index.tsx`.
- Deleted the `uniBTC` entry from the `BSC_WARNING_LIST`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
  • Loading branch information
Chef-Yogi authored Oct 7, 2024
1 parent a2f30c8 commit 894feeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions apps/web/src/config/constants/swapWarningTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { bscWarningTokens } from 'config/constants/warningTokens/bscWarningToken

const { alETH } = ethereumTokens
const { bondly, itam, ccar, bttold, abnbc, metis } = bscTokens
const { pokemoney, free, safemoon, gala, xcad, lusd, nfp, pnp, uniBTC } = bscWarningTokens
const { pokemoney, free, safemoon, gala, xcad, lusd, nfp, pnp } = bscWarningTokens
const { mPendle } = arbitrumWarningTokens
const { usdPlus } = zksyncTokens
const { ath } = baseWarningTokens
Expand Down Expand Up @@ -37,7 +37,6 @@ const SwapWarningTokens = <WarningTokenList>{
lusd,
nfp,
pnp,
uniBTC,
},
[ChainId.ZKSYNC]: {
usdPlus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ import NFPWarning from './NFPWarning'
import PNPWarning from './PNPWarning'
import RugPullWarning from './RugPullWarning'
import SafemoonWarning from './SafemoonWarning'
import UniBTCWarning from './UniBTCWarning'
import XCADWarning from './XCADWarning'

const { safemoon, bondly, itam, ccar, bttold, pokemoney, free, gala, abnbc, xcad, metis, lusd, nfp, pnp, uniBTC } =
const { safemoon, bondly, itam, ccar, bttold, pokemoney, free, gala, abnbc, xcad, metis, lusd, nfp, pnp } =
SwapWarningTokensConfig[ChainId.BSC]

const BSC_WARNING_LIST = {
Expand Down Expand Up @@ -76,10 +75,6 @@ const BSC_WARNING_LIST = {
symbol: pnp.symbol,
component: <PNPWarning />,
},
[uniBTC.address]: {
symbol: uniBTC.symbol,
component: <UniBTCWarning />,
},
}

export default BSC_WARNING_LIST

0 comments on commit 894feeb

Please sign in to comment.