Skip to content

update sale price format#76

Open
0xthrpw wants to merge 1 commit intomainfrom
sale-price-format
Open

update sale price format#76
0xthrpw wants to merge 1 commit intomainfrom
sale-price-format

Conversation

@0xthrpw
Copy link
Member

@0xthrpw 0xthrpw commented Feb 27, 2026

Made some updates in the api to properly handle decimal values with usdc from some bad data in a sales import. as a result the api is correctly returning usdc sales with 6 decimal data. Some changes to the app were required to accommodate this update:

3 files were updated to pass raw last_sale_price directly to , which already handles per-currency decimal conversion correctly via formatPrice():

  • components/domains/table/components/lastSale.tsx — removed convertWeiPrice + useETHPrice
  • components/domains/grid/components/card.tsx — removed convertWeiPrice import, kept useETHPrice (still used for registration price calculation)
  • app/[name]/components/secondaryDetails.tsx — removed convertWeiPrice + useETHPrice

Deleted utils/convertWeiPrice.ts (no remaining imports).

@vercel
Copy link

vercel bot commented Feb 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
grails Ready Ready Preview, Comment Feb 27, 2026 0:52am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant