diff --git a/next.config.js b/next.config.js index 8113979c..c40d8d47 100644 --- a/next.config.js +++ b/next.config.js @@ -24,7 +24,7 @@ const nextConfig = { WS_REGIONX_COCOS_CHAIN: process.env.WS_REGIONX_COCOS_CHAIN || '', - WS_POLKADOT_RELAY_CHAIN: process.env.WS_KUSAMA_RELAY_CHAIN, + WS_POLKADOT_RELAY_CHAIN: process.env.WS_POLKADOT_RELAY_CHAIN, WS_KUSAMA_RELAY_CHAIN: process.env.WS_KUSAMA_RELAY_CHAIN, WS_ROCOCO_RELAY_CHAIN: process.env.WS_ROCOCO_RELAY_CHAIN, WS_WESTEND_RELAY_CHAIN: process.env.WS_WESTEND_RELAY_CHAIN, diff --git a/src/components/Panels/SaleInfoPanel/index.tsx b/src/components/Panels/SaleInfoPanel/index.tsx index 7bae5319..9b808e73 100644 --- a/src/components/Panels/SaleInfoPanel/index.tsx +++ b/src/components/Panels/SaleInfoPanel/index.tsx @@ -93,7 +93,7 @@ export const SaleInfoPanel = () => { }, right: { label: 'Floor price', - value: saleInfo.price !== undefined ? formatBalance(saleInfo.price) : '---', + value: formatBalance(saleInfo.price), }, }} button={ diff --git a/src/components/Tables/ParachainTable/index.tsx b/src/components/Tables/ParachainTable/index.tsx index 0f281768..7135c857 100644 --- a/src/components/Tables/ParachainTable/index.tsx +++ b/src/components/Tables/ParachainTable/index.tsx @@ -158,13 +158,24 @@ export const ParachainTable = ({ - + {/* TODO: support font awesome icons */} + {!logo || logo?.startsWith('fa;') ? ( + + ) : ( + + )} {name || 'Unknown'} {homepage === undefined ? ( <> diff --git a/src/contexts/sales/index.tsx b/src/contexts/sales/index.tsx index 1d599f91..7fd18183 100644 --- a/src/contexts/sales/index.tsx +++ b/src/contexts/sales/index.tsx @@ -144,6 +144,11 @@ const SaleInfoProvider = ({ children }: Props) => { const saleInfo = saleInfoRaw.toJSON() as SaleInfo; // On Rococo we have `endPrice` while on Kusama we still have `price`. saleInfo.price = saleInfo.price || (saleInfo as any).endPrice; + + // https://polkadot.polkassembly.io/referenda/1172 + if (network === NetworkType.POLKADOT) { + saleInfo.price = 10 * Math.pow(10, decimals); + } setSaleInfo(saleInfo); const config = configRaw.toJSON() as SaleConfig;