Skip to content

Commit

Permalink
feat: add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Space-Bean committed Oct 21, 2024
1 parent 292d928 commit 160564a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions projects/ui/src/components/Forecast/LiquidityByState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@ const LiquidityByState: FC<CardProps> = ({ sx }) => {

React.useEffect(() => {
console.log({
totalBeanSupply,
beanstalkField,
beanstalkSilo,
beanstalkBarn,
totalBeanSupply: totalBeanSupply.toNumber(),
beanstalkField: beanstalkField.podLine.toNumber(),
beanstalkSilo: beanstalkSilo.stalk.total.toNumber(),
beanstalkBarn: beanstalkBarn.unfertilized.toNumber(),
});
}, [totalBeanSupply, beanstalkField, beanstalkSilo, beanstalkBarn]);

React.useEffect(() => {
console.log(sdk.provider);
}, [sdk.provider]);
console.log(sdk);
}, [sdk]);

const { STALK, SPROUTS, PODS } = useBeanstalkTokens();
const breakdown = useBeanstalkSiloBreakdown();

React.useEffect(() => {
console.log({ breakdown });
console.log(breakdown);
}, [breakdown]);

/// Total Balances
Expand Down
3 changes: 2 additions & 1 deletion projects/ui/src/util/wagmi/ethersAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { useMemo } from 'react';
import type { Account, Chain, Client, Transport } from 'viem';
import { Config, useClient, useConnectorClient } from 'wagmi';

const IS_DEVELOPMENT_ENV = process.env.NODE_ENV !== 'production';
const netlifyContext = import.meta.env.VITE_NETLIFY_CONTEXT;
const IS_DEVELOPMENT_ENV = netlifyContext !== 'production' && netlifyContext !== "deploy-preview";

const fallbackChain = {
chainId: IS_DEVELOPMENT_ENV ? ChainId.LOCALHOST : ChainId.ARBITRUM_MAINNET,
Expand Down

0 comments on commit 160564a

Please sign in to comment.