Skip to content

Commit

Permalink
feat: Token add missing project link (#10848)
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 enhancing the `ERC20Token` definitions by adding URLs
for various tokens across different chains, improving the metadata
associated with each token.

### Detailed summary
- Added URL for `cbETH` in `packages/tokens/src/constants/base.ts`.
- Added URL for `WBTC` in `packages/tokens/src/constants/zkSync.ts`.
- Added URL for `USDC` in `packages/tokens/src/constants/common.ts`.
- Reformatted token definitions for better readability.

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

<!-- end pr-codex -->
  • Loading branch information
ChefMomota authored Oct 21, 2024
1 parent 5a40bc8 commit 09c54d3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/tokens/src/constants/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const baseTokens = {
18,
'cbETH',
'Coinbase Wrapped Staked ETH',
'https://www.coinbase.com/price/coinbase-wrapped-staked-eth',
),
usdbc: new ERC20Token(
ChainId.BASE,
Expand Down
18 changes: 16 additions & 2 deletions packages/tokens/src/constants/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,14 @@ export const USDC = {
'USD Coin',
'https://www.centre.io/usdc',
),
[ChainId.LINEA]: new ERC20Token(ChainId.LINEA, '0x176211869cA2b568f2A7D4EE941E073a821EE1ff', 6, 'USDC', 'USD Coin'),
[ChainId.LINEA]: new ERC20Token(
ChainId.LINEA,
'0x176211869cA2b568f2A7D4EE941E073a821EE1ff',
6,
'USDC',
'USD Coin',
'https://www.centre.io/usdc',
),
[ChainId.LINEA_TESTNET]: new ERC20Token(
ChainId.LINEA_TESTNET,
'0xf56dc6695cF1f5c364eDEbC7Dc7077ac9B586068',
Expand All @@ -302,7 +309,14 @@ export const USDC = {
'USD Coin',
'https://www.centre.io/usdc',
),
[ChainId.BASE]: new ERC20Token(ChainId.BASE, '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913', 6, 'USDC', 'USD Coin'),
[ChainId.BASE]: new ERC20Token(
ChainId.BASE,
'0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
6,
'USDC',
'USD Coin',
'https://www.centre.io/usdc',
),
[ChainId.OPBNB_TESTNET]: new ERC20Token(
ChainId.OPBNB_TESTNET,
'0x845E27B8A4ad1Fe3dc0b41b900dC8C1Bb45141C3',
Expand Down
9 changes: 8 additions & 1 deletion packages/tokens/src/constants/zkSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ export const zksyncTokens = {
'Tiny Era Shard',
'https://tinyworlds.io/',
),
wbtc: new ERC20Token(ChainId.ZKSYNC, '0xBBeB516fb02a01611cBBE0453Fe3c580D7281011', 8, 'WBTC', 'Wrapped BTC'),
wbtc: new ERC20Token(
ChainId.ZKSYNC,
'0xBBeB516fb02a01611cBBE0453Fe3c580D7281011',
8,
'WBTC',
'Wrapped BTC',
'https://wbtc.network/',
),
busd: new ERC20Token(
ChainId.ZKSYNC,
'0x2039bb4116B4EFc145Ec4f0e2eA75012D6C0f181',
Expand Down

0 comments on commit 09c54d3

Please sign in to comment.