Skip to content

Commit

Permalink
feat: support BCake feature on base
Browse files Browse the repository at this point in the history
  • Loading branch information
Chef-Yogi committed Dec 12, 2024
1 parent d260a84 commit b998447
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 1 deletion.
6 changes: 6 additions & 0 deletions apps/web/src/components/CrossChainVeCakeModal/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@ export const CROSS_CHAIN_CONFIG: Record<
layerZeroFee: 2373941681319489n,
layerZeroFeeBufferTimes: 10,
},
[ChainId.BASE]: {
eid: 30184,
dstGas: 850000n,
name: 'Base',
layerZeroFee: 2373941681319489n,
},
}
7 changes: 7 additions & 0 deletions apps/web/src/components/CrossChainVeCakeModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useTranslation } from '@pancakeswap/localization'
import {
ArrowUpIcon,
AtomBox,
BaseIcon,
Box,
Button,
CheckmarkCircleFillIcon,
Expand Down Expand Up @@ -55,6 +56,7 @@ const ChainLogoMap = {
[ChainId.ETHEREUM]: <EthereumIcon width={16} />,
[ChainId.ARBITRUM_ONE]: <ArbitrumIcon width={20} height={20} />,
[ChainId.ZKSYNC]: <ZKsyncIcon width={16} />,
[ChainId.BASE]: <BaseIcon width={16} />,
}

const StyleUl = styled.ul`
Expand Down Expand Up @@ -132,6 +134,11 @@ const OtherChainsConfig = [
chainId: ChainId.ZKSYNC,
Icon: <ZKsyncIcon width={16} />,
},
{
chainName: 'Base',
chainId: ChainId.BASE,
Icon: <BaseIcon width={16} />,
},
] as const

export const CrossChainVeCakeModal: React.FC<{
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/config/constants/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default {
[ChainId.ARBITRUM_ONE]: '0x5A3526891D6216DAe42d3e17a545A45f854F2213',
[ChainId.ETHEREUM]: '0xeA08f9e4267e30721D755A46Bcaddbf993d8C59B',
[ChainId.ZKSYNC]: '0xb6700cC1ab23BeB00c88496EAAA344fba31Ff895',
[ChainId.BASE]: '0x', // TODO: Add BASE address after SC deployment
},
pancakeBunnies: {
[ChainId.BSC]: '0xDf7952B35f24aCF7fC0487D01c8d5690a60DBa07',
Expand Down Expand Up @@ -236,6 +237,7 @@ export default {
[ChainId.ARBITRUM_ONE]: '0xF4C31dfEB3C0A2203472A3e20e49B1EFE4bD588d',
[ChainId.ETHEREUM]: '0x0aC4ED1D63c51f2b35C555eE09b425f08E6eA556',
[ChainId.ZKSYNC]: '0x77AbEA6a2FAa1938723411B28A0863be34f3c89f',
[ChainId.BASE]: '0x', // TODO: Add BASE address after SC deployment
},
pancakeVeSenderV2: {
[ChainId.BSC]: '0xEF58528Ecb76b69a0F61F65d94797d531B34cf64',
Expand Down
2 changes: 2 additions & 0 deletions packages/farms/constants/v3/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ export const bCakeFarmBoosterV3VeCakeAddress: Addresses = {
[ChainId.ARBITRUM_ONE]: '0xc4EfD50205Ccd15c192F342B3837d644c8fff99a',
[ChainId.ETHEREUM]: '0xE604940C06DF1B6A9851f8E8D8d22468CB932E38',
[ChainId.ZKSYNC]: '0xBF5412F6217Fd57caf46e51f7929ea6f74739D21',
[ChainId.BASE]: '0x', // TODO: Add BASE address after SC deployment
}

export const bCakeFarmWrapperBoosterVeCakeAddress: Addresses = {
[ChainId.BSC]: '0x5dbC7e443cCaD0bFB15a081F1A5C6BA0caB5b1E6',
[ChainId.ARBITRUM_ONE]: '0x21Eb14cf06270Ef944A1480bEf9163fe4Cf7DB14',
[ChainId.ETHEREUM]: '0xB509DBeE68B273767Cd8D45c1Ce95453391741f6',
[ChainId.ZKSYNC]: '0x5497577d6d37B825C74B0d41F580a009b79362eB',
[ChainId.BASE]: '0x', // TODO: Add BASE address after SC deployment
}
8 changes: 7 additions & 1 deletion packages/farms/src/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ export const supportedChainIdV3 = [
ChainId.OPBNB_TESTNET,
] as const
export const supportedChainId = uniq([...supportedChainIdV2, ...supportedChainIdV3])
export const bCakeSupportedChainId = [ChainId.BSC, ChainId.ARBITRUM_ONE, ChainId.ETHEREUM, ChainId.ZKSYNC] as const
export const bCakeSupportedChainId = [
ChainId.BSC,
ChainId.ARBITRUM_ONE,
ChainId.ETHEREUM,
ChainId.ZKSYNC,
ChainId.BASE,
] as const

export const FARM_AUCTION_HOSTING_IN_SECONDS = 691200

Expand Down
1 change: 1 addition & 0 deletions packages/ifos/src/constants/lzChainMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const LZ_CHAIN_MAP_V2 = {
[ChainId.POLYGON_ZKEVM]: 30158,
[ChainId.ZKSYNC]: 30165,
[ChainId.ARBITRUM_ONE]: 30110,
[ChainId.BASE]: 30184,
// Testnets
[ChainId.BSC_TESTNET]: 10102,
[ChainId.GOERLI]: 10121,
Expand Down

0 comments on commit b998447

Please sign in to comment.