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

Redeem flow #1787

Merged
merged 2 commits into from
Feb 10, 2025
Merged

Redeem flow #1787

merged 2 commits into from
Feb 10, 2025

Conversation

valentunn
Copy link
Member

No description provided.

Comment on lines +64 to +69
override fun finishRedeemFlow(redeemConsequences: RedeemConsequences) {
if (redeemConsequences.willKillStash) {
stakingDashboardRouter.returnToStakingDashboard()
} else {
returnToStakingMain()
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be better to provide a boolean flag here instead of domain model

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah the typelias to boolean seems to be a better fit, but it is not a new model and was used already in similar redeem flows so I just reused that

<fragment
android:id="@+id/mythosRedeemFragment"
android:name="io.novafoundation.nova.feature_staking_impl.presentation.mythos.redeem.MythosRedeemFragment"
android:label="MythosRedeemFragment" />
</navigation>
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's organize a navigation graph to not mix includes, actions and fragments.

I suggest this approach: includes first, than actions and then fragments

Base automatically changed from myth_staking/unbonding_widget to myth_staking_base February 10, 2025 09:30
@valentunn valentunn merged commit 1111003 into myth_staking_base Feb 10, 2025
6 of 7 checks passed
@valentunn valentunn deleted the myth_staking/redeem branch February 10, 2025 09:31
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