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

feat: automatic denom switcher #395

Merged
merged 1 commit into from
Jan 22, 2024
Merged

feat: automatic denom switcher #395

merged 1 commit into from
Jan 22, 2024

Conversation

dni
Copy link
Contributor

@dni dni commented Dec 21, 2023

switches to sat denom of amount > x

closes #391

Copy link

vercel bot commented Dec 21, 2023

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

Name Status Preview Updated (UTC)
webapp ✅ Ready (Inspect) Visit Preview Jan 22, 2024 11:56am
webapp-mainnet ✅ Ready (Inspect) Visit Preview Jan 22, 2024 11:56am

Copy link
Member

@kilrau kilrau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btc -> sats switch works as expected, nice! Second bullet point of #391 is missing though: allow entering floats and autoswitch to btc if a . is entered. It needs both diretions, we had support cases the same way where people couldn't enter 0.1 as shown in sideswap.

@kilrau
Copy link
Member

kilrau commented Jan 4, 2024

autoswitch to btc if a . is entered

Still not working (doesn't let me enter . when on sats denom). We need this direction too.

@kilrau
Copy link
Member

kilrau commented Jan 4, 2024

And conflicts need to be resolved

Copy link
Member

@kilrau kilrau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better but not there yet. when in sats deno and I enter 0. it correctly switches to bitcoin and let's me enter. If I enter 1. or 2. etc it does weird things.

Screencast.from.01-08-2024.07.28.14.PM.webm

Copy link
Member

@kilrau kilrau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My previous review comment is still not fixed. When I am in sat denomination and I enter 1. it jumps to 0.00000001, should stay 1.

Base automatically changed from refactor-fetcher to main January 19, 2024 22:42
switches to sat denom of amount > x
@michael1011 michael1011 merged commit 0381ff9 into main Jan 22, 2024
4 checks passed
@michael1011 michael1011 deleted the feat-autodenom branch January 22, 2024 12:52
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.

Auto-switch denomination
3 participants