Skip to content

Commit

Permalink
feat(jupiter): check token status ready
Browse files Browse the repository at this point in the history
  • Loading branch information
TrGiLong committed Jan 12, 2024
1 parent 481836e commit 1f5fe4c
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,14 @@ class AccountDetailsViewModel: BaseViewModel, ObservableObject {

extension AccountDetailsViewModel {
/// Check swap action is available for this account (wallet).
static func isSwapAvailableFor(wallet: SolanaAccount, for status: JupiterDataStatus) -> Bool {
static func isSwapAvailableFor(wallet _: SolanaAccount, for status: JupiterDataStatus) -> Bool {
// TODO(jupiter): Dynamic fetching data in future.
true
switch status {
case .ready:
return true
default:
return false
}
}
}

Expand Down

0 comments on commit 1f5fe4c

Please sign in to comment.