Skip to content

Commit

Permalink
correctly source complete tokens in prime asset selection page
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Nov 28, 2024
1 parent 6a1e8e9 commit b255f0e
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions web/src/app/stake/pool/create/select-prime-asset/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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,
],
Expand Down

0 comments on commit b255f0e

Please sign in to comment.