Skip to content

Consolidate Android perps#313

Draft
gemdev111 wants to merge 7 commits into
mainfrom
310-android-perps
Draft

Consolidate Android perps#313
gemdev111 wants to merge 7 commits into
mainfrom
310-android-perps

Conversation

@gemdev111
Copy link
Copy Markdown
Contributor

No description provided.

@gemdev111 gemdev111 self-assigned this May 13, 2026
@gemdev111 gemdev111 changed the title 310 android perps Consolidate Android perps May 13, 2026
gemdev111 added 4 commits May 13, 2026 21:03
Adjust ValidateBalanceImpl to treat TransactionType.PerpetualModifyPosition as an amount-based case (returns amount) and move TransactionType.SmartContractCall to the TODO branch. In SelectLeverageDialog, add a localized title to ModalBottomSheet using stringResource(R.string.perpetual_leverage) and import the required resources. Changes improve balance validation mapping and add a proper title for the leverage dialog.
Introduce domain types and helpers for perpetual leverage (PerpetualLeverage.kt: default, options, formatLeverage, getLeverage) and a LeverageState data class. Replace scattered leverage constants with the domain default and options, remove obsolete companion constants in UserConfig, and wire domain helpers across the app: SettingsViewModel, UserConfig, PreferencesScene, transfer amount provider, dialogs and components. AmountPerpetualProvider now exposes a LeverageState (current/options/direction) computed from perpetual data, user selection and user preference, and UI shows formatted leverage with color based on direction. Also move PerpetualDirectionValue into the ui.components.perpetual package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant