Skip to content

Commit

Permalink
refactor: reinstate useGetPools hook refactor (#3639)
Browse files Browse the repository at this point in the history
  • Loading branch information
therealemjy authored Dec 17, 2024
1 parent 93a9562 commit c865e68
Show file tree
Hide file tree
Showing 90 changed files with 6,242 additions and 9,073 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-suits-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@venusprotocol/evm": patch
---

reinstate useGetPools hook refactor
39 changes: 39 additions & 0 deletions apps/evm/__mocks__/@venusprotocol/chains.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { ChainId } from '__mocks__/models/chains';
import { isolatedPool, legacyCorePool } from '__mocks__/models/pools';
import { bnb, eth } from '__mocks__/models/tokens';
export { ChainId } from '__mocks__/models/chains';

export const chainMetadata = {
[ChainId.BSC_MAINNET]: {
name: 'BNB Chain',
logoSrc: 'fake-logo-src-bsc-mainnet',
explorerUrl: 'https://bscscan.com',
layerZeroScanUrl: 'https://layerzeroscan.com',
blockTimeMs: 3000,
blocksPerDay: 28800,
corePoolComptrollerContractAddress: legacyCorePool.comptrollerAddress,
nativeToken: bnb,
},
[ChainId.BSC_TESTNET]: {
name: 'BNB testnet',
logoSrc: 'fake-logo-src-bsc-testnet',
explorerUrl: 'https://testnet.bscscan.com',
layerZeroScanUrl: 'https://testnet.layerzeroscan.com',
blockTimeMs: 3000,
blocksPerDay: 28800,
corePoolComptrollerContractAddress: legacyCorePool.comptrollerAddress,
nativeToken: bnb,
},
[ChainId.ETHEREUM]: {
name: 'Ethereum',
logoSrc: 'fake-logo-src-bsc-ethereum',
explorerUrl: 'https://etherscan.io',
layerZeroScanUrl: 'https://layerzeroscan.com',
blockTimeMs: 12000,
blocksPerDay: 7200,
corePoolComptrollerContractAddress: isolatedPool.comptrollerAddress,
lstPoolComptrollerContractAddress: '0xF522cd0360EF8c2FF48B648d53EA1717Ec0F3Ac3',
lstPoolVWstEthContractAddress: '0x4a240F0ee138697726C8a3E43eFE6Ac3593432CB',
nativeToken: eth,
},
};
1 change: 1 addition & 0 deletions apps/evm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"@sentry/react": "^8.11.0",
"@sentry/vite-plugin": "^2.20.0",
"@tanstack/react-query": "^5.48.0",
"@venusprotocol/chains": "*",
"@wagmi/core": "^2.11.6",
"@yornaath/batshit": "^0.10.1",
"bignumber.js": "^9.1.1",
Expand Down
Loading

0 comments on commit c865e68

Please sign in to comment.