Skip to content

Commit

Permalink
Merge pull request Uniswap#66 from publu/fix/royalaid/multicall-on-ha…
Browse files Browse the repository at this point in the history
…rmony

fix multicall on harmony and and new zkevm collaterals
  • Loading branch information
publu committed Jan 23, 2024
2 parents 84ddba2 + 879762e commit 7838872
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "@qidao/sdk",
"license": "MIT",
"version": "5.3.7",
"version": "5.3.11",
"description": "🛠 An SDK for building applications on top of QiDao Protocol.",
"main": "./dist/index.js",
"umd:main": "dist/index.umd.js",
Expand Down
6 changes: 3 additions & 3 deletions src/constants.ts
Expand Up @@ -117,7 +117,7 @@ export const MULTICALL_NETWORKS: { [chainId in ChainId]: string } = {
[ChainId.FUJI]: '0x0053957E18A0994D3526Cf879A4cA7Be88e8936A',
[ChainId.HECO]: '0xc9a9F768ebD123A00B52e7A0E590df2e9E998707',
[ChainId.HECO_TESTNET]: '0x935Bfe9AfaA2Be26049ea4EDE40A3A2243361F87',
[ChainId.HARMONY]: '0xFE4980f62D708c2A84D3929859Ea226340759320',
[ChainId.HARMONY]: '0xcA11bde05977b3631167028862bE2a173976CA11',
[ChainId.HARMONY_TESTNET]: '0xbcd3451992B923531615293Cb2b2c38ba8DE9529',
[ChainId.MOONRIVER]: '0xe05349d6fE12602F6084550995B247a5C80C0E2C',
[ChainId.CRONOS]: '0xA25da25BD11A26F1dd4ea195948305fb7C8cA102',
Expand Down Expand Up @@ -218,8 +218,8 @@ export const MATIC_WETH_I_VAULT_ADDRESS = '0xB5B31E6A13aE856bc30b3C76B16eDaD9F43
export const ETH_CBETH_VAULT_ADDRESS = '0x4ce4C542D96Ce1872fEA4fa3fbB2E7aE31862Bad'
export const ETH_STETH_VAULT_ADDRESS = '0x5773e8953cF60F495eB3c2Db45DD753b5c4b7473'
export const ETH_LDO_VAULT_ADDRESS = '0x954ac12c339c60eafbb32213b15af3f7c7a0dec2'
export const ZKEVM_WETH_VAULT_ADDRESS = '0xdb1103a8F51823f5a2439c52C06921CDF929F6A7'
export const ZKEVM_WMATIC_VAULT_ADDRESS = '0x8AB01c5Ee3422099156ab151eecB83c095626599'
export const ZKEVM_WETH_VAULT_ADDRESS = '0x4d4872fe2D6B8a6297e77510FfEe4EE7c4B274bc'
export const ZKEVM_WMATIC_VAULT_ADDRESS = '0xC8A3e6F64f3a73F5b53Dbf4E20C8A2847161f7AE'

//BASE Vaults
export const BASE_WETH_VAULT_ADDRESS = '0x8D6CeBD76f18E1558D4DB88138e2DeFB3909fAD6'
Expand Down
7 changes: 6 additions & 1 deletion src/scripts/fetchTokenDescriptions.mjs
Expand Up @@ -43,7 +43,12 @@ const manualOverrides = {
'Gains Network or GNS is a decentralized trading platform. It provides users with both crypto and forex trading options with leverage.',
logo: 'https://gainsnetwork.io/images/logo_header.png',
name: 'Gains Network (GNS)',
}
},
"wrapped-matic": {
"shortDescription": "Wrapped Matic (WMATIC) is a token within the Polygon (previously Matic) network that represents MATIC in a wrapped form. This concept is similar to Wrapped Bitcoin (WBTC) or Wrapped Ether (WETH) on the Ethereum blockchain. The main function of this token is to facilitate transactions and interaction between the Ethereum and Polygon blockchains.",
"logo": "https://s2.tokeninsight.com/static/coins/img/currency/WrappedMatic_WMATIC.jpeg",
"name": "Wrapped Matic"
},
}

const fetches = Array.from(tokenInfo.keys()).map((tokenSlug) => {
Expand Down
2 changes: 1 addition & 1 deletion src/tokenDescriptions.json
Expand Up @@ -75,7 +75,7 @@
"name": "GnosisDAO"
},
"wrapped-matic": {
"shortDescription": "",
"shortDescription": "Wrapped Matic (WMATIC) is a token within the Polygon (previously Matic) network that represents MATIC in a wrapped form. This concept is similar to Wrapped Bitcoin (WBTC) or Wrapped Ether (WETH) on the Ethereum blockchain. The main function of this token is to facilitate transactions and interaction between the Ethereum and Polygon blockchains.",
"logo": "https://s2.tokeninsight.com/static/coins/img/currency/WrappedMatic_WMATIC.jpeg",
"name": "Wrapped Matic"
},
Expand Down
2 changes: 1 addition & 1 deletion src/tokens.ts
Expand Up @@ -61,7 +61,7 @@ export const MAI: ChainTokenMap = {
[ChainId.OPTIMISM]: makeMaiToken(ChainId.OPTIMISM, '0xdFA46478F9e5EA86d57387849598dbFB2e964b02'),
[ChainId.KAVA]: makeMaiToken(ChainId.KAVA, '0xb84Df10966a5D7e1ab46D9276F55d57bD336AFC7'),
[ChainId.DOGECHAIN]: makeMaiToken(ChainId.DOGECHAIN, '0xb84Df10966a5D7e1ab46D9276F55d57bD336AFC7'),
[ChainId.ZKEVM]: makeMaiToken(ChainId.ZKEVM, '0x27a4BF80C2d63E42437258533dac7eAFF9881bdB'),
[ChainId.ZKEVM]: makeMaiToken(ChainId.ZKEVM, '0x615B25500403Eb688Be49221b303084D9Cf0E5B4'),
[ChainId.BASE]: makeMaiToken(ChainId.BASE, '0xbf1aeA8670D2528E08334083616dD9C5F3B087aE'),
[ChainId.LINEA]: makeMaiToken(ChainId.LINEA, '0xf3B001D64C656e30a62fbaacA003B1336b4ce12A'),
}
4 changes: 2 additions & 2 deletions src/vaultInfo.ts
Expand Up @@ -2628,7 +2628,7 @@ export const COLLATERALS: {
[ChainId.KLAYTN]: typeof EMPTY_COLLATERALS,
[ChainId.CANTO]: typeof EMPTY_COLLATERALS,
[ChainId.DOGECHAIN]: typeof EMPTY_COLLATERALS,
[ChainId.ZKEVM]: typeof EMPTY_COLLATERALS,
[ChainId.ZKEVM]: typeof ZKEVM_COLLATERALS,
[ChainId.BASE]: typeof BASE_COLLATERALS,
[ChainId.LINEA]: typeof LINEA_COLLATERALS,
[ChainId.SCROLL]: typeof SCROLL_COLLATERALS,
Expand Down Expand Up @@ -2667,7 +2667,7 @@ export const COLLATERALS: {
[ChainId.KLAYTN]: [],
[ChainId.CANTO]: [],
[ChainId.DOGECHAIN]: [],
[ChainId.ZKEVM]: [],
[ChainId.ZKEVM]: ZKEVM_COLLATERALS,
[ChainId.BASE]: BASE_COLLATERALS,
[ChainId.LINEA]: LINEA_COLLATERALS,
[ChainId.SCROLL]: SCROLL_COLLATERALS,
Expand Down

0 comments on commit 7838872

Please sign in to comment.