Files
2022-05-27 20:21:01 +03:00

22 lines
537 B
Swift

//
// PayCash.swift
// PayCash
//
// Created by Igor Danich on 30.08.2020.
// Copyright © 2020 List. All rights reserved.
//
import Foundation
enum P2P {
enum Service {
static var tokens: [Network.Model.Token] {
Wallet.Service.Tokens.shared.balances.collection.filter(\.isCash)
}
static let sell = Dashboard(kind: .sell)
static let buy = Dashboard(kind: .buy)
static func dashboard(kind: P2P.Model.Kind) -> Dashboard { kind == .sell ? sell : buy }
}
enum Model {}
}