Files
raspberry/iOS/Wallet/Sources/CCCP/Service/CashRatesService.swift
T

26 lines
569 B
Swift

//
// CashRatesService.swift
// Wallet
//
// Created by Saveliy Stavitsky on 7/19/21.
// Copyright © 2021 AM. All rights reserved.
//
import Foundation
import EosioSwift
class CashRatesService {
func fetchRates(listSymbol: String, completion: @escaping ([String]?) -> Void) {
Network.table.fetch(
code: Network.servers.current.contract(.cash),
table: "rates",
scope: listSymbol,
fieldName: "cash_token",
type: String.self
) { rows in
completion(rows)
}
}
}