Skip to content

Commit

Permalink
Add CP data in debug
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytrotkk committed Nov 1, 2023
1 parent d361a2f commit ccb71e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/components/Debug.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import DeleteRoundedIcon from '@mui/icons-material/DeleteRounded'
import CloseRoundedIcon from '@mui/icons-material/CloseRounded'
import ExpandRoundedIcon from '@mui/icons-material/ExpandRounded'

import { useCPStore } from '../store/CommunityPoolStore'
import { useMetaportStore } from '../store/MetaportStore'
import { cls, cmn, styles } from '../core/css'
import { ActionStateUpdate } from '../core/interfaces'
Expand Down Expand Up @@ -114,12 +115,15 @@ export default function Debug() {
const tokenContracts = useMetaportStore((state) => state.tokenContracts)
const tokens = useMetaportStore((state) => state.tokens)

const cpData = useCPStore((state) => state.cpData)

const getRows = () => [
{ name: 'chainName1', value: chainName1 },
{ name: 'chainName2', value: chainName2 },
{ name: 'token', value: JSON.stringify(token) },
{ name: 'tokenBalances', value: stringifyBigInt(tokenBalances) },
{ name: 'destTokenBalance', value: stringifyBigInt(destTokenBalance) },
{ name: 'cpData', value: stringifyBigInt(cpData) },
{
name: 'tokenContracts',
value:
Expand Down Expand Up @@ -171,7 +175,8 @@ export default function Debug() {
tokenBalances,
destTokenBalance,
tokenContracts,
tokens
tokens,
cpData
])

return (
Expand Down
1 change: 0 additions & 1 deletion src/styles/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,5 @@ button {
max-width: 400px;
white-space: nowrap;
overflow: auto;
text-overflow: ellipsis;
}
}

0 comments on commit ccb71e7

Please sign in to comment.