Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transmuter Total Deposits Info #296

Merged
merged 12 commits into from
Dec 5, 2024
Merged

Conversation

ButlerATTS
Copy link
Collaborator

Added a column for total Transmuter deposits on the TransmuterAccordion, and adjusted col classes used

Copy link

vercel bot commented Dec 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
alchemix-v2-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 5, 2024 3:07pm

@t0rbik t0rbik self-requested a review December 4, 2024 19:29
@t0rbik
Copy link
Collaborator

t0rbik commented Dec 5, 2024

I went ahead and pushed refactored some code for consistency, because I already had it to see possible solutions (re: discord dms). Let me know if you disagree with this change!

  1. Span more space for first column to have TVL in one row. Responsive checked - looks good.
  2. Move formatNumber to output jsx for code consistency - reasoning is logic part stays in component function body and formatting in jsx.
  3. Changed formatNumber options to display compact number, removed dustToZero because we have this mainly for user deposits because it leaves some dust when one withdraws/migrates.
  4. Changed || to ?? to target only the case when left-side (decimals) is undefined. || is more common case, so not needed imo.

@t0rbik t0rbik changed the base branch from main to staging December 5, 2024 15:14
@t0rbik t0rbik merged commit ed5496e into staging Dec 5, 2024
3 checks passed
@t0rbik t0rbik deleted the feat/transmuter-total-deposits branch December 5, 2024 15:15
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.

2 participants