Skip to content

Commit

Permalink
fix: some types for new chains
Browse files Browse the repository at this point in the history
  • Loading branch information
maxklenk committed Feb 11, 2022
1 parent 59cf0ea commit 57d33cb
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 6 deletions.
Binary file modified src/assets/icons/exchanges/oolongswap.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ export const supportedChains: Array<Chain> = [
mainnet: true,
logoURI:
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/moonbeam.png',
// tokenlistUrl:
// 'https://raw.githubusercontent.com/solarbeamio/solarbeam-tokenlist/main/solarbeam.tokenlist.json',
tokenlistUrl:
'https://raw.githubusercontent.com/BeamSwap/beamswap-tokenlist/main/tokenlist.json',

metamask: {
chainId: prefixChainId(1284),
Expand Down
22 changes: 20 additions & 2 deletions src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ const basicCoins: BasicCoin[] = [
decimals: 18,
},
[ChainId.BOB]: {
address: '0x4200000000000000000000000000000000000006',
address: '0x0000000000000000000000000000000000000000',
decimals: 18,
},
[ChainId.MOO]: {
address: '0xfa9343c3897324496a05fc75abed6bac29f8a40f',
decimals: 18,
},

Expand Down Expand Up @@ -175,6 +179,10 @@ const basicCoins: BasicCoin[] = [
address: '0xb1f6e61e1e113625593a22fa6aa94f8052bc39e0',
decimals: 18,
},
[ChainId.MOO]: {
address: '0xc9baa8cfdde8e328787e29b4b078abf2dadc2055',
decimals: 18,
},

// Testnet
[ChainId.BSCT]: {
Expand Down Expand Up @@ -960,7 +968,8 @@ const basicCoins: BasicCoin[] = [
verified: true,
chains: {
[ChainId.CEL]: {
address: '0x471ece3750da237f93b8e339c536989b8978a438',
// is the same as '0x471ece3750da237f93b8e339c536989b8978a438'
address: '0x0000000000000000000000000000000000000000',
decimals: 18,
},
},
Expand Down Expand Up @@ -1190,6 +1199,15 @@ export const wrappedTokens: { [ChainId: string]: Token } = {
logoURI:
'https://static.debank.com/image/boba_token/logo_url/0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000/b1947b38a90e559eb950453965714be4.png',
},
[ChainId.CEL]: {
address: '0x471ece3750da237f93b8e339c536989b8978a438',
symbol: 'CELO',
decimals: 18,
chainId: ChainId.CEL,
coinKey: CoinKey.CELO,
name: 'Celo native asset',
logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/5567.png',
},

// Testnets
[ChainId.ROP]: {
Expand Down
61 changes: 59 additions & 2 deletions src/exchanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,63 @@ export const supportedExchanges: Array<Exchange> = [
// TODO: For cronos chain, we will add KyberSwap in the near future, they're still in development

// 1284 - Moonbeam
// Max: We should be able to get the initCodeHash from the factory contract and use some big pools as default tokens
// {
// key: 'stellaswap-moo',
// name: 'StellaSwap',
// chainId: ChainId.MOO,
// logoURI:
// 'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/stellaswap.png',
// webUrl: 'https://app.stellaswap.com/',
// tokenlistUrl:
// 'https://raw.githubusercontent.com/BeamSwap/beamswap-tokenlist/main/tokenlist.json',
// routerAddress: '0xd0A01ec574D1fC6652eDF79cb2F880fd47D34Ab1',
// factoryAddress: '0x68A384D826D3678f78BB9FB1533c7E9577dACc0E',
// initCodeHash: '',
// baseTokens: [
// ],
// },
{
key: 'beamswap-moo',
name: 'BeamSwap',
chainId: ChainId.MOO,
logoURI:
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/exchanges/beamswap.png',
webUrl: 'https://app.beamswap.io/',
tokenlistUrl:
'https://raw.githubusercontent.com/BeamSwap/beamswap-tokenlist/main/tokenlist.json',
routerAddress: '0x96b244391D98B62D19aE89b1A4dCcf0fc56970C7',
factoryAddress: '0x985BcA32293A7A496300a48081947321177a86FD',
initCodeHash:
'0xe31da4209ffcce713230a74b5287fa8ec84797c9e77e1f7cfeccea015cdc97ea',
baseTokens: [
findWrappedGasOnChain(ChainId.MOO),
findDefaultToken(CoinKey.BNB, ChainId.MOO),
findDefaultToken(CoinKey.ETH, ChainId.MOO),
{
chainId: 1284,
address: '0xeFAeeE334F0Fd1712f9a8cc375f427D9Cdd40d73',
symbol: 'USDT',
name: 'USDT Token',
decimals: 6,
},
{
chainId: 1284,
address: '0xA649325Aa7C5093d12D6F98EB4378deAe68CE23F',
symbol: 'BUSD',
name: 'BUSD Token',
decimals: 18,
},
{
chainId: 1284,
address: '0x818ec0A7Fe18Ff94269904fCED6AE3DaE6d6dC0b',
symbol: 'USDC',
name: 'USDC Token',
decimals: 6,
},
],
},

// TODO: For Moonbeam chain, we will add StellaSwap in the near future, they're still in development

// 122 - Fuse Mainnet // TODO: incomplete
Expand Down Expand Up @@ -754,7 +811,7 @@ export const supportedExchanges: Array<Exchange> = [
initCodeHash:
'0xb3b8ff62960acea3a88039ebcf80699f15786f1b17cebd82802f7375827a339c',
baseTokens: [
findDefaultToken(CoinKey.CELO, ChainId.CEL),
findWrappedGasOnChain(ChainId.CEL),
{
address: '0x918146359264c492bd6934071c6bd31c854edbc3',
symbol: 'mCUSD',
Expand Down Expand Up @@ -783,7 +840,7 @@ export const supportedExchanges: Array<Exchange> = [
initCodeHash:
'0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
baseTokens: [
findDefaultToken(CoinKey.CELO, ChainId.CEL),
findWrappedGasOnChain(ChainId.CEL),
findDefaultToken(CoinKey.USDC, ChainId.CEL),
findDefaultToken(CoinKey.WBTC, ChainId.CEL),
findDefaultToken(CoinKey.WETH, ChainId.CEL),
Expand Down

0 comments on commit 57d33cb

Please sign in to comment.