Skip to content

Commit

Permalink
feat: add Wagyu Dex on Velas (#98)
Browse files Browse the repository at this point in the history
* feat: add Wagyu Dex on Velas

* feat(velas): add logo

* feat(velas): add coins
  • Loading branch information
mathiasmoeller committed Sep 30, 2022
1 parent 9abab9b commit d3201a2
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 0 deletions.
Binary file added src/assets/icons/chains/velas.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/exchanges/wagyu.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/tokens/vlx.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/chains/supported.chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,8 @@ export const supportedEVMChains: EVMChain[] = [
id: 106,
mainnet: true,
multicallAddress: multicallAddresses[ChainId.VEL],
logoURI:
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/velas.png',

metamask: {
chainId: prefixChainId(106),
Expand Down
57 changes: 57 additions & 0 deletions src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ const basicCoins: BasicCoin[] = [
symbol: 'AETH',
name: 'AETH',
},
// https://evmexplorer.velas.com/token/0x85219708c49aa701871Ad330A94EA0f41dFf24Ca
[ChainId.VEL]: {
address: '0x85219708c49aa701871ad330a94ea0f41dff24ca',
decimals: 18,
},

// Testnets
[ChainId.ROP]: {
Expand Down Expand Up @@ -160,6 +165,11 @@ const basicCoins: BasicCoin[] = [
decimals: 18,
name: 'Matic Token on xDai',
},
// https://evmexplorer.velas.com/token/0x6ab0B8C1a35F9F4Ce107cCBd05049CB1Dbd99Ec5/
[ChainId.VEL]: {
address: '0x6ab0b8c1a35f9f4ce107ccbd05049cb1dbd99ec5',
decimals: 18,
},

// Testnet
[ChainId.MUM]: {
Expand Down Expand Up @@ -203,6 +213,11 @@ const basicCoins: BasicCoin[] = [
address: '0xc9baa8cfdde8e328787e29b4b078abf2dadc2055',
decimals: 18,
},
// https://evmexplorer.velas.com/token/0x2B8e9cD44C9e09D936149549a8d207c918ecB5C4
[ChainId.VEL]: {
address: '0x2b8e9cd44c9e09d936149549a8d207c918ecb5c4',
decimals: 18,
},

// Testnet
[ChainId.BSCT]: {
Expand Down Expand Up @@ -310,6 +325,12 @@ const basicCoins: BasicCoin[] = [
symbol: 'DAI',
name: 'Dai Stablecoin',
},
// https://evmexplorer.velas.com/token/0xE3F5a90F9cb311505cd691a46596599aA1A0AD7D
[ChainId.VEL]: {
address: '0xe3f5a90f9cb311505cd691a46596599aa1a0ad7d',
decimals: 18,
name: 'Dai Stablecoin',
},

// Testnets
[ChainId.ROP]: {
Expand Down Expand Up @@ -532,6 +553,12 @@ const basicCoins: BasicCoin[] = [
address: '0x4988a896b1227218e4A686fdE5EabdcAbd91571f',
decimals: 6,
},
// https://evmexplorer.velas.com/token/0x01445C31581c354b7338AC35693AB2001B50b9aE
[ChainId.VEL]: {
address: '0x01445c31581c354b7338ac35693ab2001b50b9ae',
decimals: 6,
name: 'Multichain USDT',
},

// Testnets
[ChainId.ROP]: {
Expand Down Expand Up @@ -634,6 +661,12 @@ const basicCoins: BasicCoin[] = [
address: '0xB12BFcA5A55806AaF64E99521918A4bf0fC40802',
decimals: 6,
},
// https://evmexplorer.velas.com/token/0xe2C120f188eBd5389F71Cf4d9C16d05b62A58993
[ChainId.VEL]: {
address: '0xe2c120f188ebd5389f71cf4d9c16d05b62a58993',
decimals: 6,
name: 'Multichain USDC',
},

// Testnets
[ChainId.ROP]: {
Expand Down Expand Up @@ -1113,6 +1146,20 @@ const basicCoins: BasicCoin[] = [
},
},
},
// > VEL
{
key: CoinKey.VLX,
name: 'Velas',
logoURI:
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/tokens/vlx.png',
verified: true,
chains: {
[ChainId.VEL]: {
address: '0x0000000000000000000000000000000000000000',
decimals: 18,
},
},
},
]

export const defaultCoins: Array<Coin> = basicCoins.map((coin) => {
Expand Down Expand Up @@ -1341,6 +1388,16 @@ export const wrappedTokens: { [ChainId: string]: Token } = {
logoURI:
'https://static.debank.com/image/aurora_token/logo_url/aurora/d61441782d4a08a7479d54aea211679e.png',
},
[ChainId.VEL]: {
address: '0xc579d1f3cf86749e05cd06f7ade17856c2ce3126',
symbol: 'WVLX',
decimals: 18,
chainId: ChainId.VEL,
coinKey: 'WVLX' as CoinKey,
name: 'Wrapped VLX',
logoURI:
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/tokens/vlx.png',
},

// Testnets
[ChainId.ROP]: {
Expand Down
36 changes: 36 additions & 0 deletions src/exchanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,42 @@ export const supportedExchanges: Array<Exchange> = [
'0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
baseTokens: [findWrappedGasOnChain(ChainId.ONET)],
},

// 106 Velas
{
key: 'wagyuswap-vel',
name: 'Wagyuswap',
chainId: ChainId.VEL,
webUrl: 'https://exchange.wagyuswap.app',
tokenlistUrl:
'https://github.com/wagyuswapapp/wagyu-frontend/blob/wagyu/src/config/constants/tokenLists/pancake-default.tokenlist.json',
logoURI:
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/wagyu.png',
routerAddress: '0x3D1c58B6d4501E34DF37Cf0f664A58059a188F00',
factoryAddress: '0x69f3212344A38b35844cCe4864C2af9c717F35e3',
initCodeHash:
'0x3f7eace9f1c10ecce400030e19a86fd03c98c3770ce239a9cdef3b33fb40e933',
baseTokens: [
{
address: '0xabf26902fd7b624e0db40d31171ea9dddf078351',
symbol: 'WAG',
decimals: 18,
chainId: ChainId.VEL,
} as Token,
{
symbol: 'WVLX',
address: '0xc579d1f3cf86749e05cd06f7ade17856c2ce3126',
decimals: 18,
chainId: ChainId.VEL,
} as Token,
{
symbol: 'ASTRO',
address: '0x72eb7ca07399ec402c5b7aa6a65752b6a1dc0c27',
decimals: 18,
chainId: ChainId.VEL,
} as Token,
],
},
]

/**
Expand Down

0 comments on commit d3201a2

Please sign in to comment.