Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(synapse-interface): METIS token #3044

Merged
merged 4 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/synapse-interface/assets/chains/metis.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/synapse-interface/assets/icons/metis.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions packages/synapse-interface/constants/bridgeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,13 @@ export const BRIDGE_MAP = {
destination: ['SYN'],
swappable: [],
},
'0x75cb093E4D61d2A2e65D8e0BBb01DE8d89b53481': {
decimals: 18,
symbol: 'WMETIS',
origin: ['Metis'],
destination: ['Metis'],
swappable: [],
},
'0x931B8f17764362A3325D30681009f0eDd6211231': {
decimals: 18,
symbol: 'nETH',
Expand Down Expand Up @@ -922,6 +929,13 @@ export const BRIDGE_MAP = {
destination: ['nUSD'],
swappable: ['0x961318Fc85475E125B99Cc9215f62679aE5200aB'],
},
'0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE': {
decimals: 18,
symbol: 'Metis',
origin: ['Metis'],
destination: ['Metis'],
swappable: [],
},
'0xFB21B70922B9f6e3C6274BcD6CB1aa8A0fe20B80': {
decimals: 18,
symbol: 'gOHM',
Expand Down Expand Up @@ -1179,6 +1193,13 @@ export const BRIDGE_MAP = {
destination: ['JEWEL'],
swappable: [],
},
'0x543f1b2176F7E677a95D01ca83551FAa08F83D9F': {
decimals: 18,
symbol: 'Metis',
origin: ['Metis'],
destination: ['Metis'],
swappable: [],
},
'0x5819b6af194A78511c79C85Ea68D2377a7e9335f': {
decimals: 18,
symbol: 'WKLAY',
Expand Down Expand Up @@ -1736,6 +1757,13 @@ export const BRIDGE_MAP = {
destination: ['nUSD'],
swappable: [],
},
'0x43E8E55792D6317328e5c6B0A0C89eF4b8102Fa2': {
decimals: 18,
symbol: 'Metis',
origin: ['Metis'],
destination: ['Metis'],
swappable: [],
},
'0x7516EB8B8Edfa420f540a162335eACF3ea05a247': {
decimals: 8,
symbol: 'BTC.b',
Expand Down
2 changes: 1 addition & 1 deletion packages/synapse-interface/constants/chains/master.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export const METIS: Chain = {
},
nativeCurrency: {
name: 'Metis',
symbol: 'METIS',
symbol: 'Metis',
decimals: 18,
address: zeroAddress,
icon: metisImg,
Expand Down
21 changes: 21 additions & 0 deletions packages/synapse-interface/constants/tokens/bridgeable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import klayLogo from '@assets/icons/klay.svg'
import l2daoLogo from '@assets/icons/l2dao.svg'
import lusdLogo from '@assets/icons/lusd.svg'
import maticLogo from '@assets/icons/matic.svg'
import metisLogo from '@assets/icons/metis.svg'
import movrLogo from '@assets/icons/movr.svg'
import nethLogo from '@assets/icons/neth.svg'
import newoLogo from '@assets/icons/newo.svg'
Expand Down Expand Up @@ -1209,3 +1210,23 @@ export const SPECTRAL = new Token({
color: 'blue',
routeSymbol: 'SPEC',
})

export const METIS = new Token({
priorityRank: 300,
addresses: {
[CHAINS.DFK.id]: '0x43E8E55792D6317328e5c6B0A0C89eF4b8102Fa2',
[CHAINS.KLAYTN.id]: '0x543f1b2176F7E677a95D01ca83551FAa08F83D9F',
[CHAINS.METIS.id]: zeroAddress,
},
decimals: {
[CHAINS.DFK.id]: 18,
[CHAINS.KLAYTN.id]: 18,
[CHAINS.METIS.id]: 18,
},
symbol: 'Metis',
name: 'Metis Token',
swapableType: 'Metis',
logo: metisLogo,
color: 'blue',
routeSymbol: 'Metis',
})
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
},
"43114": {
"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7": "USDT"
},
"1088": {
"0x75cb093E4D61d2A2e65D8e0BBb01DE8d89b53481": "WMetis"
}
}
Loading