Skip to content

Commit

Permalink
Rename MATIC to POL token (wormhole-foundation#2598)
Browse files Browse the repository at this point in the history
  • Loading branch information
kev1n-peters authored Sep 16, 2024
1 parent e459ad5 commit f232b4d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions wormhole-connect/docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import WormholeConnect, {
const config: WormholeConnectConfig = {
env: 'mainnet',
networks: ['Ethereum', 'Polygon', 'Solana'],
tokens: ['ETH', 'WETH', 'MATIC', 'WMATIC'],
tokens: ['ETH', 'WETH', 'POL', 'WPOL'],
rpcs: {
Ethereum: 'https://rpc.ankr.com/eth',
Solana: 'https://rpc.ankr.com/solana',
Expand Down Expand Up @@ -107,8 +107,8 @@ You can provide a whitelist of tokens under `tokens`. By default, Connect will o
| USDT | |
| DAI | |
| BUSD | |
| MATIC | MATIC |
| WMATIC | WMATIC |
| POL | |
| WPOL | |
| USDCpolygon | |
| BNB | BNB |
| WBNB | WBNB |
Expand Down Expand Up @@ -301,7 +301,7 @@ for the type definition of `TokensConfig`.
```json
{
"networks": ["Solana", "Ethereum"],
"tokens": ["ETH", "WETH", "MATIC", "WMATIC", "BSKT"],
"tokens": ["ETH", "WETH", "POL", "WPOL", "BSKT"],
"tokensConfig": {
"BSKT": {
"key": "BSKT",
Expand Down
2 changes: 1 addition & 1 deletion wormhole-connect/src/config/mainnet/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const MAINNET_CHAINS: ChainsConfig = {
displayName: 'Polygon',
explorerUrl: 'https://polygonscan.com/',
explorerName: 'PolygonScan',
gasToken: 'MATIC',
gasToken: 'POL',
chainId: 137,
icon: Icon.POLYGON,
maxBlockSearch: 1000,
Expand Down
14 changes: 7 additions & 7 deletions wormhole-connect/src/config/mainnet/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,19 @@ export const MAINNET_TOKENS: TokensConfig = {
color: '#F0B90B',
decimals: 18,
},
MATIC: {
key: 'MATIC',
symbol: 'MATIC',
POL: {
key: 'POL',
symbol: 'POL',
nativeChain: 'Polygon',
icon: Icon.POLYGON,
coinGeckoId: 'matic-network',
color: '#8247E5',
decimals: 18,
wrappedAsset: 'WMATIC',
wrappedAsset: 'WPOL',
},
WMATIC: {
key: 'WMATIC',
symbol: 'WMATIC',
WPOL: {
key: 'WPOL',
symbol: 'WPOL',
nativeChain: 'Polygon',
icon: Icon.POLYGON,
tokenId: {
Expand Down

0 comments on commit f232b4d

Please sign in to comment.