Skip to content

Commit

Permalink
feat: Revert Prod
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefMomota committed Jul 31, 2023
1 parent e448fc9 commit 4a58486
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
8 changes: 3 additions & 5 deletions apps/web/src/config/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ const POLYGON_ZKEVM_NODES = [

export const SERVER_NODES = {
[ChainId.BSC]: [
// process.env.NEXT_PUBLIC_NODE_PRODUCTION,
'https://devnet.pancakeswap.ai',
process.env.NEXT_PUBLIC_NODE_PRODUCTION,
'https://bsc-dataseed1.defibit.io',
'https://bsc-dataseed1.binance.org',
].filter(Boolean),
Expand Down Expand Up @@ -42,9 +41,8 @@ export const SERVER_NODES = {

export const PUBLIC_NODES = {
[ChainId.BSC]: [
// process.env.NEXT_PUBLIC_NODE_PRODUCTION,
// getNodeRealUrlV2(ChainId.BSC, process.env.NEXT_PUBLIC_NODE_REAL_API_ETH),
'https://devnet.pancakeswap.ai',
process.env.NEXT_PUBLIC_NODE_PRODUCTION,
getNodeRealUrlV2(ChainId.BSC, process.env.NEXT_PUBLIC_NODE_REAL_API_ETH),
'https://bsc-dataseed1.defibit.io',
'https://bsc-dataseed1.binance.org',
].filter(Boolean),
Expand Down
5 changes: 2 additions & 3 deletions apps/web/src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ class MyDocument extends Document {
return (
<Html translate="no">
<Head>
{/* {process.env.NEXT_PUBLIC_NODE_PRODUCTION && (
{process.env.NEXT_PUBLIC_NODE_PRODUCTION && (
<link rel="preconnect" href={process.env.NEXT_PUBLIC_NODE_PRODUCTION} />
)} */}
<link rel="preconnect" href="https://devnet.pancakeswap.ai" />
)}
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link href="https://fonts.googleapis.com/css2?family=Kanit:wght@400;600&amp;display=swap" rel="stylesheet" />
<link rel="shortcut icon" href="/favicon.ico" />
Expand Down
3 changes: 1 addition & 2 deletions apps/web/src/utils/providers.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { createPublicClient, http } from 'viem'
import { bsc, polygon } from 'viem/chains'

// export const BSC_PROD_NODE = process.env.NEXT_PUBLIC_NODE_PRODUCTION || 'https://bsc.nodereal.io'
export const BSC_PROD_NODE = 'https://devnet.pancakeswap.ai' || 'https://bsc.nodereal.io'
export const BSC_PROD_NODE = process.env.NEXT_PUBLIC_NODE_PRODUCTION || 'https://bsc.nodereal.io'

export const bscRpcProvider = createPublicClient({
transport: http(BSC_PROD_NODE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const RevenueSharing: React.FunctionComponent<React.PropsWithChildren<RevenueSha

const { balanceOfAt, totalSupplyAt, nextDistributionTimestamp, lastTokenTimestamp, availableClaim } =
useRevenueSharingPool()
console.log({ balanceOfAt, totalSupplyAt, nextDistributionTimestamp, lastTokenTimestamp, availableClaim })
const yourShare = useMemo(() => getBalanceAmount(new BigNumber(balanceOfAt)).toNumber(), [balanceOfAt])
const yourSharePercentage = useMemo(
() => new BigNumber(balanceOfAt).div(totalSupplyAt).times(100).toNumber() || 0,
Expand Down
18 changes: 9 additions & 9 deletions packages/pools/src/constants/pools/56.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ export const livePools: SerializedPool[] = [
tokenPerBlock: '10',
isFinished: false,
},
// {
// sousId: 352,
// stakingToken: bscTokens.cake,
// earningToken: bscTokens.sable,
// contractAddress: '0x40757a3F2BC322f411D905cD489eaf4Eb84C50Aa',
// poolCategory: PoolCategory.CORE,
// tokenPerBlock: '0.192',
// version: 3,
// },
{
sousId: 352,
stakingToken: bscTokens.cake,
earningToken: bscTokens.sable,
contractAddress: '0x40757a3F2BC322f411D905cD489eaf4Eb84C50Aa',
poolCategory: PoolCategory.CORE,
tokenPerBlock: '0.192',
version: 3,
},
{
sousId: 351,
stakingToken: bscTokens.cake,
Expand Down

0 comments on commit 4a58486

Please sign in to comment.