Skip to content

Commit

Permalink
fix: gas token logo source, token decimals (#10004)
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 fixing the decimals for zkSync USDT+ and updating the
CurrencyLogo component in GasTokenSelector.

### Detailed summary
- Fixed zkSync USDT+ decimals
- Updated CurrencyLogo component in GasTokenSelector to not use
TrustWallet URL

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

<!-- end pr-codex -->
  • Loading branch information
thechefpenguin authored Jun 12, 2024
1 parent 0669af7 commit 95cfa0c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/slow-shrimps-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@pancakeswap/tokens': patch
---

fix zkSync USDT+ decimals
2 changes: 1 addition & 1 deletion apps/web/src/components/Paymaster/GasTokenSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export const GasTokenSelector = ({ trade }: GasTokenSelectorProps) => {
<FixedHeightRow style={style} onClick={() => !disabled && onTokenSelected(item)} $disabled={disabled}>
<Flex alignItems="center" justifyContent="space-between" width="100%">
<Flex alignItems="center">
<CurrencyLogo currency={item} />
<CurrencyLogo currency={item} useTrustWalletUrl={false} />
<Column marginLeft="12px">
<Text bold>
{item.symbol} &nbsp;
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/src/constants/zkSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const zksyncTokens = {
usdtPlus: new ERC20Token(
ChainId.ZKSYNC,
'0xBb8D60008A08b1828E02120F1a952D295036eF3d',
7,
6,
'USDT+',
'USDT+',
'https://overnight.fi/',
Expand Down

0 comments on commit 95cfa0c

Please sign in to comment.