Skip to content

Commit

Permalink
Disable swap functional.
Browse files Browse the repository at this point in the history
  • Loading branch information
ant013 committed Aug 23, 2023
1 parent 3ce98ce commit 9c4863f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class EvmTransactionsAdapter: BaseEvmAdapter {
case .all: ()
case .incoming: type = .incoming
case .outgoing: type = .outgoing
case .swap: type = .swap
// case .swap: type = .swap
case .approve: type = .approve
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class TronTransactionsAdapter: BaseTronAdapter {
case .all: ()
case .incoming: type = .incoming
case .outgoing: type = .outgoing
case .swap: type = .swap
// case .swap: type = .swap
case .approve: type = .approve
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
enum TransactionTypeFilter: String, CaseIterable {
case all, incoming, outgoing, swap, approve
// case all, incoming, outgoing, approve
// case all, incoming, outgoing, swap, approve
case all, incoming, outgoing, approve
}
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class WalletViewItemFactory {
var buttons = [WalletModule.Button: ButtonState]()

switch item.element {
case .wallet(let wallet):
case .wallet:
if item.watchAccount {
buttons[.address] = .enabled
} else {
Expand All @@ -156,9 +156,9 @@ class WalletViewItemFactory {
buttons[.send] = sendButtonState
buttons[.receive] = .enabled

if wallet.token.swappable {
buttons[.swap] = sendButtonState
}
// if wallet.token.swappable {
// buttons[.swap] = sendButtonState
// }
}
case .cexAsset(let cexAsset):
buttons[.withdraw] = cexAsset.withdrawEnabled ? .enabled : .disabled
Expand Down

0 comments on commit 9c4863f

Please sign in to comment.