-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- Before opening a pull request, please read the [contributing guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md) first --> <!-- start pr-codex --> --- ## PR-Codex overview ### Detailed summary - Added `WBTC` as a supported symbol in the `BetSymbol` enum in `type.ts` - Increased the width of the `Menu` component in `Menu.tsx` to 170px - Added `zIndex` style property to the `ChainlinkChart` component in `ChainlinkChart.tsx` - Added `displayedDecimals` prop to the `Price` component in `Desktop.tsx`, `Mobile.tsx`, and `Price.tsx` - Updated the `balanceDisplay` variable in `SetPositionCard.tsx` to include `config?.token?.decimals` - Added `displayedDecimals` prop to the `LiveRoundPrice` component in `LiveRoundCard.tsx` - Updated the import statements in `supportedChains.ts` to include `arbitrum` - Added `displayedDecimals` prop to the `MobilePredictionTokenSelector` component in `Mobile.tsx` - Added `displayedDecimals` prop to the `Price` component in `Mobile.tsx` - Added `displayedDecimals` prop to the `Price` component in `Price.tsx` - Updated the import statements in `chainlinkOracleContract.ts` to include `arbitrum` - Updated the import statements in `predictionContract.ts` to include `arbitrum` - Updated the import statements in `endpoints.ts` to include `arbitrum` - Added support for `ETH` in `predictions` object in `arb.ts` - Updated the `LiveRoundPrice` component in `LiveRoundPrice.tsx` to include `displayedDecimals` prop - Updated the `fetchNodeHistory` function in `index.ts` to include `chainId` parameter > The following files were skipped due to too many changes: `apps/web/src/state/predictions/index.ts`, `apps/web/src/state/predictions/helpers.ts` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information
1 parent
10060d8
commit f82ffaa
Showing
20 changed files
with
113 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
import { PredictionConfig } from '../../type' | ||
import { ChainId } from '@pancakeswap/chains' | ||
import { Native } from '@pancakeswap/sdk' | ||
// import { arbitrumTokens } from '@pancakeswap/tokens' | ||
import { chainlinkOracleETH } from '../../chainlinkOracleContract' | ||
import { GRAPH_API_PREDICTION_ETH } from '../../endpoints' | ||
import { predictionsETH } from '../../predictionContract' | ||
import { PredictionConfig, PredictionSupportedSymbol } from '../../type' | ||
|
||
export const predictions: Record<string, PredictionConfig> = {} | ||
export const predictions: Record<string, PredictionConfig> = { | ||
[PredictionSupportedSymbol.ETH]: { | ||
isNativeToken: true, | ||
address: predictionsETH[ChainId.ARBITRUM_ONE], | ||
api: GRAPH_API_PREDICTION_ETH[ChainId.ARBITRUM_ONE], | ||
chainlinkOracleAddress: chainlinkOracleETH[ChainId.ARBITRUM_ONE], | ||
displayedDecimals: 4, | ||
token: Native.onChain(ChainId.ARBITRUM_ONE), | ||
tokenBackgroundColor: '#647ceb', | ||
}, | ||
// [PredictionSupportedSymbol.WBTC]: { | ||
// isNativeToken: false, | ||
// address: predictionsWBTC[ChainId.ARBITRUM_ONE], | ||
// api: GRAPH_API_PREDICTION_WBTC[ChainId.ARBITRUM_ONE], | ||
// chainlinkOracleAddress: chainlinkOracleWBTC[ChainId.ARBITRUM_ONE], | ||
// displayedDecimals: 4, | ||
// token: arbitrumTokens.wbtc, | ||
// tokenBackgroundColor: '#F7931A', | ||
// }, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { ChainId } from '@pancakeswap/chains' | ||
import { bsc, zkSync } from 'wagmi/chains' | ||
import { arbitrum, bsc, zkSync } from 'wagmi/chains' | ||
|
||
export const SUPPORTED_CHAIN_IDS = [ChainId.BSC, ChainId.ZKSYNC] as const | ||
export const SUPPORTED_CHAIN_IDS = [ChainId.BSC, ChainId.ZKSYNC, ChainId.ARBITRUM_ONE] as const | ||
|
||
export type SupportedChainId = (typeof SUPPORTED_CHAIN_IDS)[number] | ||
|
||
export const targetChains = [bsc, zkSync] | ||
export const targetChains = [bsc, zkSync, arbitrum] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f82ffaa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
web – ./apps/web
pancakeswap.finance
pancake-prod.vercel.app
web2.pancake.run
www.pancakeswap.finance
web-git-develop.pancake.run
web.pancake.run