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

iOS-7766 [Staking] Binance #4088

Open
wants to merge 27 commits into
base: develop
Choose a base branch
from

Conversation

fedorov-d
Copy link
Contributor

Добавлена поддержка флоу рестейкинга. Также исправлен флоу анстейкинга: в нем была проблема с валидацией вводимой суммы.

@fedorov-d fedorov-d requested review from tureck1y and a team as code owners October 18, 2024 16:06
@@ -98,7 +98,6 @@ class EthereumTransactionBuilder {
input.toAddress = destination

input.transaction = .with { transaction in
input.toAddress = destination
Copy link
Contributor

Choose a reason for hiding this comment

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

ух, сначала напугался, потом увидел что задублировался код )

private extension Blockchain {
var stakeKitNetworkID: String {
switch self {
case .bsc: "binance"
Copy link
Contributor

Choose a reason for hiding this comment

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

Опять эти расхождения стремные(
А глянь плиз может networkId заюзать можно, или там не то будет тоже?

Comment on lines +335 to +340
case .pending(let pendingAction):
switch pendingAction {
case .restake(let passthrough):
coordinator?.openRestakingFlow(action: action)
default: coordinator?.openStakingSingleActionFlow(action: action)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
case .pending(let pendingAction):
switch pendingAction {
case .restake(let passthrough):
coordinator?.openRestakingFlow(action: action)
default: coordinator?.openStakingSingleActionFlow(action: action)
}
case .pending(.restake):
coordinator?.openRestakingFlow(action: action)
case .pending:
coordinator?.openStakingSingleActionFlow(action: action)

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