From b255f0edf4e63d462c33d7e26ef63cb2f3c7ecaf Mon Sep 17 00:00:00 2001 From: eli-d <64763513+eli-d@users.noreply.github.com> Date: Thu, 28 Nov 2024 16:55:22 +1030 Subject: [PATCH] correctly source complete tokens in prime asset selection page --- .../pool/create/select-prime-asset/page.tsx | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/web/src/app/stake/pool/create/select-prime-asset/page.tsx b/web/src/app/stake/pool/create/select-prime-asset/page.tsx index f78c1924..d1f982c7 100644 --- a/web/src/app/stake/pool/create/select-prime-asset/page.tsx +++ b/web/src/app/stake/pool/create/select-prime-asset/page.tsx @@ -61,15 +61,6 @@ const SelectPrimeAsset = () => { const poolsData = useFragment(SelectPrimeAssetFragment, data?.pools); - const tokens: Token[] = poolsData - ? poolsData?.map((pool) => ({ - name: pool.token.name, - symbol: pool.token.symbol, - address: pool.token.address as Hash, - decimals: pool.token.decimals, - })) - : []; - /** * Reformat our data to match the table columns */ @@ -102,13 +93,7 @@ const SelectPrimeAsset = () => { APR: 0, // TODO: calculate APR duration: 0, // TODO: get duration tokens: [ - { - name: pool.token.name, - symbol: pool.token.symbol, - address: pool.token.address as Hash, - decimals: pool.token.decimals, - icon: getTokenFromAddress(pool.token.address)?.icon, - }, + getTokenFromAddress(pool.token.address) ?? DefaultToken, // assume the second token is always fUSDC fUSDC, ],