Skip to content

Autoswap dynamic values + new seeds for placeholder#1726

Draft
BullishNode wants to merge 2 commits into
SatoshiPortal:developfrom
BullishNode:autoswap-dynamic-values
Draft

Autoswap dynamic values + new seeds for placeholder#1726
BullishNode wants to merge 2 commits into
SatoshiPortal:developfrom
BullishNode:autoswap-dynamic-values

Conversation

@BullishNode
Copy link
Copy Markdown
Contributor

Database seeds update (1M/2M sats for new users): they were still 500,000 sats and 1,000,000 sats. @i5hi I don't know what to do about migration. Not sure we should migrate but if we do it would be only for people that are still on default configs.

Dynamic values that read from actual settings (the bottom sheet values were hardcoded)

Unit preference respect (BTC vs sats): bottom sheet values were in BTC whereas the actual amounts are in sats

Reactive updates when settings change

NOT MERGE READY, NOT REVIEWED

- Display actual user-configured values in autoswap warning instead of hardcoded strings
- Update database seeds to match model defaults (1M/2M instead of 500k/1M)
- Read values from WalletBloc state and convert to BTC for display
…updates

- Display values in BTC or sats based on user bitcoinUnit setting
- Use FormatAmount for consistent formatting matching currency_text pattern
- Trigger WalletRefreshed on settings save to reload values in WalletBloc
- Apply BlocListener pattern in settings screen and bottom sheet
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.

3 participants